cortez Posted March 29, 2010 Share Posted March 29, 2010 Hello All Hopefully someone can lend me a hand on this. I'm trying a small upload script to upload images to a folder on my server. It's working fine on my goddady server. The php info can be viewed here. http://cortezcreations.org/info.php It's not working on this other server where the script needs to go http://www.blushshop.ca/info.php Support for the second site is seriously lacking and I'm stuck comparing the two and why it won't work on the second and find myself completely lost. I've never had to adjust the settings myself. Here is the simple php script I am using <?php //create the directory if doesn't exists (should have write permissons) if(!is_dir("./files")) mkdir("./files", 0755); //move the uploaded file move_uploaded_file($_FILES['Filedata']['tmp_name'], "./files/".$_FILES['Filedata']['name']); chmod("./files/".$_FILES['Filedata']['name'], 0777); ?> Any advice would be greatly appreciated. Thanks Link to comment https://forums.phpfreaks.com/topic/196880-upload-script-php-configuration/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.