[PHP] run perl script with php

2004-07-22 Thread Tassos T
hello,
i faced a small problem i have a perl script but i want to execute that 
in a php script. unfortunately i cannot convert to php.

please advice.
regards
Tassos
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] run perl script with php

2004-07-22 Thread Marcus Bointon
on 22/7/04 10:42, Tassos T at [EMAIL PROTECTED] wrote:

 i faced a small problem i have a perl script but i want to execute that
 in a php script. unfortunately i cannot convert to php.

No problem, look at:

http://uk2.php.net/manual/en/function.system.php
http://uk2.php.net/manual/en/function.exec.php
http://uk2.php.net/manual/en/function.passthru.php

E.g. system('myperlscript.pl');

Marcus
-- 
Marcus Bointon
Synchromedia Limited: Putting you in the picture
[EMAIL PROTECTED] | http://www.synchromedia.co.uk

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] run perl script with php

2004-07-22 Thread John W. Holmes
Tassos T wrote:
i faced a small problem i have a perl script but i want to execute that 
in a php script. unfortunately i cannot convert to php.
virtual()
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals  www.phparch.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] run perl script with php

2004-07-22 Thread Fernando Michelotti
I never tried but i think it is possible using the pecl extension:
http://pecl.php.net/package/perl

Tassos T wrote:
hello,
i faced a small problem i have a perl script but i want to execute 
that in a php script. unfortunately i cannot convert to php.

please advice.
regards
Tassos
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] run perl script with php

2004-07-22 Thread Matt M.
 I never tried but i think it is possible using the pecl extension:
 
 http://pecl.php.net/package/perl

Here is a short tutorial
http://www.zend.com/php5/articles/php5-perl.php?print=1

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] run perl script with php

2004-07-22 Thread bruce
Tassos,

just what are you trying to do? if you're trying to run a perl app from a
commandline php function, that's one thing. if you're trying to create a
php/web based app, and you want to run an existing perl app that's sitting
on your server, that's another.

either way, it's possible/reasonably easy to run the perl app from within
php via what are called shell commands (exec/system/passthru). however, you
need to be aware of the process prviliege/permissions issues with regards to
the process that apache runs as, and the permissions/ownership of the
targeted perl app, as well as any file i/o that may occur within the perl
app...

people who tell you that it can't be done, don't have a deep knowledge of
what's possible... welcome to email lists.. where you might get what you pay
for!!!

-bruce


-Original Message-
From: Tassos T [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 22, 2004 2:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] run perl script with php


hello,

i faced a small problem i have a perl script but i want to execute that
in a php script. unfortunately i cannot convert to php.

please advice.

regards

Tassos

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] run perl script with php

2004-07-22 Thread raditha dissanayake
Matt M. wrote:
I never tried but i think it is possible using the pecl extension:
http://pecl.php.net/package/perl
   

Here is a short tutorial
http://www.zend.com/php5/articles/php5-perl.php?print=1
 

Hey thanks that looks very interesting indeed.

--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php