How to add different images in php program like a job
site.......

Answers were Sorted based on User's Feedback



How to add different images in php program like a job site.........

Answer / anand prakash

$img_name=$_FILES[img_var][temp_name];
$img_path="/images";
$img_test=move_uploaded_file($img_name, $img_path);
if($img_test){
Image uploaded successfully.
}

Is This Answer Correct ?    4 Yes 0 No

How to add different images in php program like a job site.........

Answer / anand prakash

move_uploaded_file ( string $filename , string $destination )

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More PHP Interview Questions

write a prog using insert,update,delete in this manner as output? name: phno. add button 1.name phno. edit button delete button 2.

0 Answers  


Can you pass an array into a function?

0 Answers  


What are the advantages of object-oriented programming in php?

0 Answers  


is anybody upload more than 100mb file using PHP upload script in ONLINE SERVER (using .htaccess file)? please give some idea...

1 Answers  


Explain me what are the 3 scope levels available in php and how would you define them?

0 Answers  






How can we extract string ?allinterview.com ? from a string ?http://info@allinterview.com? using regular expression of PHP?

6 Answers  


How to upload any files extension in our database Ex.(.doc,.txt,mp4,mp3 etc.)in php

1 Answers  


Is php an object or array?

0 Answers  


How to get a random value from a php array?

0 Answers  


Can we run php on tomcat server?

0 Answers  


What is the difference between explode () and split () functions in php?

0 Answers  


What is api used for?

0 Answers  


Categories