Re: php/other language (perl)

From: Date: Thu, 24 Feb 2005 17:35:33 +0000
Subject: Re: php/other language (perl)
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-38663@lists.php.net to get a copy of this message
* Mel List_php <list_php@hotmail.co.uk>: > Thanks for the tip Robby! (on my way I even found a soap pear package but > that's an other story...) > I had a look at it, but it works only with php5, and I'm hosted on php4. So > even if I can use it locally I won't be able to use it on line. > So I'm back at my starting point..... > > My question was has somebody here ever done an "hybrid" application, with > perl and php? Is there a way of doing it without going through the "system" > command? If not how can I ensure the security of that call? Is there > something obvious here that I'm missing? You mentioned SOAP in your fist paragraph... That's the route I'd go. Create a perl SOAP server that talks to your Bioperl application, set up some methods that can be called, and then have PHP make a SOAP request of that server when it needs data from the perl process. That way you can validate data before making the SOAP call, and the SOAP server can handle the input gracefully and return results to PHP -- including error messages (for instance, if a call fails, or if not enough input was received). > >From: Robby Russell <robby@planetargon.com> > >To: mel list_php <list_php@hotmail.co.uk> > >CC: php-db@lists.php.net > >Subject: Re: [PHP-DB] php/other language (perl) > >Date: Wed, 23 Feb 2005 06:22:17 -0800 > > > >On Wed, 2005-02-23 at 10:54 +0000, mel list_php wrote: >> > Hi, >> > >> > I'm used to work with php/MySQL, and have developped a web app in php. >> > As I'm working on biological applications, I would like to use some of > >the >> > BioPerl features. >> > My first idea was calling perl through php (system command). But I'm >> > wondering about the security issues, as some data (for example > >sequences) >> > will be entered by my users, and I don't really know if safe_mode can > >help >> > me here. >> > My second idea was to make a kind of hybrid application, keeping the php >> > structure that is already implemented and adding just some pages in > >perl. >> > I don't know if this is possible, first to use the both at the same > >time, >> > then they both will have to connect to the database. >> > >> > Does anybody here has any experience of that kind of thing or could > >point me >> > to a doc? >> > Thanks a lot. >> > > > > >Try this perhaps: http://pecl.php.net/package/perl > > > >-- > >/*************************************** > >* Robby Russell | Owner.Developer.Geek > >* PLANET ARGON | www.planetargon.com > >* Portland, OR | robby@planetargon.com > >* 503.351.4730 | blog.planetargon.com > >* PHP/PostgreSQL Hosting & Development > >* --- Now hosting Ruby on Rails Apps --- > >****************************************/ > > > >-- > >PHP Database Mailing List (http://www.php.net/) > >To unsubscribe, visit: http://www.php.net/unsub.php > > > > _________________________________________________________________ > It's fast, it's easy and it's free. Get MSN Messenger today! > http://www.msn.co.uk/messenger -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association | http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:matthew@garden.org | http://vermontbotanical.org

« previous php.db (#38663) next »