note 84028 modified in function.fopen by danbrown
| From: | danbrown@php.net | Date: | Thu, 12 Nov 2009 21:30:23 +0000 |
| Subject: | note 84028 modified in function.fopen by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162831@lists.php.net to get a copy of this message | ||
With php 5.2.5 on Apache 2.2.4, accessing files on an ftp server with fopen() or readfile() requires
an extra forwardslash if an absolute path is needed.
i.e., if a file called bullbes.txt is stored under /var/school/ on ftp server example.com and
you're trying to access it with user blossom and password buttercup, the url would be:
ftp://blossom:buttercup@example.com//var/school/bubbles.txt
Note the two forwardslashes. It looks like the second one is needed so the server won't
interpret the path as relative to blossom's home on townsville.
--was--
With php 5.2.5 on Apache 2.2.4, accessing files on an ftp server with fopen() or readfile() requires
an extra forwardslash if an absolute path is needed.
i.e., if a file called bullbes.txt is stored under /var/school/ on ftp server townsville and
you're trying to access it with user blossom and password buttercup, the url would be:
ftp://blossom:buttercup@townsville//var/school/bubbles.txt
Note the two forwardslashes. It looks like the second one is needed so the server won't
interpret the path as relative to blossom's home on townsville.
http://php.net/manual/en/function.fopen.php