directory permission
Posted: Thu Oct 09, 2003 3:34 am
hello phpdevs,
I have small upload script which uploads the file in the upload directory.
when i execute the script in locally it uploads the file but when I execute it in online it displays the error :
failed to create stream: Permission denied
how can I change the directory read/write by php chmod?
please Help.
I have small upload script which uploads the file in the upload directory.
Code: Select all
<?php
if(isset($HTTP_POST_VARS["Submit"]))
{
if ($fupload_size > 307200)//if greater than 300KB
{
header("Location:error.php");
exit;
}
else
{
if(!copy ($fupload, "upload/$fupload_name"))
echo "failed to copy the image";
else
header("Location:thanks.php");
}
}
?>failed to create stream: Permission denied
how can I change the directory read/write by php chmod?
please Help.