For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > January 2006 > #36163 [NEW]: Curl functionality on Apache2









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #36163 [NEW]: Curl functionality on Apache2
aemulus at hotmail dot com

2006-01-26, 7:55 am

From: aemulus at hotmail dot com
Operating system: Windows XP SP2
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Curl functionality on Apache2

Description:
------------
Fresh install of apache 2.0.55 MSI installer.
Fresh install of PHP 5.1.2 unzipped 8mb + PECL extensions in C:\php

Extensiondir=C:\php\ext (also tried C:/php/ext, and both with "/" on the
end, also in quotations and without for a combination of 6 different path
patterns)

Copied ssleay32.dll, and libeay32.dll to C:\Windows\System32 (also tried
the apache folder, apache/bin folder, c:\windows, etc)

Core PHP works on Apache, so PHP is installed correctly.
No error on starting apache (nothing saying dll can't be found, etc...
EVER!!) < -- grr

Only one php.ini exists in system located in c:\php .
Uncommented "extension=php_curl.dll" and added
"extension=php_win32service.dll".

Reproduce code:
---------------
Win32_Query_Service - Bug #1
-----------------------------------------------
<?php
$test1=win32_query_service_status("time");
print $test1;
?>

Curl ---------------- Bug #2
-----------------------------------------------
<?php
$test2=geturlfile("http://www.google.ca");
print $test2;

function geturlfile($link2) {
$curl_handle=curl_init();
curl_setopt($curl_handle,CURLOPT_URL,$li
nk2);
curl_setopt($curl_handle,CURLOPT_CONNECT
TIMEOUT,2);
curl_setopt($curl_handle,CURLOPT_RETURNT
RANSFER,1);
$buffer = curl_exec($curl_handle);
curl_close($curl_handle);
if (empty($buffer))
{
return "0";
} else {
return $buffer;
}
}
?>

Expected result:
----------------
BUG#1 RESULT: Fatal error: Call to undefined function
win32_query_service_status() in bug1.php on line 2

BUG#2 RESULT: Fatal error: Call to undefined function curl_init() in
bug2.php on line 3

Actual result:
--------------
Code is short and sweet, dll's are all in their proper locations according
to the documentation. Additions were made to the httpd.conf file according
to the PHP 5 section in the install.txt, and both of these dll's provide
zero functionality as they are not being loaded.

Please advise.

Thank you

--
Edit bug report at http://bugs.php.net/?id=36163&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36163&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36163&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36163&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36163&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36163&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36163&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36163&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36163&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36163&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36163&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36163&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36163&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36163&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36163&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36163&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36163&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36163&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36163&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36163&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36163&r=mysqlcfg
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com