View Single Post
  #1  
Old 12-01-2012, 06:12 PM
webhostnix webhostnix is offline
Member
 
Join Date: Sep 2012
Posts: 20
Default [solved] file_get_contents does not work on LSWS 4.2.1

Hi,

file_get_contents does not work on LSWS 4.2.1 ( Blank page/no result ).

Here is the code :
PHP Code:
<?php
$contents 
file_get_contents('http://www.bing.com/search?q=litespeed&qs=n&form=QBLH&pq=ngodi&sc=0-0&sp=-1&sk=&format=rss');
echo 
$contents;
?>
here is header check :
Quote:
HTTP/1.0 200 OK =>
Date => Sun, 02 Dec 2012 01:51:21 GMT
Server => LiteSpeed
Connection => close
X-Powered-By => PHP/5.3.19
Content-Type => text/html
Content-Length => 0
I have tried on another host ( Not Litespeed ) and the script above can work properly. Please help me

Thanks

Last edited by NiteWave; 12-02-2012 at 05:22 PM..
Reply With Quote