Current location: Hot Scripts Forums » Programming Languages » PHP » PHP Curl


PHP Curl

Reply
  #1 (permalink)  
Old 05-13-09, 07:55 AM
horeru_tenshi horeru_tenshi is offline
Newbie Coder
 
Join Date: Feb 2009
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
PHP Curl

Hi Guys,

I would like integrate google analytics reports in my website using PHP curl but I am having a problem configuring my workstation for that PHP Curl to run. May anyone please tell me how to do that? Or if you have other solutions on how to integrate analytics reports in my site without using Curl I will appreciate it. But pls dont tell me to go to this site...or that site... Just give me a step by step solutions pls.

And pls. make your answers very understandable to someone who is not a native english speaker. Just pretend that you are talking to a pre-schooler...

I am using PHP Version 5.2.6, IIS v5.1 on Windows XP Professional

Thanks so much.
Reply With Quote
  #2 (permalink)  
Old 05-13-09, 11:34 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by horeru_tenshi View Post
But pls dont tell me to go to this site...or that site... Just give me a step by step solutions pls.

And pls. make your answers very understandable to someone who is not a native english speaker. Just pretend that you are talking to a pre-schooler..
I may be wrong, but I don't think anyone can do this without knowing a lot more about your setup, the error messages you're seeing, your configuration, and what you've already tried.

It's like asking someone to tell you how to build a house, without your knowing anything about wood, power tools, or construction techniques.

As far as asking you to look at other pages and get information from them, that's a major part of helping someone do things on the web. To tell people not to do that is kind of unrealistic.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
  #3 (permalink)  
Old 05-13-09, 08:26 PM
horeru_tenshi horeru_tenshi is offline
Newbie Coder
 
Join Date: Feb 2009
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Oh really?

Im so sorry...

Ok I will try to explain what I have done so far. I have been to a site that tells me how to configure PHP curl. The site says I have to configure extension_dir="c:\php\extensions\" in my php.ini but it is nowhere to be found so I just put it there. I also have to put php_curl.dll in that directory and so I did. I also put libeay32.dll and ssleay32.dll in my c:\WINDOWS\system32 but I am still getting this error, Fatal error: Call to undefined function curl_init() in C:\www\peg\analytics_api.php on line 268.

That's where I am right now.

Since my best option here is to look to other sites, please give me a good site that will tell me how to run my PHP curl. Or a good site that will teach me how to integrate my google analytic reports in my site.

Thanks so much.
Reply With Quote
  #4 (permalink)  
Old 05-14-09, 02:41 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
You also have to tell PHP to load the extension. Check your php.ini file for this line:
Code:
;extension=php_curl.dll
... if it's there, remove the leading semi-colon ; and restart your web server. If it's not there, just add it.


As for the extension directory, mine is specified at line 461. Make sure yours is really not there before you add it yourself. Because if you ad yours before the one that's already there, it'll just be overwritten.

It's very important that you restart your web server after making changes in php.ini, 'cause they won't take effect otherwise.
Reply With Quote
  #5 (permalink)  
Old 05-14-09, 07:02 AM
horeru_tenshi horeru_tenshi is offline
Newbie Coder
 
Join Date: Feb 2009
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks End User and Nico...honestly, my PHP or IIS crushed while testing a lot of tutorials so I decided to delete all the files of php and reinstall both of them. I made sure that I included the curl in my included extensions and poop my curl is already working. Thanks so much. Now I feel better.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 10:17 AM
TCAdmin & PHP cURL -[OnTarget]- PHP 2 11-19-06 04:41 PM
help with error messages.. please APuppyDog PHP 2 10-05-06 11:09 PM
PHP Downside--Solutions? Amulet PHP 10 07-15-05 08:26 AM


All times are GMT -5. The time now is 08:35 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.