AMPEDUPDESIGNS

CONSULTING CONCEPTS PERSONAL

A small blog.

Running PHP scripts in the background in Windows


So trying to run a background PHP script so you can fire off multiple concurrent scripts? A great example is letting an admin user fire off a db processing script that would need to run for a long time.  While doing the same in a linux environment is sort of a breeze using the php exec function (don't forget to redirect the output somewhere),  I discovered that in Windows, the same code didn't work,  php consistently kept waiting for the script to finish, thereby essentially locking up the sessioned user.  After searching high and low and coming across various ...
Read More ...
Tags:   background  windows  scripts  linux  exec  php  

MAMP php.ini date.timezone setting


Running a recent local install of MAMP on my OSX 10.8.4, I ran into the following problem when running some PHP functions using the date method:


WARNING: [2] date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for 'PST/-8.0/no DST' instead in /xxxx/xxxxx/xxxx.php on line # 562

Depending on how yo ...
Read More ...
Tags:   php.ini  date.timezone  MAMP