GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   curl - PHP guru (https://gfy.com/showthread.php?t=520996)

qw12er 09-26-2005 04:28 PM

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.

SFF11 09-26-2005 04:29 PM

Is it included in your PHP setup?

try:
Code:

<?php
phpinfo();
?>


AcidMax 09-26-2005 04:30 PM

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.

qw12er 09-26-2005 04:34 PM

Damn ! I don't have it ... thanks guys

Fresh 09-26-2005 04:37 PM

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

naitirps 09-26-2005 04:37 PM

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]

qw12er 09-26-2005 04:37 PM

What about libcurl ?

Can't I just do something like include('libcurl.php'); or something like this ?

psili 09-26-2005 04:41 PM

Quote:

Originally Posted by qw12er
What about libcurl ?

Can't I just do something like include('libcurl.php'); or something like this ?

I didn't research the answer, and I didn't know something like "libcurl.php" existed, but I'd guess if you compile curl with PHP the performance increase over some external, additional layer like a "libcurl.php" would be huge.


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