php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9180 readfile() with a URL can't take a port.
Submitted: 2001-02-08 15:16 UTC Modified: 2001-05-07 18:20 UTC
From: manero at yossman dot net Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.4pl1 OS: FreeBSD 4.2-R
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: manero at yossman dot net
New email:
PHP Version: OS:

 

 [2001-02-08 15:16 UTC] manero at yossman dot net
readfile("http://www.foo.org:8000") produces the following error: 

Warning: readfile("http://www.foo.org:8000") - Undefined error: 0 in /usr/home/manero/public_www/sc.php on line 5

I'm not sure if readfile() can take cgi arguments either, such as:

readfile("http://www.foo.org/horsey.php?arg1=one&arg2=two");

Maybe it's just a feature in that it doesn't take a port, but it seems like it would be useful to be able to do this sort of thing.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-07 18:20 UTC] cardinal@php.net
Works for me with current CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 16:01:27 2024 UTC