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!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
[quote="[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1"][b]3.[/b] Do not make multiple, identical posts. This is viewed as spam and will be deleted.[/quote]
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.
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
$_SERVER is an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server.
You don't set it directly. The server does that for you as far as I know.
However...
You can change the original URL and have the server modify the value of this variable for you (as it is done wit xss exploits) but normally you would not want to change this.
You use this variable whenever you want to reference
The filename of the currently executing script, relative to the document root.
rekha_harnoor wrote: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.
rekha_harnoor wrote: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.