PHP forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
April 2024
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
282930    

Calendar Calendar

Latest topics
» Kabaddi, Kabaddi, Kabaddi, Kabaddi......PHP?
Php file upload EmptyFri Jul 22, 2011 1:37 pm by shyamsunder

» Thousands of Free PHP Scripts Recommended
Php file upload EmptyWed May 18, 2011 10:33 am by bizboy12

» PHP form validation problem?
Php file upload EmptyWed Jan 12, 2011 1:25 pm by simy202

» string wrap
Php file upload EmptySat Aug 02, 2008 2:06 pm by scvinodkumar

» retrieving current date rows
Php file upload EmptyTue Jul 15, 2008 3:25 am by scvinodkumar

» number in words
Php file upload EmptyTue Apr 29, 2008 3:10 pm by scvinodkumar

» Simple PHP Form Field Generator
Php file upload EmptyFri Apr 25, 2008 12:28 pm by scvinodkumar

» PHP password generator
Php file upload EmptyFri Apr 18, 2008 7:24 pm by scvinodkumar

» PHP Script to Extract Email Address from any text
Php file upload EmptyFri Apr 18, 2008 7:18 pm by scvinodkumar

Search
 
 

Display results as :
 


Rechercher Advanced Search

Affiliates
free forum
 


Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Php file upload

3 posters

Go down

Php file upload Empty Php file upload

Post  scvinodkumar Wed Jan 30, 2008 9:27 pm

how to upload the file in php?

scvinodkumar
Admin

Posts : 40
Join date : 2008-01-30

https://solutions.aforumfree.com

Back to top Go down

Php file upload Empty File upload

Post  riyaz Wed Jan 30, 2008 9:31 pm

HI, use this code to upload the file, images


<form enctype="multipart/form-data" action="uploader.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="100000" />
Choose a file to upload: <input name="uploadedfile" type="file" /><br />
<input type="submit" value="Upload File" />
</form>

riyaz

Posts : 2
Join date : 2008-01-30

Back to top Go down

Php file upload Empty Use this function to upload in PHP

Post  kdhayanandan Wed Jan 30, 2008 10:32 pm

Hi..
Use this function to upload a file using php


$uploaddir = "destination_path";

if(move_uploaded_file($_FILES["file_input_name"]["tmp_name"], $uploaddir))
{
echo "File Uploaded!";
}
else
{
echo "There was a problem when uploding the new file";
}

regards
Dhaya Very Happy
kdhayanandan
kdhayanandan

Posts : 5
Join date : 2008-01-30
Location : Chennai

http://mother-theresa.blogspot.com

Back to top Go down

Php file upload Empty Re: Php file upload

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum