Re: [PHP] fopen and load balancing

2013-02-11 Thread ma...@behnke.biz
Adam Tong 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 the dev > and

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

2013-02-11 Thread Stuart Dallas
On 10 Feb 2013, at 06:57, AmirBehzad Eslami 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 service, an

[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\";" 2>&1 | cat -n - 1 PHP Warning: PHP Startup: Unabl

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

2013-02-11 Thread ma...@behnke.biz
Paul Lanken 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 \"Connected to

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, 2

[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 wrote: > On Mon, Feb 11, 2013 at 4:26 AM, ma...@behnke.biz > wrote: > > > > > > Adam Tong 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 u