Re: [PHP4BETA] fopen-wrapper not working (Invalid URL specified)
| From: | Tim Taylor | Date: | Thu, 27 Jan 2000 20:11:24 +0000 |
| Subject: | Re: [PHP4BETA] fopen-wrapper not working (Invalid URL specified) | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-9485@lists.php.net to get a copy of this message | ||
There are two problems that I am familiar with the url wrappers support that
I think might be affecting you.
The first is that the url-wrappers don't support proxy servers. I have a
patch for last weeks cvs snapshot that adds http proxy server support so that
you can fetch URLs that you would otherwise have to access via a proxy
server. I will be sending it to the list once I clean it up a little bit and
make sure it works with the latest snapshot.
The other is that the url-wrappers support doesn't handle redirects.
Normally, when you access a URL like http://www.php.net the server
sends back
a redirect to http://www.php.net/. Note the trailing
'/'. This is not
supported. To fetch this using the url-wrappers you need to include the
trailing '/'. I have not looked into what it would take to support redirects
yet.
- Tim Taylor
"Horst G. Reiterer" wrote:
> Hi,
>
> I'm using the PHP4 Beta 3 (also tried Beta 2 and PHP3) and noticed that the
> fopen-wrapper which allows to access FTP and HTTP server is not working. No
> matter which URL I specify, I always get the following error:
>
> Warning: Invalid URL specified, http://www.php.net in
> test.php3 on line
> 13
>
> I checked the source and I guess the problem is the REGEX library but I'm
> not sure.
> Has anyone experienced the same or knows how to fix this?
>
> As for the REGEX lib, I tried compiling with the system REGEX and the PHP
> REGEX lib but neither of them works.
>
> Here's my system config:
>
> OS: Linux 2.2.9
> Platform: ALPHA [AlphaLinux]
> glibc: libc.so.6.1
> PHP version: ZEND BETA 3
> compiler: gcc version 2.95.2 19991024 (release)
>
> Any help would be greatly appreciated!!
>
> cheers,
>
> Horst Reiterer
>
> ________________________________________________________________
> Please boycott amazon.com! Why? Just take a look at this...
>
> http://linuxtoday.com/story.php3?sn=13652
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net