cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: is curl better than running php script locally?

From: Alessandro Vesely <vesely_at_tana.it>
Date: Tue, 09 Oct 2007 07:04:38 +0200

Charlie Reddington wrote:
>
> We have a couple of scripts that just sit on a webpage that we have a
> cron job hit every few minutes. I personally don't like the idea of our
> utilities being out in the open, though, they are pretty harmless and
> can't mess up anything we do.

Several years ago php didn't support the CLI flavor, thus that was the
only way to run php scripts. Since php version 4.3.0 (27-Dec-2002) you
don't need an http server for running php scripts.

> I personally would think that just running the php scripts locally on
> the system would be a better idea. Any (dis)advantages to using either?

The only disadvantage is the time required for refactoring legacy code.
Received on 2007-10-09