在Windows中,我在哪里可以找到PhP目录?

时间:2012-12-18 11:02:41

标签: php windows

我做了这段代码:

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

$ hello的内容是 错误:02001003:系统库:fopen:没有这样的过程

所以我搜索解决方案,它说我必须将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中吗?什么?

1 个答案:

答案 0 :(得分:2)

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