This is my first post on these forums so let me first say hello to everyone thanks to whoever the webmasters are for making a newbie forum for ppl like myself...I am sure I will put it to good use 🙂
Now on to the questions...
1.) What (if any) difference is there, between $PHP_SELF and $REQUEST_URI ??? My guess is a matter of speed but I have not tested them yet for speed so I don't know...
2.) What would be the best way to print out a url without the filename.ext part of the address ???
Ex. printing out a url that looks like this
http://somesite.com/somedir
instead of one that looks like this
http://somesite.com/somedir/filename.ext
I am currently using the following code and it works but I don't know if it's the best/right way to do it...
<? print ("http://").($SERVER_NAME).dirname($REQUEST_URI); ?>
3.) Finally, Does Anyone know of a script or function that automatically adds links any predefinded php function names which when clicked go to their respective documentation on php.net. (An example of what I am talking about can be found here )
As you can see all the code on this page is highlighted and all of php's predefined function names are active links which when clicked on take you to the docs for that function... I know this could be done with a series of preg_replace tags but this would take a great deal of time to do and the script that included all of those tags would be huge and chances are it would timeout before it even finished doing it's job so there has to be a better way... I am just not sure what that better way is...
Thanks in advance,
Nosix