Jump to content


Photo

PHP file handling


  • Please log in to reply
4 replies to this topic

#1 faani

faani
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 09 October 2006 - 07:44 AM

Hello all of you. This code not working. Me in great tension. Help me
$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"); 
			} 
		}

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

#2 JasonLewis

JasonLewis
  • Members
  • PipPipPip
  • Advanced Member
  • 3,351 posts
  • LocationVictoria, Australia

Posted 09 October 2006 - 08:34 AM

to me it looks like ur not calling the file_upload function... wat exactly r u doing?
Good luck with your coding.
Jason / ProjectFear / Jaysonic

#3 Hi I Am Timbo

Hi I Am Timbo
  • Members
  • PipPipPip
  • Advanced Member
  • 109 posts

Posted 09 October 2006 - 09:27 AM

is $countryList a single string or a list of countries as the name suggests?  If so, this may be the source of your errors.

#4 faani

faani
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 09 October 2006 - 10:53 AM

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??????????????? ???

#5 JasonLewis

JasonLewis
  • Members
  • PipPipPip
  • Advanced Member
  • 3,351 posts
  • LocationVictoria, Australia

Posted 10 October 2006 - 10:44 AM

i don't even think you're speaking proper english now... can you re-phrase that please...
Good luck with your coding.
Jason / ProjectFear / Jaysonic




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users