Page 1 of 1

an ASP equivalent?

Posted: Fri Sep 10, 2004 11:21 pm
by AliasBDI
ASP has a "root" link which looks like this: "/directory/filename.asp". In other words, if you begin your paths with "/" (slash) ASP knows to begin from the root of the site. Is there a PHP equivalent of this?

Posted: Fri Sep 10, 2004 11:30 pm
by drale
yes.

in php putting a "/" will start at the root. "./" and no slash or period at all will start in thecurrect directory. "../" will go backwards one directory. this is the same in normal HTML too.

I hope thats what you meant and I answered currectly.

Posted: Sat Sep 11, 2004 7:47 am
by AliasBDI
Exactly what I mean. Thanks.