[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
Re: 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]
>
>
> ------------------------ Yahoo! Groups Sponsor
> ---------------------~-->
> Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
> Printer at MyInks.com. Free s/h on orders $50 or more to the US &
> Canada.
> http://www.c1tracking.com/l.asp?cid=5511
> http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/IBOolB/TM
> ---------------------------------------------------------------------
> ~->
>
> 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/
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content and is believed to be clean
>
--
This message has been scanned for viruses and
dangerous content and is believed to be clean
Home |
Main Index |
Thread Index
|