Hello All, My client is hosting his site with yahoo's small business plan. I've made a flash app that uploads images and edits XML files(For a Photo Gallery). I'm able to upload images without a problem, but file permission is to low(600). It work just fine on GoDaddy's and XAMPP. I was reading some forums about something with Safe Mode being off, but wasn't able to find anything in yahoo where I can turn it on. So as it stands I'm able to upload but then I have to use a FTP app to change the permission form 600 to 755. Here is the upload PHP code. Thank you guys ~ Terry
<?php
$folderloc = $_GET['l'];;
//create the directory if doesn't exists (should have write permissons)
if(!is_dir("./$folderloc")) mkdir("./$folderloc", 0755);
//move the uploaded file
move_uploaded_file($_FILES['Filedata']['tmp_name'], "./$folderloc/".$_FILES['Filedata']['name']);
chmod("./$folderlocs/".$_FILES['Filedata']['name'], 0755);
?>
<?php
$folderloc = $_GET['l'];;
//create the directory if doesn't exists (should have write permissons)
if(!is_dir("./$folderloc")) mkdir("./$folderloc", 0755);
//move the uploaded file
move_uploaded_file($_FILES['Filedata']['tmp_name'], "./$folderloc/".$_FILES['Filedata']['name']);
chmod("./$folderlocs/".$_FILES['Filedata']['name'], 0755);
?>