Login    Forum    Search    FAQ   Blog

Board index » Server Side Development » PHP




 Page 1 of 1 [ 5 posts ] 



Author Message
 Post subject: Need help on the File Upload functionality..
 Post Posted: Thu Nov 19, 2009 8:37 pm 
Offline

Joined: Sat Feb 21, 2009 12:32 pm
Posts: 81
Hello!!! I m just a beginner in PHP .. i m coding a webpage which
would upload a "word/open office" file howevr aftr several try i m
unable 2 upload ...
I m not clear wid diff vars needed....Kindly suggest wat 2 do...da
lines i have written r below..
Code:
<?php
$file_dir="/home/gv/Desktop/upload";

echo"path: ".$_FILES["cvt"]."<br> \n";
echo"name: ".$_FILES["cv"]."<br>";
echo"type:".$_FILES["image/jpeg"]."<br>";
echo"size:".$_FILE["10240"]."<br>";

if(is_uploaded_file($_FILES["cvt"])){
move_uploaded_file($_FILES["fileupload"]["cvt"],"$_file_dir".$FILES["fileupload"]["cv"])or die ("Coudn't copy");
echo "file was moved";
}
?>

Please suggest what r da exceptions !!


Top 
 Post subject: Re: Need help on the File Upload functionality..
 Post Posted: Thu Nov 19, 2009 8:37 pm 
Offline

Joined: Sat Feb 21, 2009 11:06 am
Posts: 1794
Code:
I am not clear wid  different variables needed....


Easy enough 2 address.

Handlin the file uploads


Top 
 Post subject: Re: Need help on the File Upload functionality..
 Post Posted: Thu Nov 19, 2009 8:38 pm 
Offline

Joined: Sat Feb 21, 2009 1:08 pm
Posts: 549
PHP would tell you if u turn on the error reporting.


Top 
 Post subject: Re: Need help on the File Upload functionality..
 Post Posted: Thu Nov 19, 2009 8:38 pm 
Offline

Joined: Sat Feb 21, 2009 12:32 pm
Posts: 81
thanks for the responses!!!

Impressed :D


Top 
 Post subject: Re: Need help on the File Upload functionality..
 Post Posted: Thu Nov 19, 2009 8:42 pm 
Offline

Joined: Sat Feb 21, 2009 1:08 pm
Posts: 549
welcome :)


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 5 posts ] 




Board index » Server Side Development » PHP


Who is online

Users browsing this forum: No registered users and 2 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron