0
I looked for ways to solve this problem to use the function http_get()
, all had to install the lib php-http and by pecl the http only.
I did it and I set apache2/php.ini
libraries in this way:
extension=/usr/lib/php5/20121212/http.so
extension=/usr/lib/php5/20121212/raphf.so
extension=/usr/lib/php5/20121212/propro.so
I gave the command service apache2 restart
and the problem still continues, does anyone know if anything else is missing? Remembering that it is in Linux Mint/Ubuntu.
Look here: http://httpd.apache.org/docs/current/mod/core.html and here: http://php.net/manualen/http.install.php
– Ivan Ferrer
This is the previous version of: http://php.net/manual/en/function.http-get.php make: apt-get install php-http
– Ivan Ferrer
I had already done all this... I even restarted the computer! But nothing has worked so far, I have the impression that it does not take the changes in php.ini, sei la.
– user2831852
I decided to uninstall and install pecl_http again and when I use the command var_dump(extension_loaded("http")); it prints TRUE, but the http_get command still doesn’t work and gives the error Fatal error: Call to Undefined Function http_get() in /home/Andre/www/get_php.php on line 5
– user2831852
I think you don’t need to do anything manually, just install already puts the "Extensions" correctly. Look here: http://php.net/manual/en/http.install.php, remove what you did and type in the terminal the command:
apt-get install php5-dev && apt-get install libcurl3 && apt-get install libmagic && apt-get install php-http && pecl install pecl_http
– Ivan Ferrer
That I did at the beginning of everything! It didn’t work.
– user2831852
Maybe your code isn’t using the method
http_get()
adequately.– Ivan Ferrer
Good evening, tested my answer?
– Guilherme Nascimento
Hummm... it’s been a while since it happened! I don’t really remember, but I think I solved this problem using Curl! But thank you all for your help!
– user2831852