Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-26-2005, 04:28 PM   #1
qw12er
Confirmed User
 
Join Date: Apr 2004
Location: Montreal
Posts: 799
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.
__________________
I have nothing to advertise ... yet.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2005, 04:29 PM   #2
SFF11
Confirmed User
 
Join Date: Sep 2005
Posts: 102
Is it included in your PHP setup?

try:
Code:
<?php
phpinfo();
?>
SFF11 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2005, 04:30 PM   #3
AcidMax
Confirmed User
 
Join Date: May 2002
Location: MI
Posts: 1,827
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.
__________________
Latest MMA news. http://www.mmawrapup.com
AcidMax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2005, 04:34 PM   #4
qw12er
Confirmed User
 
Join Date: Apr 2004
Location: Montreal
Posts: 799
Damn ! I don't have it ... thanks guys
__________________
I have nothing to advertise ... yet.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2005, 04:37 PM   #5
Fresh
 
Fresh's Avatar
 
Join Date: Mar 2005
Location: LA
Posts: 4,920
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
__________________


Promote ONE Legal Tube Site, Collect Checks from 19 Sponsors

Fresh Dave | Email: [email protected] | ICQ: 317160390


Fresh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2005, 04:37 PM   #6
naitirps
Confirmed User
 
Join Date: May 2004
Location: ...
Posts: 761
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]
__________________
Programmer
ICQ 44035273 | AIM spritwork | Email spritian at spritian dot com
naitirps is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2005, 04:37 PM   #7
qw12er
Confirmed User
 
Join Date: Apr 2004
Location: Montreal
Posts: 799
What about libcurl ?

Can't I just do something like include('libcurl.php'); or something like this ?
__________________
I have nothing to advertise ... yet.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-26-2005, 04:41 PM   #8
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
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.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.