|
![]() |
#1 |
I'm DEAD sexy!!!
Datum registracije: Sep 2002
Lokacija: Zagreb
Postovi: 349
|
PHP problem
Dakle imam određene podatke u .asc fileu. Učitavam ih sa: $handle = fopen($_FILES['userfile']['tmp_name'], "r"); while (($data = fgetcsv($handle, 1000, "$")) !== FALSE && (!feof($handle))) { echo '<tr>'; $num = count($data); for ($c=0; $c < $num-1; $c++) echo '<td bgcolor=#ffffff>'.$data[$c]."</td>"; echo '</tr> '; } E sad kad učitavam jedan file sa nekih petnaestak redova pri čemu svaki red zgleda ovak: 10022891$Investigations$Inv$$$$$$$$ sve je OK i sve se učita i stvori se tablica.No kad učitavam file sa preko 60.000 linija a svaka je u formatu: 10000045$Abdomen enlarged$10000060$0711001$5$ABDO ENLARGE$$$$Y$0814$ stvar javi grešku: Warning: fgetcsv() expects parameter 1 to be resource, boolean given in D:\web\MedDRA\upload.php on line 36 :confused: :confused: :confused:
__________________
ASUS Crosshair V Formula Processor AMD FX-8320E Corsair Vengance Pro DDR3 2133 2x4 GB NVIDIA GeForce GTX 1060 6GB |
![]() |
![]() |
![]() |
#2 |
I'm DEAD sexy!!!
Datum registracije: Sep 2002
Lokacija: Zagreb
Postovi: 349
|
Uzel sam prvih 15 linija iz tog velkog file i normalno ih je učitalo. Nigdje na netu nemrem nać ima li fgetcsv neko ograničenje na broj linija moje može učitat
__________________
ASUS Crosshair V Formula Processor AMD FX-8320E Corsair Vengance Pro DDR3 2133 2x4 GB NVIDIA GeForce GTX 1060 6GB |
![]() |
![]() |
|
|
Oglas
|
|
![]() |
#4 |
I'm DEAD sexy!!!
Datum registracije: Sep 2002
Lokacija: Zagreb
Postovi: 349
|
Vjerojatno je problem u maksimalnom ograničenju uploadanja file.
__________________
ASUS Crosshair V Formula Processor AMD FX-8320E Corsair Vengance Pro DDR3 2133 2x4 GB NVIDIA GeForce GTX 1060 6GB |
![]() |
![]() |
|
|
Oglas
|
|
![]() |
|
|