This code is not working to server. But It is working to my localhost (xampp)
$url = file_get_contents(\'http://www.site.com/\');
$xhtml=\'|
-
Try this function in place of file_get_contents():
It can be used just like file_get_contents(), but uses cURL.
Install cURL on Ubuntu (or other unix-like operating system with aptitude):
sudo apt-get install php5-curl
sudo /etc/init.d/apache2 restart
See also cURL
- 热议问题