Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed.com:
PHP: Best Methods for Running Scheduled Jobs
Jun 28, 2012 @ 16:01:49

On DevShed.com today there's a new article posted looking at methods for running scheduled jobs based on responses to this forum post.

I have a webpage form that requires a date and time to be submitted. When it's submitted I need the back-end to run a script at the time and date specified. Have you ever needed to do something like this?

Some recommendations already posted include:

  • The UNIX "at" command
  • Setting up a queue system to manage the processes (using something similar to Gearman
  • Setting up a cron job to handle the periodic execution of the script.
tagged: execute scheduled job cron queue at unix opinion

Link:

Paul Jones' Blog:
Fluent Interfaces Require Fluent Situations
Dec 30, 2005 @ 12:51:41

On Paul Jones' blog today, he talks about something that's coming up more and more (and has especially been mentioned in PHp with all of the new frameworks popping up) - fluent interfaces.

My friend and coworker Mike Naberezny wrote recently of fluent interfaces (a.k.a. object chaining). The idea is that the fluent interface makes it very easy to read the resulting code in a way that flows naturally. This is cool, but I want to add a caveat to his examples.

I think, for a fluent interface to be effective, you need situations where you actually have all that information at one time so that you can chain the methods in a fluid way.

Paul continues, talking about that "something more" that might be needed to get this kind of thing working in PHP - the need to have all of the information that's going to be chained at once.

tagged: fluent interface fluent situation all data at once fluent interface fluent situation all data at once

Link:

Paul Jones' Blog:
Fluent Interfaces Require Fluent Situations
Dec 30, 2005 @ 12:51:41

On Paul Jones' blog today, he talks about something that's coming up more and more (and has especially been mentioned in PHp with all of the new frameworks popping up) - fluent interfaces.

My friend and coworker Mike Naberezny wrote recently of fluent interfaces (a.k.a. object chaining). The idea is that the fluent interface makes it very easy to read the resulting code in a way that flows naturally. This is cool, but I want to add a caveat to his examples.

I think, for a fluent interface to be effective, you need situations where you actually have all that information at one time so that you can chain the methods in a fluid way.

Paul continues, talking about that "something more" that might be needed to get this kind of thing working in PHP - the need to have all of the information that's going to be chained at once.

tagged: fluent interface fluent situation all data at once fluent interface fluent situation all data at once

Link:


Trending Topics: