The widgets update is merely putting lipstick on a pig. If they actually give a damn about making reliable widgets, they should bring back the 100% offline widgets functionality from Windows 7, just like every other platform offers today. Until then, it's just lipstick after lipstick on the same ads junkyard pig.
The rest feature updates, those are good and welcome improvements.
Question
Ben_Chep
I have written a simple file upload script but when I go to upload a file i get the following error:
"Forbidden
You don't have permission to access /fileuploader.php" on this server.
Apache/2.0.54 (Win32) PHP/5.0.5 Server at localhost Port 80"
The upload code looks like this:
<?
if($file_name !="")
{
copy ("$file", "c:\\server\htdocs\$file_name") or die ("Could not copy the file");
}
else { die("No File Specified");}
?>
<html><head><title> Upload Complete</title></head>
<body><h3> File Upload Succeded...</h3>
<ul>
<li>Sent: <?php echo "$file_name"; ?>
<li>Sent: <?php echo "$file_size"; ?> bytes
<li>Sent: <?php echo "$file_type"; ?>
</ul>
<a href="<?php echo "file_name" ?>"> Click here to view file</a>
</body
</html>
And heres the form that calls this script:
<form action=fileuploader.php" method = "post" enctype="multipart/form-data">
<input type="file" name = "file" size "50">
<br/>
<input type="submit" value = "Upload File">
</form>
Can anbody help? Is there a problem in the code or with my Apache setup?
Link to comment
https://www.neowin.net/forum/topic/388371-php-upload-script-problem/Share on other sites
3 answers to this question
Recommended Posts