Re: newbies upload problem

From: Date: Tue, 01 Aug 2000 10:39:27 +0000
Subject: Re: newbies upload problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9400@lists.php.net to get a copy of this message
At 19:14 31/07/00 +0700, Worawisut Pinyoyang wrote: >i have a problem with file uploading. >The error message is " Warning: Unable to open 'A:kic_style.txt' for >reading: No such file or directory in /home/public_html/note-manager.php >on line 36 >---------------------------------------------------- >$path ="/home/public_html/note/source"; >The line 36 is : >if (copy(stripslashes($filename) , "$path/$filename_name")) >---------------------------------------------------- 1. are you sure you want to stripslashes from $filename? How does copy know which directory it is in ($upload_tmp_dir - check with phpinfo();)? 2. if $filename used to be A:\kic_style.txt then there is something very odd going on - suggest you use the nomenclature in the examples in the manual (features.file-upload.html). HTH Colin

« previous php.general (#9400) next »