ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-france
php-france
RE : [php-france]
by Vincent VAURETTE other posts by this author
Nov 5 2002 4:15PM messages near this date
Re: [php-france] | Re: [php-france]
y'a un pb dans le if (!$fp) je pense.
=20
vu que l=E0, si c'est pas bon, tu retournes $fp...=20
et dans le else, faudrait songer =E0 quitter le script pour qu'il ne =
fasse
pas la suite.
=20
sinon, le code est correct =E0 condition que $strxml2 contienne qqchose.
=20
A+

-----Message d'origine-----
De : mounir elmarouri [mailto:melmarouri@[...].com]=20
Envoy=E9 : mardi 5 novembre 2002 17:09
=C0 : php-france@[...].org
Objet : [php-france]=20


bonjour tout le monde=20
lecriture d'un fichier sur /tmp ne marche plus , je crois que c un prob
de droit mais comment en etre sur=20
voici le code que jutilise=20
=20
$fichier=3D"/tmp/".$bds_ref.".xml";
$fp =3D fopen($fichier, "w");=20
if (!$fp){ return $fp;}=20
else {echo "erreur";}
$r =3D fwrite($fp, $strxml2);=20
fclose($fp);=20
Attachments:
unknown1

Thread:
mounir elmarouri
Christophe Gros
Pierre-Alain Joye
Vincent VAURETTE
=?iso-8859-1?Q?herv=E9_Couvelard?=
mounir elmarouri
Pierre-Alain Joye
mounir elmarouri

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved