note 64876 added to function.copy

From: Date: Sat, 22 Apr 2006 14:37:39 +0000
Subject: note 64876 added to function.copy
Groups: php.notes 
Request: Send a blank email to php-notes+get-109015@lists.php.net to get a copy of this message
Well, I was trying to copy some remote files from a web address (http://www.______.com/example.jpg), but the file address was in a TXT file. I opened the TXT file, and read it line by line, but when I used the copy comand it returns the error "PHP has encountered an Access Violation at ......". After researching a little, I noticed that the address had the "\n" after it. So, if you had this problem, use the TRIM command in the address to remove the "\n". Just my 2 cents. ---- Server IP: 66.163.161.117 Probable Submitter: 201.19.12.72 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.copy.php Edit -- http://master.php.net/note/edit/64876 Del: integrated -- http://master.php.net/note/delete/64876/integrated Del: useless -- http://master.php.net/note/delete/64876/useless Del: bad code -- http://master.php.net/note/delete/64876/bad+code Del: spam -- http://master.php.net/note/delete/64876/spam Del: non-english -- http://master.php.net/note/delete/64876/non-english Del: in docs -- http://master.php.net/note/delete/64876/in+docs Del: other reasons-- http://master.php.net/note/delete/64876 Reject -- http://master.php.net/note/reject/64876 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#109015) next »