[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
Re: Starting a batch file from a webpage...
Soz been ignoring mail :
Try this : http://www.php.net/manual/en/function.set-time-limit.php
Try the Apache timeout.
If no joy create a .bat file that does nothing but sleep
----- Original Message -----
From: <mailinglists@xxxxxxx>
To: <ukha_d@xxxxxxx>
Sent: Sunday, December 07, 2003 11:29 PM
Subject: RE: [ukha_d] Starting a batch file from a webpage...
> Chaps,
>
> The 'php_set_timeout(0)' fails with a fatal error: Call to undefined
> function. I'm running v4.3.1 is this new enough?
>
> The "system('start mybatchfile.bat)" seems to start
something, and the
> browser progress bar v.slowly creeps up and then stops....
>
> Any more ideas?
> Cheers,
> Lee
>
> -----Original Message-----
> From: Ross McKillop [mailto:home@xxxxxxx]
> Sent: 07 December 2003 10:23
> To: ukha_d@xxxxxxx
> Subject: Re: [ukha_d] Starting a batch file from a webpage...
>
>
> This might work
>
> <?php
> php_set_timeout(0);
> system('mybatchfile.bat;');
> ?>
>
> If not, what version of PHP do you have installed as the various
> timeout things change in newer versions
> --
> Ross McKillop
> On 7 Dec 2003, at 02:01, <mailinglists@xxxxxxx> wrote:
>
> > Ross/Justin,
> >
> > I've tried both directions, but the batch file takes 10mins to
run, so
> > the
> > webpage times out, which I think kills the run.
> > I've looked around and tried a few things but I can't get it to
fork a
> > seperate process and return a 'job started page'.
> >
> > Any ideas?
> > -----Original Message-----
> > From: Ross McKillop [mailto:home@xxxxxxx]
> > Sent: 06 December 2003 12:21
> > To: ukha_d@xxxxxxx
> > Subject: Re: [ukha_d] Starting a batch file from a webpage...
> >
> >
> > Alternatively, with PHP
> > <?php
> > system('mybatchfile.bat');
> > ?>
> >
> > if you want the output to be visible
> > <?php
> > echo system('mybatchfile.bat');
> > ?>
> >
> > Ross
> >
> > --
> > Ross McKillop
> > On 6 Dec 2003, at 09:18, Justin wrote:
> >
> >> You should be able to place a batch file in your CGI folder
and run
it
> >> from a link etc.
> >>
> >> Justin.
> >>
> >> Quoting mailinglists@xxxxxxx:
> >>
> >>> I'd like to kick off a dos batch file from a
button/link on a
> >>> webpage, this
> >>> has been discussed before using ASP, but as I don't run
IIS/ASP, I'd
> >>> like
> >>> to
> >>> do the same from Apache maybe using PHP/Perl ???
> >>> Any ideas?
> >>>
> >>> Cheers,
> >>> Lee
> >
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
> UKHA 2004: 15th and 16th May 2004
>
> http://www.automatedhome.co.uk
> Post message: ukha_d@xxxxxxx
> Subscribe: ukha_d-subscribe@xxxxxxx
> Unsubscribe: ukha_d-unsubscribe@xxxxxxx
> List owner: ukha_d-owner@xxxxxxx
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Home |
Main Index |
Thread Index
|