par
amelaye13 » 20 févr. 2009, 17:09
Non, la fonction chmod ne marche pas sous windows, pas du tout le même système. Je m'en vais modifier le php.ini pour mettre le dossier temporaire aux bonnes permissions et je vous dis si ça marche ... j'ai trouvé ça sur php.net :
For those using PHP on Windows and IIS, you SHOULD set the "upload_tmp_dir" value in php.ini to some directory around where your websites directory is, create that directory, and then set the same permissions on it that you have set for your websites directory. Otherwise, when you upload a file and it goes into C:\WINDOWS\Temp, then you move it to your website directory, its permissions will NOT be set correctly. This will cause you problems if you then want to manipulate that file with something like ImageMagick's convert utility.
Non, la fonction chmod ne marche pas sous windows, pas du tout le même système. Je m'en vais modifier le php.ini pour mettre le dossier temporaire aux bonnes permissions et je vous dis si ça marche ... j'ai trouvé ça sur php.net :
[quote]For those using PHP on Windows and IIS, you SHOULD set the "upload_tmp_dir" value in php.ini to some directory around where your websites directory is, create that directory, and then set the same permissions on it that you have set for your websites directory. Otherwise, when you upload a file and it goes into C:\WINDOWS\Temp, then you move it to your website directory, its permissions will NOT be set correctly. This will cause you problems if you then want to manipulate that file with something like ImageMagick's convert utility.
[/quote]