php-general Digest 11 Feb 2013 09:26:57 -0000 Issue 8118

2013-02-11 Thread php-general-digest-help
php-general Digest 11 Feb 2013 09:26:57 - Issue 8118 Topics (messages 320184 through 320187): Re: Random 404 screens 320184 by: Jim Giner fopen and load balancing 320185 by: Adam Tong 320186 by: Adam Richardson 320187 by: marco.behnke.biz Administrivia: To

Re: [PHP] fopen and load balancing

2013-02-11 Thread ma...@behnke.biz
Adam Tong adam.to...@gmail.com hat am 10. Februar 2013 um 23:41 geschrieben: Hi, We had an issue with the code of a junior php developer that used fopen to load images using the url of the companies website that is load balanced. We could not the detect the problem in dev and test because

Re: [PHP] Apache to serve RESTful requests using PHP

2013-02-11 Thread Stuart Dallas
On 10 Feb 2013, at 06:57, AmirBehzad Eslami behzad.esl...@gmail.com wrote: Stuart, thanks for your detailed response. I find it unlikely that Apache is your bottleneck, especially with a service involving MySQL. How have you come to this conclusion? Apache is the entry-point to our

[PHP] PHP 5.4.11 warnings - how to make them go away ?

2013-02-11 Thread Paul Lanken
I ran a quick mysql_connect test using the php 5.4.11 cli and was met with many annoying warnings : $ php -r mysql_connect( \localhost\, \username\, \password\ ) or die(\Unable to connect to MySQL\); echo \Connected to MySQL\\n\; 21 | cat -n - 1 PHP Warning: PHP Startup: Unable to load

Re: [PHP] PHP 5.4.11 warnings - how to make them go away ?

2013-02-11 Thread ma...@behnke.biz
Paul Lanken lanken.p...@gmail.com hat am 11. Februar 2013 um 14:27 geschrieben: I ran a quick mysql_connect test using the php 5.4.11 cli and was met with many annoying warnings : $ php -r mysql_connect( \localhost\, \username\, \password\ ) or die(\Unable to connect to MySQL\); echo

Re: [PHP] fopen and load balancing

2013-02-11 Thread Adam Tong
I think this is what happened. As the application was trying to open our url domain the request was sent to the load balancer, and as it does not accept internal requests, the connection was timed out. The only way we could avoid that is to not use fopen our url, is that right? On Mon, Feb 11,

[PHP] Question about PHP-CGI, mysqld and sudden spiking average load readings on Linux Virtual Dedicated Server running CentOS 6.3

2013-02-11 Thread Gary Lebowitz
I have noticed when doing a top via SSH on my GoDaddy virtual dedicated server that every time a user logs in in the COMMAND column I see the PHP-CGI process start to run, followed by mysqld. Often when these two processes run I start to see a spike in average load, and sometimes this spike spins

Re: [PHP] fopen and load balancing

2013-02-11 Thread Sean Greenslade
On Mon, Feb 11, 2013 at 10:11 AM, Adam Tong adam.to...@gmail.com wrote: On Mon, Feb 11, 2013 at 4:26 AM, ma...@behnke.biz ma...@behnke.biz wrote: Adam Tong adam.to...@gmail.com hat am 10. Februar 2013 um 23:41 geschrieben: Hi, We had an issue with the code of a junior php developer