May 5, 2012
Recently, I was working on a Silverstripe project where the client requested that they have a contact form, and based on the state/region that was chosen in a select box, an email would be sent to that regions email. Another example of this would be to send an email to a certain department such as sales, technical support, advertising, general inquiries etc.
I could have assigned the values with the contact form itself, but when the client informed me that each state did their own email campaigns, it became apparent that a newsletter sign up form would require the same email information based on state/region.
(more…)
September 28, 2011
I recently ran into issues especially with using the Doctrine ORM with my PHP development. My issue was that sometimes database insert and update queries would fail and I would have very limited debugging tools at my disposal. You can try printing out the query but usually if you are binding values to the field names, they are not displayed in the printed output.
(more…)
July 6, 2011
We’re back to finish part 2 of our command line PHP script to run our cron jobs.
We’ll start by creating a new file titled update_prices.php. This filename should describe the overall goal you are intending to perform.
(more…)
June 30, 2011
The best part about working with talented PHP Developers in the workplace is learning techniques to make us better developers.
Last week I was required to create an automated PHP script to convert a data file of a legacy application into a newly created internal web app. After completing it, a workmate of mine; Tom McDonnell informed me of a script he had developed which accepted command line arguments and provided great feedback of the status of the running script.
(more…)