where oh where did my php class go

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tcl4p
Forum Newbie
Posts: 15
Joined: Mon Apr 02, 2007 9:28 am

where oh where did my php class go

Post by tcl4p »

In an effort to improve my code I recently changed a php page to use a class file. I added an include statement to the page and moved both the new page and the class file to the same directory on my isp's server. I did the development work on my local machine running windows with an apache server and everything works fine. When I tried to run the page from my isp the page shows up blank. No errors, just a Done statement at the bottom of the page. I changed the include statement to a require statement figuring that if the page couldn't find the file I would get a fatal error, but nothing.
So the question now is what to do next to diagnosis the problem. I would appreciate any suggestions.

Regards,
Tom
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Add this to the top of your file:

Code: Select all

error_reporting(E_ALL);
ini_set('display_errors', true);
Post Reply