Hello firends,
When i try to get the content of an external file using file() (preferred) i cant get the entire content…
The problem is the file isnt that big (< 30 lines, 4kbs) ill give the example:
the entire file using file_get_contents():
[size=7pt]Alucard -A-Wars 1x1 Mage 4 1 2011/08/14 02:24:18 ironman -A-Wars 1x1 Mage 4 4 2011/08/14 05:50:25 Joga Nada -A-Wars 1x1 Mage 8 4 2011/08/14 21:43:29 BlindFaith -A-Wars 5x5 10 2 2011/08/14 23:59:53 Lord Angel -A-Wars 5x5 10 2 2011/08/14 23:59:53 Meu Ovo -A-Wars 5x5 10 2 2011/08/14 23:59:53 Sao Silvestre -A-Wars 5x5 10 2 2011/08/14 23:59:53 Palmeiras -A-Wars 5x5 10 2 2011/08/14 23:59:53 CoCa CoLa -A-Wars 2x2x2x2 8 4 2011/08/15 19:03:02 Babalu -A-Wars Pancadaria 3x3x3x3 12 4 2011/08/15 20:47:39 Cypress Hill -A-Wars Pancadaria 3x3x3x3 12 4 2011/08/15 20:47:39 renan -A-Wars 4x4x4x4 16 4 2011/08/15 22:03:04 Sao Silvestre -A-Wars 4x4x4x4 16 4 2011/08/15 22:03:04 Clark Kent -A-Wars 4x4x4x4 16 4 2011/08/15 22:03:04 Stanic -A-Wars 4x4x4x4 16 4 2011/08/15 22:03:04 Sao Silvestre -A-Wars 2x2 Mage 16 8 2011/08/15 22:20:17 Judas -A-Wars 2x2 Mage 16 8 2011/08/15 22:20:17 CoCa CoLa -A-Wars Evento Times 8 2 2011/08/15 22:53:17 Black Space -A-Wars Evento Times 8 2 2011/08/15 22:53:17 Venda a Gavea -A-Wars 5x5 10 2 2011/08/16 22:09:53 Shadown -A-Wars 5x5 10 2 2011/08/16 22:09:53 Nosso Ovo -A-Wars 5x5 10 2 2011/08/16 22:09:53 PaO com DureX -A-Wars 5x5 10 2 2011/08/16 22:09:53 Nosso Ovo -A-Wars 1x1 Warrior 8 8 2011/08/16 22:42:30 Sao Silvestre -A-Wars 2x2x2x2 8 4 2011/08/18 16:50:33 CoCa CoLa -A-Wars 2x2x2x2 8 4 2011/08/18 16:50:33 Palmeiras -A-Wars 1x1 Warrior 4 4 2011/08/19 14:29:42 antherao -A-Wars 1x1 Mage 4 4 2011/08/19 14:41:50 Beterraba -A-Wars 5x5 10 2 2011/08/19 22:14:05 Joga Nada -A-Wars 5x5 10 2 2011/08/19 22:14:05 HiGuAiN -A-Wars 5x5 10 2 2011/08/19 22:14:05 [/size] Sao Silvestre -A-Wars 5x5 10 2 2011/08/19 22:14:05
The output:
[size=7pt]Alucard -A-Wars 1x1 Mage 4 1 2011/08/14 02:24:18 ironman -A-Wars 1x1 Mage 4 4 2011/08/14 05:50:25 Joga Nada -A-Wars 1x1 Mage 8 4 2011/08/14 21:43:29 BlindFaith -A-Wars 5x5 10 2 2011/08/14 23:59:53 Lord Angel -A-Wars 5x5 10 2 2011/08/14 23:59:53 Meu Ovo -A-Wars 5x5 10 2 2011/08/14 23:59:53 Sao Silvestre -A-Wars 5x5 10 2 2011/08/14 23:59:53 Palmeiras -A-Wars 5x5 10 2 2011/08/14 23:59:53 CoCa CoLa -A-Wars 2x2x2x2 8 4 2011/08/15 19:03:02 Babalu -A-Wars Pancadaria 3x3x3x3 12 4 2011/08/15 20:47:39 Cypress Hill -A-Wars Pancadaria 3x3x3x3 12 4 2011/08/15 20:47:39 renan -A-Wars 4x4x4x4 16 4 2011/08/15 22:03:04 Sao Silvestre -A-Wars 4x4x4x4 16 4 2011/08/15 22:03:04 Clark Kent -A-Wars 4x4x4x4 16 4 2011/08/15 22:03:04 Stanic -A-Wars 4x4x4x4 16 4 2011/08/15 22:03:04 Sao Silvestre -A-Wars 2x2 Mage 16 8 2011/08/15 22:20:17 Judas -A-Wars 2x2 Mage 16 8 2011/08/15 22:20:17 CoCa CoLa -A-Wars Evento Times 8 2 2011/08/15 22:53:17 Black Space -A-Wars Evento Times 8 2 2011/08/15 22:53:17 Venda a Gavea -A-Wars 5x5 10 2 2011/08/16 22:09:53 Shadown -A-Wars 5x5 10 2 2011/08/16 22:09:53 Nosso Ovo -A-Wars 5x5 10 2</t[/size] I didn’t see anyone on internet talking about this problem (small files)
i can’t even use
[php]$file file(‘external_file’);
echo $file[25];[/php]
Cuz it cant read the line 25Something i can do on my php.ini?
Very thankful, Chinchila.