PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > what does PHP do with temp files uploaded to the server?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
what does PHP do with temp files uploaded to the server?

Réponse
 
LinkBack Outils de la discussion
Vieux 16/06/2008, 18h38   #1
Lawrence Krubner
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut what does PHP do with temp files uploaded to the server?


Imagine I have a site where users can upload files. Now imagine we are
enfocing a 100 meg limit on each account. The user uploads a file, the
code checks to see if they are already over their limit. If not, the PHP
upload code precedes as normal and I use move_uploaded_file() to copy
the temp file to its permanent home. But if the user is over their
limit, then I do not use move_uploaded_file(). I simply notify the user
that they are over their limit and not allowed to upload any more files.

Who is responsible for disposing of the temp files, me or PHP? I'm
assuming that either PHP or the server deletes these files after a
certain amount of time. Is that correct?


  Réponse avec citation
Vieux 16/06/2008, 18h58   #2
Iván Sánchez Ortega
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: what does PHP do with temp files uploaded to the server?

Lawrence Krubner wrote:

> Who is responsible for disposing of the temp files, me or PHP?


Neither: it's the web server the one who handles the upload.

> I'm assuming that either PHP or the server deletes these files after a
> certain amount of time. Is that correct?


AFAIK, it's deleted by the web server whenever the script terminates its
execution.

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

Now listening to: Bitchee Bitchee Ya Ya Ya - Kitsuné Maison Compilation 5
(2008) - [13] Fuck Friend (CSS remix) (3:14) (0.000000%)
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 07h51.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,07334 seconds with 10 queries