tag:blogger.com,1999:blog-4577455583142648696.post4087923376455839290..comments2016-02-10T14:49:41.642-08:00Comments on Mike's IBM i PHP blog and more...: How does PHP perform on IBM i?Mike Pavlakhttp://www.blogger.com/profile/06265665870415574144noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-4577455583142648696.post-9228506026627391662012-05-23T15:10:40.191-07:002012-05-23T15:10:40.191-07:00Sure, assuming i am understanding your question co...Sure, assuming i am understanding your question correctly. I think you'll find some assistance here: http://alanseiden.com/presentation%20slides/PHP-for-batch-tasks-on-IBM%20i.pdf . <br /><br />Regards,<br /><br />MikeMike Pavlakhttps://www.blogger.com/profile/06265665870415574144noreply@blogger.comtag:blogger.com,1999:blog-4577455583142648696.post-74983292505758903922012-05-23T02:58:23.934-07:002012-05-23T02:58:23.934-07:00Hi,
I would like to know whether we can run php i...Hi,<br /><br />I would like to know whether we can run php in shell. If yes, then could any please let me know the procedure.irfanhttps://www.blogger.com/profile/13273342328518943426noreply@blogger.comtag:blogger.com,1999:blog-4577455583142648696.post-71378130573296405982012-02-24T06:27:41.913-08:002012-02-24T06:27:41.913-08:00Thanks Matt, all valid points and worthy of consid...Thanks Matt, all valid points and worthy of consideration! The Zend Data cache API's are available in the Community Edition, as well. We will have a few of these tips and a few more in the upcoming webcast!<br /><br />Woohoo!Mike Pavlakhttps://www.blogger.com/profile/06265665870415574144noreply@blogger.comtag:blogger.com,1999:blog-4577455583142648696.post-57826399244257480902012-02-17T10:35:03.115-08:002012-02-17T10:35:03.115-08:00My boss was working with a PHP app on our IBM i th...My boss was working with a PHP app on our IBM i the other day and it was working so fast he asked, "Is it doing anything?" It was, in fact, working and that app runs on Zend Framework (which has a reputation of being slow).<br /><br />You are very right about bottlenecks. Here are my personal tips:<br /><br />I have written several classes and use singletons to do things like SQL calls. This allows me to create one connection that I use for all database calls and it can DRAMATICALLY improve performance when apps run multiple queries.<br /><br />Also, changing this class to use db2_pconnect gave me MUCH better performance.<br /><br />Don't be afraid to use the APC functions to cache data. I use them all the time for data that is frequently accessed but rarely changed.<br /><br />Finally, writing to the IFS can be surprisingly slow. Once I even discovered my writes for tracking performance were the very thing killing performance. So if your app seems to be running slow for an unknown reason, check the logs and make sure you're not filling up those logs with deprecation warnings and notices. If you are, fix your code or turn those off.Matt Lavinderhttps://www.blogger.com/profile/12405182387428349222noreply@blogger.com