PHP front end triggering async perl scripts

Mike mike at atn-networks.nl
Wed Jul 5 09:06:46 UTC 2006


Gary Stainburn schreef:
> Hi folks.
>
> I've got a need to fire off a background perl script from PHP in apache.
>
> I've got as part of my web site a page used to upload and process data from 
> 3rd parties, most of which I can process within the script iteself.
>
> However, I now have to upload an excel spreadsheet in xml format that is 
> approx 11MB in size and using it to do quite a bit of SQL work.
>
> The idea is that I write the code in perl and then after PHP has completed the 
> file upload, call the perl in the background passing the filename.
>
> Has anyone got any advice or gochas I should know about?
>
> Gary
>   
Hey Gary,

there are multiple ways to execute perl scripts form php:

http://nl3.php.net/manual/nl/function.passthru.php
http://nl3.php.net/manual/nl/function.exec.php
http://nl3.php.net/manual/nl/function.system.php

And some more, but these will do

Mike

-- 
ATN Networks
Dirk de Derdelaan 215
3132 HE VLAARDINGEN
url: www.atn-networks.nl
mail: mike at atn-networks.nl
mobiel: 06 - 28 11 49 91

Voor al uw hostinggebonden oplossingen




More information about the users mailing list