This is a discussion on is it possible to within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Is there a command that makes it possible to find out the name of the open file, ie. if index....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Yes there is
$_SERVER['REQUEST_URI'] would be the whole path or $_SERVER['SCRIPT_NAME'] just the name of the current script I suggest you use a phpinfo() function and see for your selfe....there are a few more so use the one you need.... hope this helps point "Damien" <stardrifter@evilleltd.com> wrote in message news:c7fd0606.0307101436.3deec914@posting.google.c om... > Is there a command that makes it possible to find out the name of the > open file, ie. if index.php was open the command would return > index.php? > > Thanks for any help |
|
|||
|
"Juz" <juji_juz[do_not_use_this]@hotmail.com> wrote in message news:<_kmPa.13316$it4.337815@news1.tin.it>...
> > Is there a command that makes it possible to find out the name of the > > open file, ie. if index.php was open the command would return > > index.php? > > echo $_SERVER['PHP_SELF']; > byez > Juz thanks alot |
![]() |
| Thread Tools | |
| Display Modes | |
|
|