TransIP.nl biedt een PHP API aan waarmee je de beschikbaarheid van domeinen kunt controleren. In de readme file staat:
Het antwoord is nee, dus ik ga verder. Ik gebruik Apache 2.0 op Windows XP met PHP 4.3.7. Als ik het goed begrijp, moet ik nu eerst controleren of ik libeay32.dll en ssleay32.dll op mijn machine heb. Die heb ik, in de WINDOWS folder. In C:\Program Files\PHP\extensions zie ik php_curl.dll staan. Daar werd op php.net niets over gezegd. In de FAQ file van de mbv de cURL download wizard gedownloade win32 package curl-7.15.1-win32-nossl-sspi.zip vind ik een antwoord:
Ik heb stille hoop dat ik met een eenvoudige php.ini aanpassing curl functies kan activeren, maar kan hier verder geen informatie over vinden. Kan iemand mij vertellen wat ik moet doen om curl functies beschikbaar te krijgen in mijn installatie?
P.S Ik heb even getwijfeld of deze vraag niet in SA moest, maar heb voor P&W gekozen omdat het ws. om een php.ini instelling of httpd.conf instelling gaat (mag ik hopen!) en de meeste php expertise in dit subforum zit
Op die bewuste php.net pagina lees ik onder andere het volgende:Install the PHP libcurl module. This is required!
See also: http://nl2.php.net/curl
Omdat ik nog nooit een eigen PHP configuratie gecompiled heb, controleer ik eerst maar eens of een aantal curl functies niet toevallig bestaan / werken op mijn configuratie:PHP supports libcurl, a library created by Daniel Stenberg [...] These functions have been added in PHP 4.0.2 [...] In order to use PHP's CURL functions you need to install the libcurl package
[...]
To use PHP's CURL support you must also compile PHP --with-curl[=DIR] where DIR is the location of the directory containing the lib and include directories. In the "include" directory there should be a folder named "curl" which should contain the easy.h and curl.h files. There should be a file named libcurl.a located in the "lib" directory. Beginning with PHP 4.3.0 you can configure PHP to use CURL for URL streams --with-curlwrappers.
[...]
Note to Win32 Users: In order to enable this module on a Windows environment, libeay32.dll and ssleay32.dll must be present in your PATH. You don't need libcurl.dll from the CURL site.
PHP:
1
| echo (function_exists(init_curl)) ? 'ja' : 'nee'; |
Het antwoord is nee, dus ik ga verder. Ik gebruik Apache 2.0 op Windows XP met PHP 4.3.7. Als ik het goed begrijp, moet ik nu eerst controleren of ik libeay32.dll en ssleay32.dll op mijn machine heb. Die heb ik, in de WINDOWS folder. In C:\Program Files\PHP\extensions zie ik php_curl.dll staan. Daar werd op php.net niets over gezegd. In de FAQ file van de mbv de cURL download wizard gedownloade win32 package curl-7.15.1-win32-nossl-sspi.zip vind ik een antwoord:
Maar op php.net werd gezegd dat ik als win32 gebruiker libcurl.dll niet nodig had. Van de rest van de gedownloade package wordt ik ook niet veel wijzer: deze bevat naast de readme files alleen curl.exe (een command line tool volgens mij), maar weer niet libcurl.dll.PHP/CURL is a module that comes with the regular PHP package. It depends and uses libcurl, so you need to have libcurl installed properly first before PHP/CURL can be used.
Ik heb stille hoop dat ik met een eenvoudige php.ini aanpassing curl functies kan activeren, maar kan hier verder geen informatie over vinden. Kan iemand mij vertellen wat ik moet doen om curl functies beschikbaar te krijgen in mijn installatie?
P.S Ik heb even getwijfeld of deze vraag niet in SA moest, maar heb voor P&W gekozen omdat het ws. om een php.ini instelling of httpd.conf instelling gaat (mag ik hopen!) en de meeste php expertise in dit subforum zit
[ Voor 6% gewijzigd door Reveller op 16-01-2006 18:51 ]
"Real software engineers work from 9 to 5, because that is the way the job is described in the formal spec. Working late would feel like using an undocumented external procedure."