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
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
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
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
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
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";
"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
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
8 matches
Mail list logo