trying to debug a php script and am getting errors in these two lines:
$lines = file($url_path.'/admin/lists/'.$new_file_name);
foreach($lines as $key=>$val) {
the first line has the timeout error. i can see the files on the server so i know they have been uploaded and should exist in the location.
the second line obviously fails because the first fails...
not sure what to do next in terms of troubleshooting.. any help?
need help figuring this out (timeout error)
Moderator: General Moderators
-
BornForCode
- Forum Contributor
- Posts: 147
- Joined: Mon Feb 11, 2008 1:56 am
Re: need help figuring this out (timeout error)
How big is the file? Perhaps parsing the file is greater than default timeout limit.
To prevent this look here http://www.php.net/set_time_limit:
To prevent this look here http://www.php.net/set_time_limit:
Re: need help figuring this out (timeout error)
Read through the comments for file();