Computing.Net > Forums > Programming > php upload

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

php upload

Reply to Message Icon

Name: wheelspinner99
Date: April 17, 2004 at 21:20:25 Pacific
OS: xp home
CPU/Ram: enough
Comment:

Ok, i am tryin to create a simple uploads form. Here is the error i keep getting: "Warning: copy(C:\Uploads): failed to open stream: Permission denied in C:\Program Files\Abyss Web Server\htdocs\FileUploader.php on line 5
Could not upload file"

Here is the php file that i am using:
<?PHP if($file_name != " ")
{
copy("$file", "C:\\Uploads") or die("Could not upload file");
}
?>
<HTML>
<BODY>
<H3 align=center>File upload successful</H3>
<UL>
<LI>Sent: <?php echo "$file_name"; ?>
<LI>Size: <?php echo "$file_size"; ?>
<LI>Type: <?php echo "$file_type"; ?>
</UL>
">Click here to view the file

</BODY>
</HTML>



Sponsored Link
Ads by Google

Response Number 1
Name: wheelspinner99
Date: April 17, 2004 at 21:22:58 Pacific
Reply:

i have ensured that the folder is not read-only.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: php upload

PHP : Upload files www.computing.net/answers/programming/php-upload-files/4836.html

PHP Upload Problem. www.computing.net/answers/programming/php-upload-problem/11156.html

Upload ? www.computing.net/answers/programming/upload-/10136.html