NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Anybody help me with a problem of global variables in PHPed?


Joined: 16 Aug 2004
Posts: 4
Reply with quote
Hi

I have a problem with global variables in PHPed debugger.

For instance, let's take the example of $_SERVER['REQUEST_URI'].
If I look at the value of $_SERVER['REQUEST_URI'] in debugger through phpinfo(), the value is like this - /file:/var/www/getreport/data-report-page.php.
However without debugger, the value of $_SERVER['REQUEST_URI'] is /getreport/data-report-page.php.

Because of this under PHPEd environment, the program can't load a report.
Is anyone who can help me with this?
Crying or Very sad
View user's profileFind all posts by thomaslee612Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Install Apache and debug your scripts under it Smile
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 16 Aug 2004
Posts: 4
Reply with quote
I've already have an Apache Webserver installed.
Here is my current environment:

OS: Linux

Webserver: Apache
It seems to me that PHPEd does not pick up(or support) global variables correctly.
For instance, in a debugger environment, $_REQUEST['wtloadreport_x'] is not defined.
Without PHPEd, it's OK. Because of this, in the debugger environment, report can't be loaded.

Can you help me with this? Crying or Very sad
View user's profileFind all posts by thomaslee612Send private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
check RUN MODE. If you use SRV local web server some of the environment variables might be undefined. It is not a problem with the debugger but with SRV server. That's why I suggested you to have HTTP/3rd party web server run mode set.
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Anybody help me with a problem of global variables in PHPed?
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