Dear All:
I have a web page that will auto create a folder when a new item created.
The code as belows:
[php]
include(“list_var.php”);
include(“list_link.php”);
$dbconnect;
$db;
$cat = $_REQUEST[‘category’];
$desc = $_REQUEST[‘desccription’];
$sql_insertcategory .= “(”${cat}","${desc}")";
$query = mysql_query($sql_insertcategory) ;
if (!$query) {
die(‘Could not query:’ . mysql_error());
}
else
{
$dirbig .= $desc;
echo "$dirbig";
$rtn=opendir("$dirbig");
if (!$rtn)
{
mkdir("$dirbig", 0755);
}
}
?>
[/php]
The $dirbig I set it to $dirbig = "C:\InetPub\wwwroot\homelegance\images\big\"; in list_var.php
I manage to create the holder when I access to the page on my own PC(host the pages). But when I try acces to the page through other PC. It will give me the belows messages:
C:InetPubwwwroothomeleganceimagesbig33
Warning: opendir(C:InetPubwwwroothomeleganceimagesbig33): failed to open dir: Invalid argument in c:inetpubwwwrootact_addcategory.php on line 25
Warning: mkdir(C:InetPubwwwroothomeleganceimagesbig33): Permission denied in c:inetpubwwwrootact_addcategory.php on line 29
How should i resolve the above error, or how should i code so that the client browse know that, It should create the folder on server side. Not Locally.
Thank You for advices
[/quote]