看板 PHP 關於我們 聯絡資訊
我在XP的localhost使用php-5.2.14-Win32.zip apache使用httpd-2.2.16-win32-x86-openssl-0.9.8o.msi php.ini只改了兩行 啟用了一些dll 在我的電腦環境變數Path加了c:\php\ext Apache 的conf加入 # 設定使用PHP 5: LoadModule php5_module "c:/php/php5apache2_2.dll" AddType application/x-httpd-php .php # 設定php.ini的位置 PHPIniDir "c:/php" # 設定使用D:/wwwroot為網站的根目錄 DocumentRoot "D:/ApacheWeb" DirectoryIndex index.php <Directory "D:/ApacheWeb"> #設定網站的根目錄權限 AllowOverride All Allow from All </Directory> 在php.ini增改下面這幾行 display_errors = On extension_dir = "c:\php\ext" extension=php_zip.dll extension=php_mbstring.dll extension=php_exif.dll extension=php_curl.dll extension=php_soap.dll extension=php_sockets.dll 但是還是找不到函式 我有把exif.dll改在mbstring.dll前面 error log會出現沒找到exif.dll 所以我覺得exif都找到了 應該路徑可能沒問題 請問還有甚麼可能嗎 error log 如下 httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.11 for ServerName PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\php\\ext\\php_curl.dll' - \xa7\xe4\xa4\xa3\xa8\xec\xab\xfc\xa9w\xaa\xba\xbc\xd2\xb2\xd5\xa1C\r\n in Unknown on line 0 [Wed Sep 22 16:50:15 2010] [notice] Apache/2.2.16 (Win32) PHP/5.2.14 configured -- resuming normal operations [Wed Sep 22 16:50:15 2010] [notice] Server built: Jul 30 2010 16:15:37 [Wed Sep 22 16:50:15 2010] [notice] Parent: Created child process 3100 httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.11 for ServerName httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.11 for ServerName PHP Warning: PHP Startup: Unable to load dynamic library 'c:\\php\\ext\\php_curl.dll' - \xa7\xe4\xa4\xa3\xa8\xec\xab\xfc\xa9w\xaa\xba\xbc\xd2\xb2\xd5\xa1C\r\n in Unknown on line 0 [Wed Sep 22 16:50:15 2010] [notice] Child 3100: Child process is running [Wed Sep 22 16:50:16 2010] [notice] Child 2600: Released the start mutex [Wed Sep 22 16:50:16 2010] [notice] Child 3100: Acquired the start mutex. [Wed Sep 22 16:50:16 2010] [notice] Child 3100: Starting 64 worker threads. [Wed Sep 22 16:50:17 2010] [notice] Child 2600: All worker threads have exited. [Wed Sep 22 16:50:17 2010] [notice] Child 3100: Starting thread to listen on port 80. [Wed Sep 22 16:50:17 2010] [notice] Child 2600: Child process is exiting -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.161.52.53 ※ 編輯: nfsong 來自: 218.161.52.53 (09/22 16:51)
nfsong:我把其他的dll全開好像都讀不到 但是exif有讀到真奇怪 09/22 17:00
nfsong:也有把libeay32.dll還有 ssleay32.dll 複製到 system32 09/22 17:40
nfsong:抓了最新的php-5.3.3 變成跳一個視窗出來 一樣讀不到 09/22 19:04
nfsong:終於試出來了extension_dir = "c:\php\ext\" 09/22 19:12
nfsong:最後一個斜線也要加.... 09/22 19:12
nfsong:不過我是用最新版的 舊的不知道行不行 09/22 19:13
ileadu:請問你的作業系統是 windows 7 嗎? 09/22 19:36
nfsong:zuluck ghost XP 09/22 20:00
nfsong:不過我用新版的不用把dll丟到system32裡面 改dir就好 09/22 20:01
nfsong:我之前有朋友是要丟dll到system32裡面 09/22 20:01