Thats strange! check if $uname is empty.
nav33n
Purple hazed!
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
Yep. Its correct. Make sure that none of the variables are empty.
nav33n
Purple hazed!
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
hmm.. When you execute mkdir, check again if that directory exists. ie.,
mkdir($uploaddir1,0777);
if(is_dir($uploaddir1))
{
echo "Exists!";
}
else
{
echo "Doesn't exist" ;
}
nav33n
Purple hazed!
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
No dude. You are checking before creating the directory. Do the same after you create the directory. That way, you will know if it really created the directory or not.
nav33n
Purple hazed!
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
hmm.. Strange.. It didn't throw any error !
nav33n
Purple hazed!
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
hi
i just view your code so i have a one idea
<?php
$path = dirname( __FILE__ );
$uploaddir1 = $path."resumes/".$_SESSION["uss1"]."/".$uname;
?>
try this b'cos $path give you current directory path
and also make sure that parents directory have right to create child directory
Thanks
Tulsa
Junior Poster in Training
77 posts since May 2009
Reputation Points: 13
Solved Threads: 15
Will you people PLEASE read the date on the last post before you bump year old threads, this is getting really, really annoying and it's been happening a lot lately.
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268