RE: [PHP] Re: Opening large file problem - fopen
| From: | Jay Blanchard | Date: | Tue, 16 Dec 2003 11:33:46 +0000 |
| Subject: | RE: [PHP] Re: Opening large file problem - fopen | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-172789@lists.php.net to get a copy of this message | ||
[snip]
I found that the script accually breaks on this line :
[Mon Jul 14 12:17:26 2003] [error] PHP Notice: INSERT INTO tbl_news
(band_id, date, heading,heading_eng, ingress,ingress_eng, body,body_eng)
VALUES (-1,"2003-07-14","TESTAMENT endelig til Norge!!!", "Spiller p
Rock
in - spesial treat for the fans!", "", "", "Testament + support
spiller
pe
Rock In onsdag 30.juli. Grunnet opptatte strre spillesteder ensket
Testament
likevel gj/re Norge, med en kveld dedikert til fansen som har mttet
vente
pt Norgesbesket i su mange r..
Rock In blir garantert utsolgt, sr her er det bare hamstre billett ss
fort
s mulig!!
Billetter pl billettservice/posten
Bill.pris 250,-+avg. - Drene cpner 19.00","") in
/home/xxx/public_html/admin/news_send.php on line 27
[Mon Jul 14 12:17:26 2003] [error] PHP Warning: Cannot modify header
information - headers already sent by (output started at
/home/xxx/public_html/admin/news_send.php:2) in
/home/pilotman/public_html/admin/news_send.php on line 34
[/snip]
It does not seem to be the size of the file that you are working with,
there seems to be another problem. Turn on all error reporting. Use
mysql_error to echo errors from SQL statements. What is happening here
is that headers are being sent out and the script is exiting.
May I suggest sending in the code in question? Perhaps we can locate the
problem that way.