user4951
user4951

Reputation: 33130

In Windows, where can I find the PhP directory?

I did this code:

$privKey = openssl_pkey_new();  
    //define(INITIALCODE, "hello.com");
    $hello = openssl_error_string() ;
    $timenow=time();

The content of $hello is error:02001003:system library:fopen:No such process

So I search for solution and it says that I have to add PhP directory to path:

Go to Control Panel and open the System icon (Start -> Settings -> Control Panel -> System, or just Start -> Control Panel -> System for Windows XP/2003)
Go to the Advanced tab
Click on the ‘Environment Variables’ button
Look into the ‘System Variables’ pane
Find the Path entry (you may need to scroll to find it)
Double click on the Path entry
Enter your PHP directory ant the end, including ‘;’ before (e.g. ;C:\php)
Press OK and restart your computer

The problem is what is PHP directory and where can I find it? Is it in phpmyinfo? What?

Upvotes: 0

Views: 4038

Answers (1)

Berry Langerak
Berry Langerak

Reputation: 18859

Search for php.exe. The directory it's in should be added to your path variable.

Upvotes: 2

Related Questions