Google Community Chat
 
Curl_init() help ??

You're visiting Google Community as a guest.
In order to post, you'll need to register and log in.



(If you were registered and logged in, these advertisements wouldn't be here)
Post new topic   Reply to topic    Google Community Forum Index // Web Design, Coding & Programming Forum
   
Author Message
anandnadaar
Googler
Googler


Joined: 14 Dec 2005

20592.40 GC$

Items

PostPosted: Thu Feb 16, 2006 8:37 am    Post subject: Curl_init() help ?? Reply with quote
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..
_________________
Regards,
V.M.Nadar

Tools Directory - Earn with your link submission

PR4 SE Friendly Web Directory Low price web directory
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
GameMaker
Noogle
Noogle


Joined: 11 Feb 2006
Location: Ann Arbor, MI, USA
954.00 GC$

Items

PostPosted: Thu Feb 16, 2006 1:31 pm    Post subject: Reply with quote
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.
_________________
Play online sudoku and nurikabe.
Back to top
View user's profile Send private message Visit poster's website
anandnadaar
Googler
Googler


Joined: 14 Dec 2005

20592.40 GC$

Items

PostPosted: Thu Feb 16, 2006 5:32 pm    Post subject: Reply with quote
GameMaker wrote:
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.
_________________
Regards,
V.M.Nadar

Tools Directory - Earn with your link submission

PR4 SE Friendly Web Directory Low price web directory
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
GameMaker
Noogle
Noogle


Joined: 11 Feb 2006
Location: Ann Arbor, MI, USA
954.00 GC$

Items

PostPosted: Thu Feb 16, 2006 6:35 pm    Post subject: Reply with quote
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.
_________________
Play online sudoku and nurikabe.
Back to top
View user's profile Send private message Visit poster's website
anandnadaar
Googler
Googler


Joined: 14 Dec 2005

20592.40 GC$

Items

PostPosted: Thu Feb 16, 2006 9:24 pm    Post subject: Thats something interesting !! Reply with quote
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. Crying or Very sad

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. Smile
_________________
Regards,
V.M.Nadar

Tools Directory - Earn with your link submission

PR4 SE Friendly Web Directory Low price web directory
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
GameMaker
Noogle
Noogle


Joined: 11 Feb 2006
Location: Ann Arbor, MI, USA
954.00 GC$

Items

PostPosted: Fri Feb 17, 2006 6:41 am    Post subject: Reply with quote
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.
_________________
Play online sudoku and nurikabe.
Back to top
View user's profile Send private message Visit poster's website
anandnadaar
Googler
Googler


Joined: 14 Dec 2005

20592.40 GC$

Items

PostPosted: Fri Feb 17, 2006 10:08 am    Post subject: thanks Reply with quote
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 Smile
_________________
Regards,
V.M.Nadar

Tools Directory - Earn with your link submission

PR4 SE Friendly Web Directory Low price web directory
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Sponsored Links
Posted: 9 Jan 2009 3:21 am    Post subject: Advertisements
Back to top
Post new topic   Reply to topic    Google Community Forum Index // Web Design, Coding & Programming Forum All times are GMT - 8 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Host your free forums with Invision Plus.net forum web hosting with your own subdomain.

alexisBlue v1.2 // Theme Created By: Andrew Charron // Icons in Part By: Travis Carden

© 2005-2006 Google Community

Powered by phpBB

Privacy Policy | Contact Us

Powered by Google Search blog

This website is not affiliated in any way with Google, Inc.
Google™ is a registered trademark of Google, Inc.