Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
869 connectés 

  FORUM HardWare.fr
  Programmation

  [PHP] et fonction "unlink()" sous zindozs

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[PHP] et fonction "unlink()" sous zindozs

n°50627
stb
Posté le 02-08-2001 à 13:14:03  profilanswer
 

Cte fonction commence à me faire ch*er!
 
Impossible d'éffacer un fichier, pourtant crée avec PHP:
 
fopen("gangna.dat","r+" )
...
unlink("gangna.dat" );
------------------------
=>(permission denied)
 
En créant un fichier bidon ds l'explorateur, unlink() marche!

mood
Publicité
Posté le 02-08-2001 à 13:14:03  profilanswer
 

n°50635
seb666
Posté le 02-08-2001 à 13:51:57  profilanswer
 

Et tu ferme le fichier avant de vouloir l'éffacer ???
$fichier=fopen("gangna.dat","r+" );
fclose($fichier);
unlink("gangna.dat" );

n°50700
stb
Posté le 02-08-2001 à 16:32:57  profilanswer
 

ct ça j'avais oublié de fermer, ho l'erreur de débutant!


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  [PHP] et fonction "unlink()" sous zindozs

 

Sujets relatifs
PHP / GD : "undefined function: imagecreate()"[ PHP Flash] Ou trouver ça??
[PHP]::éffacement de fichiers[Visual C++]La fonction TRACE ?
[PHP] Navigation / liensC++ - Problème de passage de variable de type vector dans une fonction
[PHP] ça marche sous Win NT?[PHP] images aléatoire | help plz =)
[ PHP ] utilisation des fichiers[MySql-PHP] Comment...
Plus de sujets relatifs à : [PHP] et fonction "unlink()" sous zindozs


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR