faani Posted October 9, 2006 Share Posted October 9, 2006 $uploaddir = "/".$countryList."/"; echo ($uploaddir); $file_name = "uploadfile"; function file_upload( $file_name, $uploaddir){ $uploadfile = $uploaddir . $_FILES[$file_name]['name']; if (@move_uploaded_file( $_FILES[ $file_name ]['tmp_name'], $uploadfile)) { } else { echo( $_FILES[ $file_name ]['name'] . " Does not uploaded successfully:\n"); } } Quote Link to comment Share on other sites More sharing options...
xsist10 Posted October 9, 2006 Share Posted October 9, 2006 Ok... calm down and don't panic.I'll need a little more information.Is there an error message to go with this?Are you running in windows / solaris / linux / etc?You most probable problem is your first line:[code]$uploaddir = "/".$countryList."/";[/code]try replacing it with:[code]$uploaddir = $countryList."/";[/code]Alternatively check your permissions on the folder in question. Quote Link to comment Share on other sites More sharing options...
tomfmason Posted October 9, 2006 Share Posted October 9, 2006 Ok first, please do not post the same question twice. As it is against the posting rules. Please read the forum posting guid lines.. Now I think that you may want to have a look at this simple [url=http://www.tizag.com/phpT/fileupload.php]file upload tutorial[/url]Good Luck,Tom Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.