php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37873 File() function is not working
Submitted: 2006-06-21 11:28 UTC Modified: 2006-06-21 19:17 UTC
From: msho at cyber-linkz dot com Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 4.4.2 OS: Windows 2003
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: msho at cyber-linkz dot com
New email:
PHP Version: OS:

 

 [2006-06-21 11:28 UTC] msho at cyber-linkz dot com
Description:
------------
When executing the script via CGI, file() function does not working fine on opening files via URL.

There is no error shown or result returned.

Reproduce code:
---------------
<?
$lines = file("http://yahoo.com");
echo "Total Lines: ".count($lines);
?>

Expected result:
----------------
nothing output from the script.



Actual result:
--------------
Total Lines: xxx

Where xxx should be the total lines > 0

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-21 11:35 UTC] tony2001@php.net
Fixed in CVS several months ago.
 [2006-06-21 11:53 UTC] msho at cyber-linkz dot com
Why this issue still arised in the new downloaded version 4.4.2 if it is already fixed?
 [2006-06-21 12:08 UTC] tony2001@php.net
Because it was fixed after the release.
You can download 4.4.x snapshots at http://snaps.php.net
 [2006-06-21 19:17 UTC] msho at cyber-linkz dot com
Thanks.

Working fine with version 4.4.3RC2-DEV
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 01:01:35 2025 UTC