Php server globals REQUEST_URI or HTTP_SERVER_VARS
Hi all,
recently I found that
PHP Code:
$_SERVER['REQUEST_URI']
does not deliver the complete url with query anymore on my server.
However
PHP Code:
$GLOBALS['HTTP_SERVER_VARS']['REQUEST_URI']
works in this case.
On an other server, it was the other way round:
PHP Code:
$GLOBALS['HTTP_SERVER_VARS']['REQUEST_URI']
not working and
PHP Code:
$_SERVER['REQUEST_URI']
works well...
When googlig a solution for a code to match any case of the described above, I found this little code, which seems to work, but which I do not understand what it is doing:
Maybe some pro can tell if this code should work safely and what exactly it is doing. The syntax is new to me
Here is some docs of my ongoing work to port this forum PHP code which is running on 5.3.10, to PHP 7.
Motivation:
Unfortunately, every thing that has a beginning must have an end. PHP 5.6 active support ended January 19, 2017. It will receive security support until December 31, 2018.
#1 ... (7 Replies)
I'm having problems opening php and perl files on Apache. The server hasn't any association with those type of files by default and a window asking to choose a program to open them popups from the browser. How can I do to process them with the browser
Thanks in advance. (1 Reply)
I know any globals can be directly modified in a function without passing/returning parameters- provided the function is written within the same file. However, when I wrote functions in a saparate file (so hopefully they can be re-used by multiple script programs), and then call them from the main,... (11 Replies)
Hi all,
Sometime back, had put up a Q regarding hiding perl code.
A: There is a utility known as 'pp' which comes along with PAR. Downloaded from
CPAN. These people have done wonderful work I must say. Cool executables from
perl scripts.
Have one more... (4 Replies)
Hi there, I'm sorry , I can't be here every day but everytime I have a problem,
I remember of you :)
So, here goes the situation.
I'm working with an installed AIX 5.2. I didn't make that install.
I had to install php by a package that I've found in... (0 Replies)
I am still learning perl and confused on this script I am revising at work. The original author uses a package, which I have left in the code; however, I cannot seem to access the global variable $dir.
Code snippet:
I have also tried using $RRD_MG::dir to no avail.
Thank you. (6 Replies)