Create A Directory

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Post 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?
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Post by icesolid »

feyd what is unmask?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

read the link that was created when I posted the function name.
User avatar
neophyte
DevNet Resident
Posts: 1537
Joined: Tue Jan 20, 2004 4:58 pm
Location: Minnesota

Post by neophyte »

:oops: sorry feyd :oops:
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

GURUS WHERE ARE YOU?!??!?!

Post 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);
}
Post Reply