NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Different results for $_SESSION['PHP_SELF']


Joined: 16 Dec 2010
Posts: 5
Reply with quote
Hello,
if I make an echo in my php-Code (without using Nusphere Debugger) I get :
echo ($_SESSION['PHP_SELF'])
result : /scriptcase/app/ ........

If I debug step by step in NuSphere 6.0 I get the following result for $_SESSION['PHP_SELF']:
/file:/c:/Program Files/scriptcase/app/....

Why is there a difference : Do I have to change any parameter in php.ini of Nusphere ?

Best regards
Uwe Pfeiffer
View user's profileFind all posts by PfeifferSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
I must admit that is an interesting question.

In theory neither PhpED nor DBG should have any impact on the values of any variables within PHP, maybe with the exception of adding some of its own cookie and query parameter settings.

However, you indicate PHP_SELF shows file:/, which I wouldn't expect from Apache/PHP, so are you using Apache/PHP or the built-in PhpED Server? If it is the latter, that might explain it. I don't find the built-in server suitable for testing web sites.
View user's profileFind all posts by plugnplaySend private message
I'm using ISS on a windows 2003 server


Joined: 16 Dec 2010
Posts: 5
Reply with quote
Hello,
For debugging I use ISS on windows 2003 server.

Best regards
Uwe Pfeiffer
View user's profileFind all posts by PfeifferSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
It's because you didn't create a project.
Without projects SRV runs files using file:/ in the url.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
Not sure if williamblake621's comment is spam or not, but it's not very helpful.

There's nothing wrong with IIS on Windows 2003 and it is still very popular. Nearly all my clients are still on Windows 2003 and it works great. Why spend a lot of money to Micro$oft to upgrade if it still works?

However, I admit that I wouldn't use IIS for working with PHP; I much prefer using Apache in Windows 2003 and I've found that to be perfect for developing sites that subsequently run on Linux with Apache. On the same 2003 Server I use IIS for .NET work (port 80) and Apache for PHP work (using a different port).

I also would not use Nusphere SRV for debugging web projects, but it is good for command line PHP and standalone projects.
View user's profileFind all posts by plugnplaySend private message


Joined: 06 Dec 2011
Posts: 1
Location: Los Angeles
Reply with quote
okay that will be great but Microsoft products & services are still expensive for me..
View user's profileFind all posts by kevinjose356Send private messageYahoo Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 8334
Reply with quote
then install Apache.
For example, -- we created TechPlatform, a free product, that installs apache+php and php debugger.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Different results for $_SESSION['PHP_SELF']
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