Wait, where did unmask come from, I am not using it?
Should I be?
It probally isent banned, and if it is I will unban it, I have a virtual server I can change those settings in WHM.
Anyone?
Create A Directory
Moderator: General Moderators
GURUS WHERE ARE YOU?!??!?!
GURUS WHERE ARE YOU!?!??!
WOW, this was an easy one to solve.
I had quotes around the permission attribute (the number 0757), how could you gurus miss that!?!??, LOL
It's aight I got it working now:
WOW, this was an easy one to solve.
I had quotes around the permission attribute (the number 0757), how could you gurus miss that!?!??, LOL
It's aight I got it working now:
Code: Select all
$result = mysql_query("SELECT * FROM cases WHERE control_number='" . $_POST["control_number"] . "'");
$row = mysql_fetch_array($result);
$drawingdir = "/home/capous/public_html/drawings/" . $row["control_number"] . "/";
$photodir = "/home/capous/public_html/photos/" . $row["control_number"] . "/";
if(!file_exists($drawingdir)) {
mkdir("/home/capous/public_html/drawings/" . $row["control_number"] . "", 0700);
chmod("/home/capous/public_html/drawings/" . $row["control_number"] . "", 0757);
}
if(!file_exists($photodir)) {
mkdir("/home/capous/public_html/photos/" . $row["control_number"] . "", 0700);
chmod("/home/capous/public_html/photos/" . $row["control_number"] . "", 0755);
}