[SOLVED] an ASP equivalent?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
AliasBDI
Forum Contributor
Posts: 286
Joined: Fri Nov 15, 2002 10:35 am
Location: Spring, TX, USA

an ASP equivalent?

Post 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?
drale
Forum Newbie
Posts: 8
Joined: Fri Sep 10, 2004 2:43 am

Post 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.
AliasBDI
Forum Contributor
Posts: 286
Joined: Fri Nov 15, 2002 10:35 am
Location: Spring, TX, USA

Post by AliasBDI »

Exactly what I mean. Thanks.
Post Reply