tags:

views:

42

answers:

2

I have a php script which uploads images to a temporary folder on the server.

This works on my local computer with the local (virtual) server. (wampserver).

However, on the production server (linux) I cant get it working.

Everything is loading as it should, except for that the file doesn't show up on the server.

My Q is, is there anything I should think about when moving to a production server with uploading images or files?

I have set permissions on the folder where the images are supposed to go to 777 and also the php-code which uploads them to 777.

Thanks

A: 

I highly recommend to you first to read this article before setting 777 permission on the server. Besides, there are different ways of uploading files are shown, so I think you will solve your problems after reading this article.
Good luck

Bakhtiyor
+1  A: 

is there anything I should think about when moving to a production server with uploading images or files?

Yes.
Error handling.
You have to keep in touch with PHP error reporting in general
and properly handle $_FILES['name']['error'] variable in case of upload.

These two sources will provide you with sufficient and precise information on any error occurred.

Col. Shrapnel