Page 2 of 2
Posted: Tue Feb 28, 2006 3:35 pm
by icesolid
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?
Posted: Tue Feb 28, 2006 4:04 pm
by icesolid
feyd what is unmask?
Posted: Tue Feb 28, 2006 4:13 pm
by feyd
read the link that was created when I posted the function name.
Posted: Tue Feb 28, 2006 4:18 pm
by neophyte

sorry feyd

GURUS WHERE ARE YOU?!??!?!
Posted: Tue Feb 28, 2006 4:25 pm
by icesolid
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:
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);
}