Upload de fichier en php
Utilisateur anonyme
-
jicao -
jicao -
Salut a tous,
Je voulais faire un upload de fichier en php. Pour cela j'ai suivi un cour sur http://www.phpfrance.com (source des articles CCM sur le php). Ca marcherait presque, le bidule... Seulement le probleme c'est que quand les fichiers dépassent trentes Ko, il me dit permission denied.
Pour voir le code utilisé, c'est ici: http://www.phpfrance.com/tutorials/index.php?id=10
J'ai essayé d'augmenter la valeur de MAX_FILE_SIZE, mais rien a faire...
Une idée?
Merci d'avance.
Kalamit,
Je ponce donc j'essuie
Je voulais faire un upload de fichier en php. Pour cela j'ai suivi un cour sur http://www.phpfrance.com (source des articles CCM sur le php). Ca marcherait presque, le bidule... Seulement le probleme c'est que quand les fichiers dépassent trentes Ko, il me dit permission denied.
Pour voir le code utilisé, c'est ici: http://www.phpfrance.com/tutorials/index.php?id=10
J'ai essayé d'augmenter la valeur de MAX_FILE_SIZE, mais rien a faire...
Une idée?
Merci d'avance.
Kalamit,
Je ponce donc j'essuie
A voir également:
- Upload de fichier en php
- Fichier bin - Guide
- Fichier epub - Guide
- Fichier rar - Guide
- Comment réduire la taille d'un fichier - Guide
- Fichier .dat - Guide
4 réponses
Hello everybody,
Vu sur
http://php.easynet.be/manual/en/configuration.directives.php
File Uploads
Table 4-7. File Uploads Configuration Options
Name
Default
Changeable
file_uploads "1" PHP_INI_SYSTEM
upload_tmp_dir NULL PHP_INI_SYSTEM
upload_max_filesize "2M" PHP_INI_SYSTEM|PHP_INI_PERDIR
Here is a short explanation of the configuration directives.
file_uploads boolean
Whether or not to allow HTTP file uploads. See also the upload_max_filesize, upload_tmp_dir, and post_max_size directives.
upload_tmp_dir string
The temporary directory used for storing files when doing file upload. Must be writable by whatever user PHP is running as. If not specified PHP will use the system's default.
upload_max_filesize integer
La documentation officielle, mère de toute solution
(bof pas toujours ;)
Johan
The maximum size of an uploaded file.
The software said "Requires Windows98, Win2000, or better,
So I installed Unix.
Vu sur
http://php.easynet.be/manual/en/configuration.directives.php
File Uploads
Table 4-7. File Uploads Configuration Options
Name
Default
Changeable
file_uploads "1" PHP_INI_SYSTEM
upload_tmp_dir NULL PHP_INI_SYSTEM
upload_max_filesize "2M" PHP_INI_SYSTEM|PHP_INI_PERDIR
Here is a short explanation of the configuration directives.
file_uploads boolean
Whether or not to allow HTTP file uploads. See also the upload_max_filesize, upload_tmp_dir, and post_max_size directives.
upload_tmp_dir string
The temporary directory used for storing files when doing file upload. Must be writable by whatever user PHP is running as. If not specified PHP will use the system's default.
upload_max_filesize integer
La documentation officielle, mère de toute solution
(bof pas toujours ;)
Johan
The maximum size of an uploaded file.
The software said "Requires Windows98, Win2000, or better,
So I installed Unix.
j'ai le meme probleme que toi donc je voulais savoir si tu avais tgrouver une solution pour l'envoie de fichier plus gros ??? en plus je suis en local ca ne devrait pas poser de probleme