Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with Hosted PHP

Status
Not open for further replies.

pcorchary

MIS
Feb 23, 2002
60
US
OK ... I'm trying to get ANY one of several different PHP OSS apps running on my hosted account - ftp only.

They ALL wind up giving me this basic error:

Warning: Failed opening '/s/code/site.inc.php' for inclusion (include_path='') in /Local/Library/WebServer/WebSites/ on line 88

They similarity is that it's ALWAYS that it can open something.php (include_path=''), and sometimes just (include_path=') (no trailing ').

I've tried this with SIS, MoveableType, PHPSlash, and Gallery 1.2.5. They all agree that I've got current enought version of PHP ....

My hosting service sez it's permissions problem, but even when all dirs for the app are 777, I get this ... I think it's a configuration issues on their PHP ... any suggestions?

Yes - I CAN get a basic "hello world" PHP page to work just fine.

philc
 
The warning explains it perfectly. You are trying to get PHP to include other scripts, using non-existent directory:

'/s/code/site.inc.php'

Remember, include() and require() file paths are either relative, or they are explicit according to the server physical fileystem, not your Apache virtual DocumentRoot.

Thus your physical root directory is actually:

/Local/Library/WebServer/WebSites/
(include_path = '') just means that there is no explicit include path specified in php.ini, so you have to either include documents using a relative path, or the full server-side directory path.

So... assuming that you want to include file 'site.inc.php' in the above-mentioned '.sipsconfig.php' file, your path should probably look like:

include("/Local/Library/WebServer/WebSites/// the full, explicit path

Or simply:

include("../s/code/site.inc.php"); // the relative path

This is assuming that the '/s' directory is parallel to the /n directory, which is my guess, but the path will have to be adjusted accordingly if not. -------------------------------------------

"Calculus is just the meaningless manipulation of higher symbols"
                          -unknown F student
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top