----- Original Message -----
From: "Bob"
<snip>
$logdata = file_get_contents($logfile);
$nline = strpos($logdata, "\n", 500);
$newdata = substr($logdata, $nline);
<snip>
------------------------------------
Hi Bob,
You are still reading the whole file into memory.
Can you tell me again what version of php you are running? I will set up
your version of php in a WAMP here for testing.
File locking is only required if more then one script (or thread) can access
the log files.
I assume you are on linux, windows is different for file locking.
Rob.
------------------------------------
Please remember to write your response BELOW the previous text.
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-listYahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/php-list/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/