|
Posted by Jim Carlock on 12/31/05 23:15
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.
[Back to original message]
|