google pagerank curl call using php

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

i https://forum.tuteehub.com/tag/read">read an article regarding google rank and i wanted to create a php script that get the page rank using curl in php - i endded up using this script:

http://www.brightyoursite.com/blog/2010/06/01/use-php-to-get-google-page-rank/

now when i run it i get on my ubuntu:

Fatal https://forum.tuteehub.com/tag/error">error: Call to undefined function curl_init() in /var/www/googlerank.php ....

profilepic.png
manpreet 2 years ago

You have to install php5-curl.

On Ubuntu or Debian, you can do this by running either apt-get install php5-curl or aptitude install php5-curl depending on which command you use to manage your packages.

You can see whether it is currently installed or not using the command aptitude show php5-curl.

It is always good to keep a PHP script with only this code:

php phpinfo() ?>

The above code will print a lot of information about server, the request, installed packages, etc. that are useful for diagnosing issues. If php5-curl is installed, you should find a section for 'curl' in the output here.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.