$_Server['HTTP_REFER'] |
|
How can I get this value? I don't see it in the list.
Thanks |
||||||||||||
|
Site Admin
|
try to spell this word correctly REFER
|
||||||||||||
_________________ The PHP IDE team |
$_Server['HTTP_REFERER'] |
|
Thanks for the spelling lesson. Let's try again.
How can I get this value? I don't see it in the list. Thanks, Richard |
||||||||||||
|
Site Admin
|
you're welcome.
BTW, seems you need one extra try Seriously, add one more R or it'll go further. Now it's clear why you're interested in code completion... Am I right assuming that what you mean is Code Completion list in the dropdown? If you mean this, I'm sorry to say that pre-defined constants are not supported in PhpED v6.2. Although it's possible to create a dummy file in the project and have all the indices defined here, like define('HTTP_REFERRER', null); v7 supports pre-defined constants by default: |
||||||||||||
_________________ The PHP IDE team |
When debugging a PHP script, this variable is queried |
Guru master
|
I doubt it is a PhpED problem.
This is the official PHP description for HTTP_REFERER:
Is the page that you are debugging activated via a link from another page, so that HTTP_REFERER might actually be set? If you run up the debugger directly on a page, then HTTP_REFERER won't be available. That might also happen for a redirect. It is good practice to check for the existance of these array elements before using them:
Are you trying to get the name of the referring page? Your code snippet will set $refer to FALSE if HTTP_REFERER does not have a page name with a dot in it (substr returns FALSE if it cannot extract a sub-string). This might work better:
|
||||||||||||||||||
|
Site Admin
|
you may want to check
http://en.wikipedia.org/wiki/HTTP_referer it explains what you may expect from this thing. |
||||||||||||
_________________ The PHP IDE team |
$_Server['HTTP_REFER'] |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by