Jump to content

Upload Script / PHP Configuration


cortez

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.