note 101980 deleted from function.copy by googleguy

From: Date: Tue, 22 Oct 2013 06:50:07 +0000
Subject: note 101980 deleted from function.copy by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-196664@lists.php.net to get a copy of this message
Note Submitter: tomas at slax dot org ---- Very important to note is that copy() handles url wrappers, but sometimes incorrectly. For example, you can copy a file like <?php copy("http://example.net/file.dat","./local_file.dat"); ?> However, it doesn't work with spaces in filename (as of PHP 5.2.13, please test in newer versions). <?php copy("http://example.net/file with space.dat","./local_file.dat"); ?> To fix this, you need to replace spaces with %20.

« previous php.notes (#196664) next »