0

我做了这段代码:

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

$hello的内容是error:02001003:system library:fopen:No such process

所以我搜索解决方案,它说我必须将 PhP 目录添加到路径:

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

问题是什么是 PHP 目录,我在哪里可以找到它?它在phpmyinfo中吗?什么?

4

1 回答 1

2

搜索php.exe。它所在的目录应该添加到您的路径变量中。

于 2012-12-18T11:12:12.807 回答