Reply to Mapping the Path

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация