You are here: path using / or ../ « All PHP « IT news, forums, messages
path using / or ../

Posted by jesbuddy07 on 11/01/06 19:10

Can anyone point me to a right direction in terms of using / and ../
directives to point to a file using PHP?

i'm so confused when to use / or ../ or sometimes even without /.

i'm writing php file in a /x/y directory, and the file i want to
include resides is /x/z directory. in /x/y directory, I tried the
following statements, but none of them works

include("x/z");
include("/x/z");
include("../x/z");

can any PHP guru out there please tell me when to use /, ../ or none at
all??

thanks a bunch

 

Navigation:

[Reply to this 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

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