...

View Full Version : Path explanation please...



joda
08-26-2009, 10:21 PM
Hi to all.
Please can someone explain how does the path is in PHP or in web programming?

I mean what is "." or "../" or "/" etc...

Thanks a lot for ur time...

djm0219
08-26-2009, 10:36 PM
. == this directory

../ == up one directory level

/ == start from the web root

joda
08-26-2009, 11:02 PM
Ok.
so, if I say $path="./" that mean does I'm in this directory but
if I say $path="../" than it is up one level and if
I say $path="/images/" then it means the directory of "images" on the web root?

djm0219
08-26-2009, 11:42 PM
That's it.

bucket
08-27-2009, 12:09 AM
Thanks I needed that...

So to go up 2 levels I do

../../login.php correct?

whizard
08-27-2009, 12:10 AM
yup :)

joda
09-03-2009, 10:04 PM
Yes,ur right...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum