[請益] 請問一下找不到curl()

看板PHP作者 (圖書館我來了)時間13年前 (2010/09/22 16:25), 編輯推噓0(0011)
留言11則, 2人參與, 最新討論串1/1
我在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)

09/22 17:00, , 1F
我把其他的dll全開好像都讀不到 但是exif有讀到真奇怪
09/22 17:00, 1F

09/22 17:40, , 2F
也有把libeay32.dll還有 ssleay32.dll 複製到 system32
09/22 17:40, 2F

09/22 17:44, , 3F

09/22 19:04, , 4F
抓了最新的php-5.3.3 變成跳一個視窗出來 一樣讀不到
09/22 19:04, 4F

09/22 19:12, , 5F
終於試出來了extension_dir = "c:\php\ext\"
09/22 19:12, 5F

09/22 19:12, , 6F
最後一個斜線也要加....
09/22 19:12, 6F

09/22 19:13, , 7F
不過我是用最新版的 舊的不知道行不行
09/22 19:13, 7F

09/22 19:36, , 8F
請問你的作業系統是 windows 7 嗎?
09/22 19:36, 8F

09/22 20:00, , 9F
zuluck ghost XP
09/22 20:00, 9F

09/22 20:01, , 10F
不過我用新版的不用把dll丟到system32裡面 改dir就好
09/22 20:01, 10F

09/22 20:01, , 11F
我之前有朋友是要丟dll到system32裡面
09/22 20:01, 11F
文章代碼(AID): #1CcRrjj2 (PHP)