|
|
|
![]() |
|
Strumenti |
![]() |
#1 |
Registered User
Iscritto dal: Dec 2005
Messaggi: 232
|
[PHP] Problema a caricare e stampare a video stringhe da file TXT
Come possoc aricare e stampare a video le righe di un file TXT???
Ora faccio l'esempio...Ho questo file: LUCA TONI PAVULLO NEL FRIGNANO (MO) 26/05/1977 cm 194 kg 89 Italia Attaccante - Forward 01/10/2000 MILAN-VICENZA 2-0 2005/2006 FIORENTINA Serie A 38 31 2004/2005 PALERMO Serie A 35 20 Il file non deve essere caricato tutto di fila, ma inserito in celle, esempio: <tr> <td colspan="6" class="sknome">RIGA1</td> </tr> <tr> <td colspan="6" class="skspaO"> </td> </tr> <tr> <td width="148" rowspan="11" class="skfoto"><div align="center"><img src="toni_luc.jpg" width="142" height="213" align="middle" /></div></td> <td width="120" class="skdatS"> </td> <td width="210" class="skdatP">Nato a: </td> <td width="52" class="skdatS"> </td> <td width="53" class="skdatD">RIGA2</td> <td width="106" class="skdatS"> </td> </tr> E cosi di fila, nidificando tutto in tabelle. Come posso fare utilizzando il PHP??? |
![]() |
![]() |
![]() |
#2 |
Senior Member
Iscritto dal: Jan 2006
Città: Pisa
Messaggi: 2498
|
Se fai
$array=file($percorsofile); il file ti viene restituito un array contenente una riga per campo dell'array... Quindi userai $array[0], $array[1], $array[3].. come ti verrà utile... Sciaozz!
__________________
![]() |
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 22:04.