On 2/18/06, Gordon Stewart <[EMAIL PROTECTED]> wrote:
> I've come accross a situation where one of my 'source' files is over
> 17 Megs, & my script times out... (im not echoing anything to the
> screen / cron jobs...)
Ive re-checked the script & that 17meg file has shrunk- 200KB :)
(good...)
However - This section of script (new) does not work :-
=======================
error_reporting(E_ALL);
$fullfile=file($basefile);
$handle = fopen($savefile, "a");
foreach ($fullfile as $key3=>$val3) {
$val3=trim($val3);
if (preg_match("/\w+/i", $val3)){
fwrite($handle, "$val3\n");
}
}
echo "TEXT<BR>\n\n";
fclose ($handle);
echo "GOT HERE 4\n";
exit;
================================
Ive put an exit command right before it, & the script does work up to
that point.
but when I get to the above lines - it produces an error....
any ideas on a straight copy-n-append ??
--
G
Yahoo Archives by email = Yes
http://groups.kwister.com/owners.php#add
NZ community groups - [EMAIL PROTECTED]
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-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> 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/