Upload CSV and Import - Use temp file?

I want to upload a CSV file and use it just for import content. Is necessary for this to use move_uploaded_file to move temp file? Or should I just use temp file uploaded without moving it in a specific folder? Which will be the best practice?

Answers


There is no need to move the file around if you do not need to keep it longer than the request:

The file will be deleted from the temporary directory at the end of the request if it has not been moved away or renamed.

from POST method uploads

However if you want to move the uploaded file around, you should use move_uploaded_file() for that operation.


Need Your Help

jQuery Drop Down Menu IE7 Problem with .slideDown

jquery css xhtml internet-explorer-7 drop-down-menu

I have the following jquery on mcgillidssa.com to animate the drop down menu:

Resized boxes on window resize with jquery

jquery each window-resize

Here is a jsfiddle where you can see the following code in action.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.