Page 1 sur 1

générer un fichier

Posté : 21 mars 2007, 20:30
par sacco
bonjour,

je voudrais généré un fichier du résultat du code

Code : Tout sélectionner

<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Document sans titre</title> </head> <body> <?php for($i=111111;$i<=116001;$i++) { ?> <tr> <td><?php echo "*".($i1=$i)."*" ?></td> <td><?php echo "*".($i2=$i1+1)."*" ?></td> <td><?php echo "*".($i3=$i2+1)."*" ?></td> <td><?php echo "*".($i4=$i3+1)."*" ?></td> <td><?php echo "*".($i5=$i4+1)."*" ?></td> <td><?php echo "*".($i6=$i5+1)."*" ?></td> </tr> </br> <?php $i=$i+5 ;} ?> </body> </html>

Posté : 21 mars 2007, 22:42
par ghalaad
oui mais moi j'ai pas envie...

fopen()
fwrite()
obstart() & co

Posté : 21 mars 2007, 22:44
par sacco
oui je suis d'accord mais comment faire avec les echo

Posté : 21 mars 2007, 22:46
par ghalaad
avec lse fonctions de cache : ob_* (start, flush, getcontent ...)