php-general | 2003022
Date: 02/27/03
- Next message: 1LT John W. Holmes: "Re: [PHP] File upload problem - permission denied"
- Previous message: rush: "[PHP] Re: classes and functions in include files"
- Next in thread: Ferhat Can: "Re: [PHP] Reading files"
- Reply: Ferhat Can: "Re: [PHP] Reading files"
- Reply: 1LT John W. Holmes: "Re: [PHP] Reading files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Greetings...
When the following runs..........
===========================================================
<?php
$handle = fopen ("fopen.txt", "r");
$date = date("l dS of F Y h:i:s: A");
while (!feof ($handle)) ;
{
$buffer = fgets($handle, 4096);
echo '<textarea>'. $buffer. '</textarea>';
}
fclose($handle);
?>
============================================================
.....it gives out........
============================================================
Fatal error: Maximum execution time of 30 seconds exceeded in
/home/data/ClientWebs/chrisplay/Things/fopen.php on line 16
============================================================
I used the example from php.net/fget() and have tried a few changes
based on other stuff I read, but to no avail.....
Line 16 is = " while (!feof ($handle)) ; "
Suggestions ?
-- Chris Blake Office : (011) 782-0840 Cell : 083 985 0379 It is reported that somewhere in the world, every 15 seconds, a woman gives birth to a child. She must be found and stopped.-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: 1LT John W. Holmes: "Re: [PHP] File upload problem - permission denied"
- Previous message: rush: "[PHP] Re: classes and functions in include files"
- Next in thread: Ferhat Can: "Re: [PHP] Reading files"
- Reply: Ferhat Can: "Re: [PHP] Reading files"
- Reply: 1LT John W. Holmes: "Re: [PHP] Reading files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

