NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Undefined $_SERVER['argv'] when using 3rd party web server


Joined: 30 May 2005
Posts: 1
Reply with quote
I have the phped debugger running properly except that $_SERVER['argv'] is not defined. I added two test GET variables $var1, $var2 under Run->Parameters. This is what the debugger shows for $_SERVER:

Code:
(
    [HTTP_ACCEPT] => image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/x-icq, */*
    [HTTP_ACCEPT_LANGUAGE] => en-us
    [HTTP_ACCEPT_ENCODING] => gzip, deflate
    [HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
    [HTTP_HOST] => localhost
    [HTTP_CONNECTION] => Keep-Alive
    [HTTP_COOKIE] => DBGSESSID=385026280006700007%3Bd%3D1%2Cp%3D0
    [PATH] => C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\bin;C:\xampp\xampp\mysql\bin;C:\xampp\xampp\php;C:\Program Files\UnxUtils\usr\local\wbin;
    [SystemRoot] => C:\WINDOWS
    [COMSPEC] => C:\WINDOWS\system32\cmd.exe
    [PATHEXT] => .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    [WINDIR] => C:\WINDOWS
    [SERVER_SIGNATURE] => <address>Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7e PHP/5.0.3 Server at localhost Port 80</address>

    [SERVER_SOFTWARE] => Apache/2.0.52 (Win32) mod_ssl/2.0.52 OpenSSL/0.9.7e PHP/5.0.3
    [SERVER_NAME] => localhost
    [SERVER_ADDR] => 127.0.0.1
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 127.0.0.1
    [DOCUMENT_ROOT] => C:/xampp/xampp/htdocs
    [SERVER_ADMIN] => admin@localhost
    [SCRIPT_FILENAME] => D:/web/test/test.php
    [REMOTE_PORT] => 4330
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => var1=one&var2=two&DBGSESSID=385026284280200008;d=1,p=0
    [REQUEST_URI] => /web/test/test.php?var1=one&var2=two&DBGSESSID=385026284280200008;d=1,p=0
    [SCRIPT_NAME] => /web/test/test.php
    [PHP_SELF] => /web/test/test.php
)


I am running Win XP and have XAMPP installed locally with Apache2 and PHP 5.03. Under PhpEd's settings I have Run mode set to 3rd party web server. I downloaded and installed NuSphere-phped-3.3-php-5.0.3-Win32.exe and set the executable to 'C:\Program Files\nusphere\phped\php5\php.exe' for .php extension under the 'Srv web server' tab. I also copied over the appropriate extension dll to extension_dir and edited httpd.conf

Thanks for any help!
View user's profileFind all posts by mfyahyaSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
You may want to use $_GET[] instead of $_SERVER[] to work with GET arguments passed to the script.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Undefined $_SERVER['argv'] when using 3rd party web server
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic