LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > [solved] file_get_contents does not work on LSWS 4.2.1

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:38 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.