phat code For every action, there is an equal and opposite malfunction.
Main

Projects

Downloads

Articles

Links

Forum

 

View Message

Back to Messages
Plasma Sat Feb 10 2007 at 8:40 pm
that returns full path of the script
 
 
Which is not the same as the URL. If you need the URL, you can do something like:

substr_replace(dirname(__FILE__), '', 0, strlen($_SERVER['DOCUMENT_ROOT']))

 
 
 
 

Reply to this Message

Name
Subject
Message

No HTML is allowed, except for <code> <b> <i> <u> in the message only.
All URLs and email addresses will automatically be converted to hyperlinks.