2012-12-18 95 views
0

我這樣做代碼:在Windows中,我可以在哪裏找到PhP目錄?

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

$打招呼的內容是 錯誤: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中嗎?什麼?

+0

你是怎麼安裝PHP的? PHP不會隨Windows一起提供。 – deceze

+0

我使用zend服務器進行安裝。其實什麼是PHP目錄呢?它是包含php.exe的目錄嗎? –

回答

2

搜索php.exe。它所在的目錄應該被添加到你的路徑變量中。

相關問題