Displaying compilation errors
Moderator: General Moderators
-
AZRoushStang
- Forum Newbie
- Posts: 8
- Joined: Sun May 14, 2006 8:56 pm
Displaying compilation errors
So I'm working with a site that is being hosted by godaddy.com. The problem I am having is that when I have a compilation error, I get no feedback. It just returns a blank page (no html at all when I view source). It makes it really difficult and a PITA trying to debug my fat fingers and sometimes sloppy mistakes. Is there a way to get the errors to display and tell me what went wrong, or is this something that I have to try and take up with godaddy?
-
AZRoushStang
- Forum Newbie
- Posts: 8
- Joined: Sun May 14, 2006 8:56 pm
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
If you set your own error handler, it will get called for every error (excluding fatals) regardless of error_reporting settings and their choices in display settings. It is a good idea to run through locally before uploading to a server however to help catch fatals such as parse errors.
set_error_handler()
set_error_handler()
-
AZRoushStang
- Forum Newbie
- Posts: 8
- Joined: Sun May 14, 2006 8:56 pm
I just got off the phone with GoDaddy...apparently, the account is set up as an ASP hosting account (would have been good to know), instead of a PHP hosting account After explaining to the tech "help" guy that if I can get none erroneous php code to run that there has to be a PHP interpureter on the server and hence it would reason that the error reporting would come back. Apparently, in their ASP hosting accounts the PHP works, but in a "simulated" mode, aka a lot of stuff doesn't work. That also may explain why my file uploads don't work. So, I am checking with the account owner to make sure we can change it to a PHP account...now if I'm still having the errors then I will have some words for their tech support....but, I'm hoping that it is as simple as changing the accont type....
Anyway, thanks for the inputs....if I'm still having problems after the account change then I will give those options a try....
-R
Anyway, thanks for the inputs....if I'm still having problems after the account change then I will give those options a try....
-R
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Dude, GoDaddy kinda blows when it comes to hosting on their Windows accounts for PHP. There are a ton of PHP features that do not work on their Windows accounts. I had this same problem so I ended up going with a Linux hosting account. Fixed all the stupidity issues related to the hosting account (didn't do a thing for my stupidity issues). But their Linux accounts are really good for PHP development.
-
AZRoushStang
- Forum Newbie
- Posts: 8
- Joined: Sun May 14, 2006 8:56 pm
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA