Jump to content

Archived

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

faani

PHP file handling

Recommended Posts

Hello all of you. This code not working. Me in great tension. Help me
[code]$uploaddir = "/".$countryList."/"; //NAME OF DROPDOWN
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");
}
}[/code]

[b]EDITED BY WILDTEEN88: PLEASE DO NOT USE CAPS. ALSO PLEASE USE THE CODE TAGS ([nobbc][code][/code][/nobbc]) WHEN POSTING CODE. THANK YOU[/B].

Share this post


Link to post
Share on other sites
to me it looks like ur not calling the file_upload function... wat exactly r u doing?

Share this post


Link to post
Share on other sites
is $countryList a single string or a list of countries as the name suggests?  If so, this may be the source of your errors.

Share this post


Link to post
Share on other sites
actually i m working on window platform....and i m make directory when i enter the category name and now fomr the help of this code i m upload files in those fold ??? ??? :'( :'( :) :)er so me wat can??????????????? ???

Share this post


Link to post
Share on other sites
i don't even think you're speaking proper english now... can you re-phrase that please...

Share this post


Link to post
Share on other sites

×

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.