|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
how to use $PHP_SELF ?
Hi I am using php5 and I don't know how to set PHP_SELF. When I run the following code I am getting dummy.php which I don't know from where it is coming.
<?php echo $_SERVER['PHP_SELF']; ?> Please tell me how to set and use $_SERVER['PHP_SELF']; $PHP_SELF; |
|
#2
|
|||
|
|||
|
RE: how to use $PHP_SELF ?
PHP self returns the URL for the page in the browser. If it is returning dummy.php then the page executing the script is dummy.php
If your script is included in another page, such as myPage.php it would return myPage.php There is loads of information on this in the PHP manual which should be the first place you look. Check the reserved variables page: http://uk2.php.net/reserved.variables ~MKK |
|
#3
|
|||
|
|||
|
RE: how to use $PHP_SELF ?
Also, you don't need to create multiple threads for the same topic; it's really annoying.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > how to use $PHP_SELF ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|