Re: [PHP] Re: read file from specific line

2005-01-27 Thread John Nichel
John Coppens wrote: On Thu, 27 Jan 2005 15:15:48 +0100 (CET) [EMAIL PROTECTED] wrote: Hi there! Is there any way reading a file from a specific line? (textfile) /G @varupiraten.se Not directly - there's no way to know where the line starts, except if they are all of the same length. Read the file

[PHP] Re: read file from specific line

2005-01-27 Thread John Coppens
On Thu, 27 Jan 2005 15:15:48 +0100 (CET) [EMAIL PROTECTED] wrote: > Hi there! > > Is there any way reading a file from a specific line? (textfile) > > /G > @varupiraten.se Not directly - there's no way to know where the line starts, except if they are all of the same length. Read the file, spli

[PHP] Re: Read file backwards

2004-04-10 Thread Kim Steinhaug
Got a tip by email, Might look here and modify it if needed ... http://tailforwin32.sourceforge.net/ Thanks, this is atleast much better than switching windows and refershing the files in Textpad which I do at the moment. tail was ofcourse the word I was looking for, not the trace word. Thanks

[PHP] Re: read file only half the file loads ...

2004-02-02 Thread DvDmanDT
The server or the connection seems to be the problem.. :s -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Philip J. Newman" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > loadimage.php has the following code in it. > > >$myimage="d:/website/images/no_access

[PHP] Re: Read file and get what i want

2003-02-06 Thread Bobby Patel
Check out explode() $file // say this variable has your file contents $lines = explode ("\n", $file); // lines contains each line of the file foreach ($lines as $line -> $content) { if (strrpos($line, ':')) { $values = explode (':', $content); echo "The first value is : ".$valu

[PHP] Re: read file

2001-11-23 Thread Jaime Iniesta Aleman
Is it so easy to open a file and include it in a page? I do it this way: * $file_name = "filename.txt"; if(file_exists($file_name)) { $file_pointer = fopen($file_name, "r"); $file_read = fread($file_pointer, filesize($file_name)); fclose($file_pointer); print "$file_read";

[PHP] Re: read file twice or read into array once?

2001-10-05 Thread John A. Grant
"Richard Lynch" <[EMAIL PROTECTED]> wrote in message 046901c14d62$b4c7a0c0$c801a8c0@Lynchux100">news:046901c14d62$b4c7a0c0$c801a8c0@Lynchux100... > 100 lines of 200 chars each is 2 which is 20K which is chump change for > RAM... > > Unless you are on a super busy page on a super high-volume se

[PHP] Re: read file twice or read into array once?

2001-10-04 Thread Richard Lynch
100 lines of 200 chars each is 2 which is 20K which is chump change for RAM... Unless you are on a super busy page on a super high-volume server, just file() it. If you're on a super busy page on a super high-volume server, file() it anyway, and then ap benchmark it to see if it's "slim enou