ldaves
08-15-2008, 09:37 AM
i use same code in 2 different version of php
<?php
echo "<pre>";
$b = file('http://localhost:8080');
print_r($b);
?>
php 5.0.2 return me no error message
Array
(
[0] =>
[1] =>
[2] =>
[3] => "http://www.w3.org/TR/html4/loose.dtd">
[5] =>
[6] =>
[7] =>
[8] =>
[9] =>
[10] =>
[11] =>
[12] => Hello World!
[13] =>
[14] =>
)
However php 5.2.6 return me error message
Warning: file(http://localhost:8080/) [function.file]: failed to open stream: No such file or directory in /export/home/test1.php on line 3
any advice how can i solve the problem?
<?php
echo "<pre>";
$b = file('http://localhost:8080');
print_r($b);
?>
php 5.0.2 return me no error message
Array
(
[0] =>
[1] =>
[2] =>
[3] => "http://www.w3.org/TR/html4/loose.dtd">
[5] =>
[6] =>
[7] =>
[8] =>
[9] =>
[10] =>
[11] =>
[12] => Hello World!
[13] =>
[14] =>
)
However php 5.2.6 return me error message
Warning: file(http://localhost:8080/) [function.file]: failed to open stream: No such file or directory in /export/home/test1.php on line 3
any advice how can i solve the problem?