|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hi All,
Can some one help me with this!? What settings do I need to have on the server to upload an image file? I have a linux 7.1 with apache and PHP 4.0.6. Thank you Bolven ![]() |
|
#2
|
|||
|
|||
|
Upgrade your PHP version NOW before enabling upload feature.
|
|
#3
|
||||
|
||||
|
Freebsd was referring to security flaws recently discovered in Php, see www.php.net !
For the uploading part see http://www.php.net/manual/en/configuration.php
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
|
#4
|
|||
|
|||
|
something like "file_uploads=yes" in your php.ini. search this forum for the exact syntax.
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#5
|
||||
|
||||
|
Well, first you would need to update your PHP, like stated multiple times already. It is highly recomendable that you state a specific folder where you will allow file uploading. In this case images. Set the permissions for the browser, maybe 755 could be considered (for the upload folder that is).
There are also some options in the php.ini which you can use to control the uploading. First you need to have file_uploads set On. Without it no uploading can be done. Then there are things like upload_max_filesize and post_max_size which control the file sizes of the uploading. Last but not least, I recomend that you write a small PHP script that checks the filetype of the file that is to be uploaded and only let go through certain image files. Good choices are .png, .gif, .jpeg, and .tiff (note that TIFFs are usually pretty large). I hope this helped.
__________________
-- Tomi Kaistila -- Developer's Journal The more you learn, the more you know. The more you know, the more you forget. The more you forget, the less you know. |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > How to set upload permissions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|