Web Hosting Reviews for Affiliate Marketers

Unlimited Shared hosting & Unlimited Disk Space from $5.95 - Dreamhost
Solid Managed VPS with 4 IP's from $60 - Liquid Web
Lightning Fast Dedicated Servers & 1GB RAM from $149 - Liquid Web
#1 Domain Registration with WHOIS Privacy - Just $9.95

The Dreamhost web hosting thread below was started by kevinterrobang on 2009-12-22 19:07:41:

Post Reply? I am having some issues with requiring external classes in files. At the top of index.php I have: require “phpfunctions/objects.php”; I have uploaded a file called objects.php which resides in a subfolder called phpfunctions. However, I am seeing the standard error: Warning: require(phpfunctions/objects.php) [function.require]: failed to open stream: No such file or directory in /home/foo/bar.com/test/index.php on line xx Fatal error: require() [function.require]: Failed opening required ‘phpfunctions/objects.php’ (include_path=’.:/usr/local/php5/lib/php:/usr/local/lib/php’) in /home/foo/bar.com/test/index.php on line xx I have also tried putting the files in the same directory as index.php and adjusting the require statement accordingly, but to no avail. I have done a bit of searching but everything seems to be about checking for file existence or not using URLs in the require statement because they are disabled by DreamHost. Any ideas?

Join in on the original post at the Dreamhost Forum, Apply for a Dreamhost Account or view our Review of Dream Host.

Related Web Host Reviews


Close
E-mail It