[FX.php List] PHP error log tracking using PID?

Steve Winter steve at bluecrocodile.co.nz
Mon Feb 13 01:52:17 MST 2012


Hi Jonathan

> I don't want to start a mySQL vs. FileMaker debate.

Go, on, you did really you b***y stirrer ;-)

> The purpose of my question was to collect a consensus of whether this 
> particular request...using PID in PHP error logging ...was a common 
> practice in the MySQL world, one that I should be applying in the 
> FileMaker Web Publishing.

Yes, one often adds the PID to logs in web apps, and I also do this for FileMaker-based web applications as well. 

All of our production code contains custom logging, which is written into the system log on the machine which it's running on, using standard PHP log functions (see openlog() http://php.net/manual/en/function.openlog.php and syslog() http://www.php.net/manual/en/function.syslog.php). On Windows, this ends up being accessible through the Event Viewer. We set different levels of logging, and control how much data ends up in the logs with a configuration variable.

> Regarding the "delivering the bad news" I referred to in my earlier 
> post, I had to say "no" to the following :
> 
> - Can FileMaker Server support multiple virtualized web servers in 
> the Web Publishing deployment. The answer was "No, it's a one-to-one 
> with FileMaker Server".

Not exactly - you can place multiple (purely) web servers in front of a single FMS web engine. So if the bulk of the content being served was static HTML and/or HTML delivered from another CMS etc, then that could be handled by multiple load-balanced web serves, each of which 'talks; to a single FMS web deployment (be that a 1, 2 or 3 machine FMS install)

> - Can they run Linux web servers? The answer I provided was "No, FMS 
> Web Publishing requires either OS X or Windows....unless you chose to 
> step outside of the FMI blessed configuration".

Again, not necessarily - all of the web servers in what I describe above could be Linux, however the FMS will need to be Win or OS X

> - Can they maintain mirrored databases across multiple servers for 
> instant fail-over?  I said, "No, you can't copy live FMP db files 
> without damaging them.  FMS offers backup scheduling to create usable 
> copies, but they will reflect the data from last backup"

Or look into a solution like SyncDek, and use that to keep two FMS system mirrored (but you know that 'cause you've been there before with this client ;-)

> As you can see, these are standard features in the mySQL world.

Indeed, they are...

> I'm just trying to accommodate and determine if the PID feature 
> request was something I could/should attempt to deliver.

If you want the logging class which we use, plus an example of usage, let me know and I'l fire it over - that will add PIDs to as many places in your code as you choose to past the log() function...

> BTW...If anyone has "yes" answers to the above questions, I'm all ears.

See above… 

Good luck
Steve


Steve Winter
+44 777 852 4776
steve at bluecrocodile.co.nz



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20120213/fec169d3/attachment.html


More information about the FX.php_List mailing list