Sponsored Content
Top Forums Shell Programming and Scripting Php server globals REQUEST_URI or HTTP_SERVER_VARS Post 302827755 by Scott on Sunday 30th of June 2013 03:14:43 PM
Old 06-30-2013
Think of it as an if-then-else:
Code:
if (isset($GLOBALS['HTTP_SERVER_VARS']) && isset($GLOBALS['HTTP_SERVER_VARS']['REQUEST_URI']))
  $something = $GLOBALS['HTTP_SERVER_VARS']['REQUEST_URI'];
else
  $something = $_SERVER['REQUEST_URI'];

There are examples here: Control Structures: If - PHP Manual
This User Gave Thanks to Scott For This Post:
 

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

perl: globals and a package.

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)
Discussion started by: effigy
6 Replies

2. UNIX for Advanced & Expert Users

AIX, web server, php

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)
Discussion started by: kisoun
0 Replies

3. Shell Programming and Scripting

Hiding PHP code on the server

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)
Discussion started by: sudhir_onweb
4 Replies

4. Shell Programming and Scripting

how to access globals in a function

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)
Discussion started by: bluemoon1
11 Replies

5. Web Development

php and perl on apache server

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)
Discussion started by: capibolso
1 Replies

6. UNIX for Advanced & Expert Users

how to know which version of PHP and apache is in my server?

Hi, How to get the version of php, apache and WebSphere instealled in my server. The OS is AIX. Thanks in advance. R R VARMA (1 Reply)
Discussion started by: RRVARMA
1 Replies

7. Shell Programming and Scripting

Test Server - Forum Code Changes for PHP 5.3.10 to PHP 7

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)
Discussion started by: Neo
7 Replies
PHP_LOGO_GUID(3)							 1							  PHP_LOGO_GUID(3)

php_logo_guid - Gets the logo guid

SYNOPSIS
string php_logo_guid (void ) DESCRIPTION
This function returns the ID which can be used to display the PHP logo using the built-in image. Logo is displayed only if expose_php is On. Warning This function has been DEPRECATED and REMOVED as of PHP 5.5.0. RETURN VALUES
Returns PHPE9568F34-D428-11d2-A769-00AA001ACF42. CHANGELOG
+--------+---------------------------------------------+ |Version | | | | | | | Description | | | | +--------+---------------------------------------------+ | 5.5.0 | | | | | | | php_logo_guid(3) has been removed from PHP. | | | | +--------+---------------------------------------------+ EXAMPLES
Example #1 php_logo_guid(3) example <?php echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP Logo !" />'; ?> SEE ALSO
phpinfo(3), phpversion(3), phpcredits(3), zend_logo_guid(3). PHP Documentation Group PHP_LOGO_GUID(3)
All times are GMT -4. The time now is 09:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy