Reply to Re: mysql apache - page never finish loading

Your name:

Reply:


Posted by theGreatGnu on 07/17/06 11:18

Hi Flamer,

The problem is not lack of error handling, and the snippet I submitted
was just to illustrate the point. I am pretty sure that my problem
isn't the PHP code itself. Rather it has something to do with the
settings on the computer I am using at home. Firewalls, anitvirus, and
such, as suggested earlier, seemed like a possible source of my
problems, but unfortunately it didn't help to turn it all off.

I was hoping that this was some kind of "known problem" when using PHP
and mysql, but I guess I had no such luck.

Anyway, thanks for your efforts!

-Anders Bondensson

flamer die.spam@hotmail.com skrev:

> i would stick in an ' or die (mysql_error ()); ' at the end of the
> statement, probably is coming across an error but for some reason keeps
> trying.. you really should have that on all your sql queries.
>
> Flamer.
>
> theGreatGnu@my-deja.com wrote:
>
> > Alvaro G. Vicario skrev:
> >
> > > *** theGreatGnu@my-deja.com escribió/wrote (8 Jul 2006 03:22:00 -0700):
> > > > However, I'm stuck on an irritating problem. Whenever I connect to
> > > > mysql, my PHP pages don't want to finish loading. In the following
> > > > example, the page will not finish loading nor display "abc" until I
> > > > interupt by pressing "Stop" in the web browser".
> > > >
> > > > <?php
> > > > echo 'a';
> > > > $link = mysql_connect('localhost', 'user', 'pwd');
> > > > echo 'b';
> > > > mysql_close($link);
> > > > echo 'c';
> > > > ?>
> > >
> > > Your code looks flawless to me. I'd say the problem could be in third-party
> > > software, such as:
> > >
> > > - Antivirus
> > > - Firewall
> > > - Proxy
> > > ...
> > >
> > > If you are using Windows, there's an Apache directive you can try (add it
> > > to httpd.conf file):
> > >
> > > EnableSendfile Off
> > > EnableMMAP Off
> > > Win32DisableAcceptEx
> > >
> > > This seems to fix some Windows specific problems. If it works for you
> > > please let me know.
> >
> > Thank for your help. Unfortunately this did not fix the problem. I have
> > added the above lines to the httpd.conf file, i have inactivated both
> > firewall and anti virus, all in various combinations. Not sure what to
> > do with the proxy server. Don't think I am using one, but I could be
> > mistaken.
> >
> > Opera and IE behaves somewhat differently. With Opera, the "abc" will
> > be displayed when I press "stop" in the browser. For IE, "abc" will
> > never be displayed. The page will just not load.
> >
> > All this happens whenver I connect to mysql. Regular html or php pages
> > will load happily.
> >
> > -Anders Bondensson

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация