Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Webmaster Forums > Web Design, Coding & Programming Forum

GoogleCommunity Sponsor
Cirtex Hosting
Use coupon "forum" for 50% Off!

Reply
 
LinkBack Thread Tools Display Modes
Old 02-16-2006, 07:37 AM   #1 (permalink)
Googler
 
Join Date: Dec 2005
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
anandnadaar
Send a message via Yahoo to anandnadaar
Curl_init() help ??

Hi,

Can anybody tell me an alternative solution for a php function called Curl_init()

I have a couple of SEO tools which is using that, and I am facing problem with that function.
My server admin says its not a server problem..

check the error here

Can anybody give any solution ?
Will be more than thankful..
anandnadaar is offline   Reply With Quote
 
Sponsored Links
Old 02-16-2006, 12:31 PM   #2 (permalink)
Noogle
 
Join Date: Feb 2006
Location: Ann Arbor, MI, USA
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
GameMaker
Well, I don't see any errors when I visit that page.

If you are still experiencing the problem, you might check the PHP docs for curl_init. It could be that the webserver doesn't have curl installed on it, as it seems to be an optional PHP extension.
GameMaker is offline   Reply With Quote
Old 02-16-2006, 04:32 PM   #3 (permalink)
Googler
 
Join Date: Dec 2005
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
anandnadaar
Send a message via Yahoo to anandnadaar
Quote:
Originally Posted by GameMaker
Well, I don't see any errors when I visit that page.

If you are still experiencing the problem, you might check the PHP docs for curl_init. It could be that the webserver doesn't have curl installed on it, as it seems to be an optional PHP extension.
Thanks for your links and effort to help.
But when I say error means error when i run that tool.
I get this error
Searched Phrase: testing intitle:Add a link
Fatal error: Call to undefined function: curl_init() in /home/kreation/public_html/seotools/add_link_suggestion/clsGoogle.php on line 13

and I read those links many times now.
they only explain about curl funtion and does not give any curl alternatives.
I am just searching for any curl alternate function.
anandnadaar is offline   Reply With Quote
Old 02-16-2006, 05:35 PM   #4 (permalink)
Noogle
 
Join Date: Feb 2006
Location: Ann Arbor, MI, USA
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
GameMaker
Ok - I see it now when I actually use the tool.

curl_init is only the initialization function for the curl extension, so you also need to replace any curl_setopt, curl_exec, and curl_close function calls. If I am reading the docs correctly, the purpose of these functions is to fetch a remote HTML page and print it to the page being served to the browser. If that is how they are being used in your tools, you should take a look at PHP's filesystem functions. As long as allow_url_fopen is set to "1", which is the default, they can be used to access remote documents over http or ftp. Note that this setting can only be specified in the systemwide php.ini, so it is up to the sysadmin whether or not it is set.

Assuming it is, you could probably replace all the curl functions with a readfile call. This function prints a file to the document being served, and if allow_url_fopen is set to "1", it can do the same for remote files.

[Edit] If you are using seo tools from seobook, then you might be able to simply replace the $google->curl_string($url_page,$user_agent); calls with $google->getUrl($url_page); calls, though you'll first have to edit the google class to add the getUrl function from their UltimateSEO class.
GameMaker is offline   Reply With Quote
Old 02-16-2006, 08:24 PM   #5 (permalink)
Googler
 
Join Date: Dec 2005
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
anandnadaar
Send a message via Yahoo to anandnadaar
Thats something interesting !!

Wow, now thats called as help !

I really appreciate the way you explained and giving me some hope that I would be able to use those tools.
Yes those problematic tools are from seobook.
The problem is that I am not a php savvy or guru and I really cant work to the extent you have explained.

I am basically a Graphic and Web Designer. So it would be something very time consuming and would require me to learn full php for that.

I will put it straight. If you can help me in coding those things out and making those tools work. I would provide you with one PR2 link and a featured listing worth $10 for a year for your website link.
PR2 - link is here
Featured link is here

I hope you would reply this post or PM to help me and get those links for your website.
anandnadaar is offline   Reply With Quote
Old 02-17-2006, 05:41 AM   #6 (permalink)
Noogle
 
Join Date: Feb 2006
Location: Ann Arbor, MI, USA
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
GameMaker
I am about to leave for the weekend, so I won't be able to take a look at it again until Monday. In the meantime, why don't you ask the server admin if he could install libcurl, as that might make everything work just as it is.

If he won't or that doesn't fix things, I'll take a look at it early next week.
GameMaker is offline   Reply With Quote
Old 02-17-2006, 09:08 AM   #7 (permalink)
Googler
 
Join Date: Dec 2005
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
anandnadaar
Send a message via Yahoo to anandnadaar
thanks

Okay, lets c how things go.
If my problem is not fixed I would reply the same post to inform you about it.

Thanks and have nice weekend
anandnadaar is offline   Reply With Quote
Reply

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 11:07 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community