I appreciate there are perhaps better ways of making a PHP application scale than the above, however I'm wondering more on principle. From what I've heard, Python is faster than PHP and I'm trying to decide which language to learn next, as a PHP developer.
For web applications I would personally learn Python after PHP, but if your a Windows fan consider ASP.NET.
Would porting parts of a PHP application to Python help it scale?