![]() |
curl - PHP guru
how can I know if I have everything I need to use curl functions ?
In the examples I saw I don't need to include anything ... but do I ? Right now curl_init(); causes an error. |
Is it included in your PHP setup?
try: Code:
<?php |
Just do a
phpinfo(); in your code and it will spit out all the config options. If it lists CURL on that page, then you should have it, if not then it needs to be compiled into PHP. |
Damn ! I don't have it ... thanks guys
|
curl
CURL support enabled CURL Information libcurl/7.11.2 OpenSSL/0.9.7c zlib/1.1.4 look for that in your phpinfo(); display if you see it, your all set... if not, if unix/linux, you have to compile php with-curl, or if on windows, uncomment the extension for curl.dll in the php.ini file |
if unix/linux, compile php with: --with-curl[=DIR]
if windows, download the zip (not installer), in the ext folder you'll see all the dlls, find the curl one, slap it in ext, and modify php.ini to include it under [extensions] |
What about libcurl ?
Can't I just do something like include('libcurl.php'); or something like this ? |
Quote:
|
All times are GMT -7. The time now is 01:42 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123