|
Posted by Andrew C on 11/16/06 09:23
"Terry" <nospam@aol.com> wrote in message
news:nospam-50934F.03540815112006@newsclstr02.news.prodigy.com...
>
> I'm using curl to invoke a php script on the same site/server. It works
> great, but if I call it again while it's still running, nothing happens.
>
> Why? Can that be fixed?
>
> Why use curl? To make it run in the background. My host can't use exec
> nor flush the output to the browser. But, I can use curl and timeout.
Sorry to hijack the thread, but I'm curious about your use of curl.
Recently, I've been vaguely trying to find a nice, portable way of running
background scripts on the web server (hopefully without any special server
set-ups or privileges). My efforts were predominantly centred around trying
to execute something along the lines of 'php bg.php' using back-ticks,
exec() and so on using various Unix redirection tricks, or 'start /b' under
Windows.
I've never used curl (I assume we're both talking about
http://curl.haxx.se/), and have only the slightest knowledge of what it's
for and how it works, but (to quote you) 'using curl to invoke a php script
[and] make it run in the background' caught my attention.
I don't suppose you could expand on your use of curl for running PHP scripts
in the background could you (or perhaps tell me that I've misunderstood)?
Thanks in advance for any info.
A.
Navigation:
[Reply to this message]
|