Posts Tagged ‘PHP’

Get a PHP Script’s Own Linux PID (Process Id)

By marc • May 14th, 2008

Previously, I wrote this article on how to check the status of a known system PID from PHP. I figured that I would follow it up with another short article on how to determine the process id of a running PHP script from within itself. Many google searches seem to have led people to the […]



Return MySQL Results from an “IN” Query in the Correct Order

By marc • Apr 29th, 2008

The scenario:
You have a list of ids in a particular order that you want to search for in a MySQL table. Perhaps the ids were returned in this order from a search index or something else. Whatever the case is, now you want to get the results in the same order as the ids that […]



Check if Linux Process is Still Alive from PHP

By marc • Apr 28th, 2008

At some point you may need to figure out if a system process is still running from within a PHP application. The secret is by running a system command from PHP that returns the information for a specific process id (PID).
The normal shell command would be something like this:

 

$ ps 4946

Which would return something like […]



Why I use the symfony Framework

By marc • Apr 17th, 2008

About two years ago I was looking through the various web development job listings and started noticing this thing called Ruby on Rails in the requirements of various job descriptions. Upon further research I discovered that it was this wonderful godsend thing called a Web Development Framework. Before that point in my years of web […]



LampJunkie.com Launches!

By marc • Apr 16th, 2008

Well, I finally decided to take the plunge and get this site up and running after owning the domain for numerous months. My original intention was to create a customized blog application in Symfony using the promising sfSimpleBlogPlugin. However, due to lack of time I finally realized that it was pointless for me to […]