General discussion

Locked

Php Picture or Image Upload Script

By mylswamy ·
Php Picture or Image Upload Script:

<?php
$dir_name = "upload_path/";
$upload_file = $dir_name.basename($_FILES['image_upload']['name']);
move_uploaded_file($_FILES['image_upload']['tmp_name'],$upload_file);
chmod($dir_name,0777);
?>

n the above $dir_name variable has been assigned to upload folder path then $upload_file variable has been stored upload folder path and image name.In the move_uploaded_file() function is used to move the image broswer to server.

If you need to demo and code go to following link
http://www.tutorialsscripts.com/free-php-scripts/file-and-directory-script/image-upload.php

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Networks Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums