By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,731 Members | 1,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,731 IT Pros & Developers. It's quick & easy.

Predefined variable

P: n/a
hi....

what is PHP_SELF when will it is used also tell me REQUEST_METHOD

May 16 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On May 16, 4:42 pm, java.i...@gmail.com wrote:
hi....

what is PHP_SELF when will it is used also tell me REQUEST_METHOD
http://nz.php.net/reserved.variables :

'PHP_SELF'

The filename of the currently executing script, relative to the
document root. For instance, $_SERVER['PHP_SELF'] in a script at the
address http://example.com/test.php/foo.bar would be /test.php/
foo.bar. The __FILE__ constant contains the full path and filename of
the current (i.e. included) file.

'REQUEST_METHOD'

Which request method was used to access the page; i.e. 'GET',
'HEAD', 'POST', 'PUT'.

Flamer.
May 16 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.