Mapping the Path
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Mapping the Path

From: Jim Carlock <anonymous@127.0.0.1>
Date: Sat Dec 31 2005 - 22:15:34 CET

Any recommendations on the best way to map paths?

require('./library/include/file1.php');

works well for files in the root folder, but for files in another
folder, I need to rewrite the path to the files, and sometimes
when testing things on my personal system, they work there,
but fail when uploaded to the website. Using the root...

require('/library/include/file1.php);

doesn't seem to work as I thought it would. It's like the
server maps the '/' to something unknown. There a way
to find out what '/' gets mapped to inside the require()
function?

Any suggestions? Thanks much.

Messing with PHP 4.4.1 (Windows XP, Apache 1.3.34
(Win32)) on my system and PHP 4.3.11 (Unix-Apache
1.3.31) on the host.

Jim Carlock
Post replies to the newsgroup.
Received on Tue Jan 3 03:51:13 2006