| 
	
 | 
 Posted by flamer die.spam@hotmail.com on 06/16/41 11:52 
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] 
 |