note 47014 deleted from function.fopen by sean

From: Date: Sat, 30 Oct 2004 17:26:07 +0000
Subject: note 47014 deleted from function.fopen by sean
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79368@lists.php.net to get a copy of this message
Note Submitter: info at gavinvincent dot co dot uk ---- One that caught me out was when trying to open/create a remote file using: <? fopen("ftp://user:password@example.com/foo/bar.jpg","w"); ?> to create a file bar.jpg in the directory foo, I kept getting errors saying the directory does not exist. This is because the root is the ftp root, not the ordinary server root. So it should be: <? fopen("ftp://user:password@example.com/public_html/foo/bar.jpg","w"); ?> or htdocs, www, or wherever your documents are. ---- Reason: useless note

« previous php.notes (#79368) next »