[PHP] Warning: Invalid argument supplied for foreach()

2003-07-06 Thread arnaud gonzales
Hi all, I am getting crazy, can't understand what i missed! Does anybody know? $champs = array (titre_art = h3 ,nom = bleu, prenom = green, resume = bold); foreach($champs as $key = $value) { echo td class='$value'$row($key))/td; } TIA. zeg

[PHP] getimagesize or loop pblm

2002-10-06 Thread arnaud gonzales
Hi all, Does anybody can tell me why i have this error :Fatal error: Maximum execution time of 5 seconds exceeded in photos2.php on line 28 whith this $tab_img = array(); $tab_img_size = array();

RE: [PHP] getimagesize or loop pblm

2002-10-06 Thread arnaud gonzales
So my code is clean ? There isn't a problem of infiny loop? My server is free.fr. How do u suggest i can cach the data? -Message d'origine- De : Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Envoye : lundi 7 octobre 2002 03:07 A : arnaud gonzales Cc : Php-General Objet : Re: [PHP

[PHP] fputs() pblm how write on a new line each time ?

2002-05-22 Thread arnaud gonzales
Hi all, I' m searching how to write in a file on a new line each times whith fputs(). Because i want read the file whith file() and so ,have one line per indice in a table. So i need to write on a new line each time. ? $fic = fopen(toto.txt,a+); fputs($fic,on a new line);

[PHP] copy after upload pblm (?path?)

2002-05-19 Thread arnaud gonzales
Hi all, I' m trying to copy an uploaded file: if(!empty($fichier)) { $nom = $HTTP_POST_FILES[fichier][name]; $type = $HTTP_POST_FILES[fichier][type]; $taille = $HTTP_POST_FILES[fichier][size]; $nom_tmp =

[PHP] php fgets()

2002-05-14 Thread arnaud gonzales
Hi, I'm newbie in php and i would like to clearly understand how can i use: LENGTH in string fgets ( int fp [, int length]) Returns a string of up to length - 1 bytes read from the file pointed to by fp. Reading ends when length - 1 bytes have been read, on a newline (which is included in