Krummelz Posted November 17, 2008 Share Posted November 17, 2008 OK I'm really frustrated here. I have a class that is meant to handle uploading of files to the server. When I comment out the line that instantiates the class, everything works fine. When I try to instantiate the class, I get a blank page. Here are the most important lines of code: include ($_SERVER['DOCUMENT_ROOT']."/classes/upload/upload_class.php"); $my_upload = new file_upload; I have no idea what to do ???, and have been searching the web for a while now, without an answer. Quote Link to comment Share on other sites More sharing options...
DarkerAngel Posted November 17, 2008 Share Posted November 17, 2008 would have to see the class Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted November 17, 2008 Share Posted November 17, 2008 Yeah, um... Well, they could be important I suppose. As DarkerAngel said, show more please. Also, try putting this at the top of the page: error_reporting(E_ALL); ini_set("display_errors","1"); Quote Link to comment Share on other sites More sharing options...
Krummelz Posted November 17, 2008 Author Share Posted November 17, 2008 The class is a free download from Softpedia.com -> http://webscripts.softpedia.com/scriptDownload/Easy-PHP-Upload-Download-1861.html I think I may have found the problem, and this killed two birds with one stone - I could not get errors to show even when I did add error_reporting(E_ALL); Adding error_reporting(E_ALL); and ini_set("display_errors","1"); showed me that the $_SERVER['DOCUMENT_ROOT'] in the include line made it point to the wrong directory of "C:/wamp/www/classes/upload/upload_class.php" instead of "C:/wamp/www/WEBSITENAME/classes/upload/upload_class.php" Thanks guys. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.