NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
[resolved] Could not use PHP that comes with PhpED


Joined: 11 Aug 2006
Posts: 7
Reply with quote
I have a pc that was set up with Apache and PHP, where PHP was installed in c:\program files\PHP. When I run a test program from within PhpED:

Code:

<?php phpinfo();?>


phpinfo tells me it uses c:\program files\PHP\php.ini and NOT C:\Program Files\nusphere\phped\php5\php.ini. Path to php.ini in Settings/Tools points to the correct C:\Program Files\nusphere\phped\php5\php.ini and the SRV server port is set to 8080.

What's wrong?
View user's profileFind all posts by WielMSend private message


Joined: 11 Aug 2006
Posts: 7
Reply with quote
For the record: I solved the problem.

In the previously described problem, PhpED's 5.1.6 PHP used a PHP 5.2 php.ini that caused some dll's (i.e. mysql) not to work. (http://www.php.net/configuration describes how PHP determines what php.ini to use for both versions, which differ in locating the right php.ini)

The solution is quite simple: download the PHP 5.2 version from PhpED's website and install it. Although the PhpED's PHP invocation still uses the wrong php.ini, at least it's the correct version now and dll's work again...
View user's profileFind all posts by WielMSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8340
Reply with quote
there are two ways:
1) you can use php installed on your system. In this order, you have to turn RunMode to "HTTP/3rd party web server", create project and set its properties. (See File Mapping in the FAQ forum)

2) you can use php that comes with PhpED. In this case remove PHPRC enviroment variable and set RunMode to "HTTP/SRV web server"

(Personally, I'd prefer the 1st way)

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
[resolved] Could not use PHP that comes with 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