Main Page | Report this Page
Linux Forum Index  »  Linux - Suse Forum  »  Php acting strangely...
Page 1 of 1    

Php acting strangely...

Author Message
Vahis...
Posted: Sat Oct 31, 2009 2:20 am
Guest
I have this code:
<?php
$suntimes = file_get_contents('http://localhost/sun-times.txt');
echo $suntimes;
?>

It used to work. It still kinda does but it outputs extra:
HTTP/1.1 200 OK
Date: Sat, 31 Oct 2009 07:38:04 GMT
Server: Apache/2.2.8 (Linux/SUSE)
Last-Modified: Fri, 30 Oct 2009 22:02:01 GMT
ETag: “2c0abe-55-4772e2d6a8840″
Accept-Ranges: bytes
Content-Length: 85
Connection: close
Content-Type: text/plain
X-Pad: avoid browser bug

After this the wanted output, which is actually the first line in the
sig.

Why this this extra output start to print?
Php was updated a while ago, could it have something to do with that?

I wish I wasn't this ignorant.

Vahis
--
"Sunrise 7:42am (EET), sunset 4:24pm (EET) at Espoo, Finland (8:41 hours daylight)"
http://waxborg.servepics.com
Linux 2.6.25.20-0.5-default #1 SMP 2009-08-14 01:48:11 +0200 x86_64
10:14am up 15:15, 10 users, load average: 1.09, 1.18, 1.20
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Sun Nov 29, 2009 9:38 pm