Well after a bit of struggle i got the solve to the problem
Now whether there was my misinterpretation, or the incmplete documentation of the php 
manual that I was using it with the following example


<?php // In PHP earlier then 4.1.0, $HTTP_POST_FILES  should be used instead of 
$_FILES.if (is_uploaded_file($_FILES['userfile']['tmp_name'])) {    
copy($_FILES['userfile']['tmp_name'], "/place/to/put/uploaded/file");} else {    echo 
"Possible file upload attack. Filename: " . $_FILES['userfile']['name'];}/* ...or... 
*/move_uploaded_file($_FILES['userfile']['tmp_name'], "/place/to/put/uploaded/file");?>


here I tried 

/Uploads/
d:\\raheel\\w3sites\\txtfiledemo\\uploads\\
\uploads
./uploads


inplace of 
"/place/to/put/uploaded/file" in the example,

which gave "permisson denied prob" and "unable to create prob" etc.




but the actuall problem is that 
the "/place/to/put/uploaded/file" should include the file name with it.


so 



it should be like as follows
"uploads/newfilename.pdf" (suppose)
and uploads is a directory in the site root


thankx all the guys for being part of conversation
raheel








---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Reply via email to