note 84028 added to function.fopen

From: Date: Tue, 24 Jun 2008 19:27:57 +0000
Subject: note 84028 added to function.fopen
Groups: php.notes 
Request: Send a blank email to php-notes+get-140778@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 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. ---- Server IP: 208.69.120.35 Probable Submitter: 196.40.72.219 ---- Manual Page -- http://www.php.net/manual/en/function.fopen.php Edit -- https://master.php.net/note/edit/84028 Del: integrated -- https://master.php.net/note/delete/84028/integrated Del: useless -- https://master.php.net/note/delete/84028/useless Del: bad code -- https://master.php.net/note/delete/84028/bad+code Del: spam -- https://master.php.net/note/delete/84028/spam Del: non-english -- https://master.php.net/note/delete/84028/non-english Del: in docs -- https://master.php.net/note/delete/84028/in+docs Del: other reasons-- https://master.php.net/note/delete/84028 Reject -- https://master.php.net/note/reject/84028 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140778) next »