[PHP] Re: PHP and Perl

2005-07-23 Thread Jasper Bryant-Greene

Linda H wrote:
I am needing to write a front end for an online application written in 
Perl. Is there a way for PHP to call a module or function written in Perl?


Firstly, please don't reply to existing threads with a completely new 
topic. For those of us that use threaded newsreaders, your message is 
hidden within another thread and is very likely to be missed.


In this situation I would simply use the PHP execution functions 
(exec(), system(), shell_exec(), etc.) to call Perl scripts that use the 
modules or functions written in Perl.


Jasper

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



[PHP] Re: PHP vs PERL - thanks

2004-04-22 Thread David Scott
I'm currently getting my feet wet with Perl and PHP. It's good many 
people replied with it's your preference so as not to get into a flame 
war and to remain open about the matter. However, I don't see that as 
being very helpful because Perl !== PHP, obviously.

Here's what I've come across so far,
*It was a lot quicker for me to learn to develop a web app. in PHP.
*It was a lot quicker for me to learn to develop a console app in Perl.
*Perl tends to generate HTML pages from a program whereas PHP tends to 
process inline.
*Slashdot uses Perl, http://slashdot.org/
*LiveJournal uses Perl, http://www.livejournal.com/
*SourceForge uses PHP, http://sourceforge.net/
*Wikipedia uses PHP, http://en.wikipedia.org/
Of course, there are many sites written in both. However, those are, I 
hope, popular examples, so that you can gauge for yourself.

I understand that graphical applications can be written in PHP with 
GTK+, but I have yet to find a decent one. Frozen Bubble, however, is 
the bomb and was written in Perl: http://www.frozen-bubble.org.

Nonetheless, I've found more useful web apps written in PHP,
*Squirrelmail
*PHPBB
SourceForge is an excellent site to compare and contrast the two. Just 
take a look at what projects are being done in each language. Of course, 
what you can do in one can be done in the other which is why so many 
people say it boils down to religion. But that doesn't mean you 
shouldn't shop around before settling in on your religion.

[EMAIL PROTECTED] wrote:

Got a lot of good replies, and info!
Thanks,
JP
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Re: PHP vs Perl for system scripts (non-web)

2003-01-27 Thread Alex
If you like php better, i'd stick with it; however, for almost all of my
un-web-related stuff, i use perl.

i'm pretty sure they would run at about the same speeds/efficency.

Paul Chvostek [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 I have to write a swath of code to manage system-related stuff based on
 database content.  Scripts will be run as root by cron, and determine
 what they have to do via user interaction and SQL lookups.  Functions
 will include manipulation of system configuration files, legacy text
 file configs, and some signalling with posix_kill.  On some of the
 machines in question, there won't even be an httpd installed, so I'd be
 building a php as a standalone binary, and running it with shell magic
 and a -q option.  I've done this kind of stuff in the past in smaller
 environments, and it seems to work nicely.

 I'm more comfortable writing stuff in PHP.  I use PHP alot more, and I
 find the resultant code more readable and easier to maintain.  Aside
 from Perl's ubiquity and the dubious advantage of future flexibility by
 using Perl's DBI interface to talk to different SQL servers (I'm using
 MySQL at the moment), are there any compelling reasons I should write
 system stuff in Perl rather than PHP?

 Thanks.

 --
   Paul Chvostek [EMAIL PROTECTED]
   Operations / Abuse / Whatever
   it.canada, hosting and development   http://www.it.ca/




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




[PHP] Re: PHP vs Perl for system scripts (non-web)

2003-01-27 Thread Philip Hallstrom
Unless you've got a compelling reason to switch to Perl, I wouldn't.  I
like Perl, but like you have used PHP a lot more often in the last couple
of years.

Where I find it really nice is when my cron scripts need to use the same
libraries as my web scripts...

-philip

On Mon, 27 Jan 2003, Paul Chvostek wrote:


 I have to write a swath of code to manage system-related stuff based on
 database content.  Scripts will be run as root by cron, and determine
 what they have to do via user interaction and SQL lookups.  Functions
 will include manipulation of system configuration files, legacy text
 file configs, and some signalling with posix_kill.  On some of the
 machines in question, there won't even be an httpd installed, so I'd be
 building a php as a standalone binary, and running it with shell magic
 and a -q option.  I've done this kind of stuff in the past in smaller
 environments, and it seems to work nicely.

 I'm more comfortable writing stuff in PHP.  I use PHP alot more, and I
 find the resultant code more readable and easier to maintain.  Aside
 from Perl's ubiquity and the dubious advantage of future flexibility by
 using Perl's DBI interface to talk to different SQL servers (I'm using
 MySQL at the moment), are there any compelling reasons I should write
 system stuff in Perl rather than PHP?

 Thanks.

 --
   Paul Chvostek [EMAIL PROTECTED]
   Operations / Abuse / Whatever
   it.canada, hosting and development   http://www.it.ca/


 --
 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




[PHP] Re: PHP and Perl script in same file?

2001-08-18 Thread Richard Lynch

 Can php and perl code reside in the same file? When the document is served
 up it parses the PHP and then the Perl?

No.

Apache does not allow stacked handlers.

Actually, Apache 2.0 was to offer this feature, IIRC.  Dunno if it made it
through the process though... http://apache.org

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: PHP vs Perl Question

2001-07-18 Thread Tom Malone

I haven't been to Barnes  Noble yet, so I'm not sure if I will get the
O'Reilly or the Wrox book yet, but supposing I went with O'Reilly, I wonder
which would be better: Learning Perl 3rd Edition, or Learning Perl on Win32
Systems? I don't have much experience with Unix or Linux (minimal), but on
the other hand, I use Windows ME, not NT. Also, I wonder if the Learning
Perl on Win32 book might not me geared more towards NT administrators (I'm a
web designer). Sorry this is so OT, but I really need to know and you people
are the experts.

Tom


I'd go for it. Perl can be messy, but it is also quite powerful and
doesn't HAVE to be messy. It is EVERYWHERE both in terms of availability
and use. But most of all, it is a fun language to play with... and if you
do any system admin it is an indispensable tool.

I recommend _Beginning Perl_ from Wrox over _Learning Perl_ by O'Reilly,
but only by a hair. Both are good.

c


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Re: PHP vs Perl Question

2001-07-18 Thread Francis Fillion

Well then, maybe you don't have/need to learn perl, perl is a pretty
good language for system administration of any sort, if you were on
Unix/Linux well yes of course but on WIndows. I think the better things
for you is to learn PHP and know everythings about it. If you have to
use time for php and perl, you will lose your time, begin with php and
after that if you want to learn perl go for it.

Tom Malone wrote:
 
 I haven't been to Barnes  Noble yet, so I'm not sure if I will get the
 O'Reilly or the Wrox book yet, but supposing I went with O'Reilly, I wonder
 which would be better: Learning Perl 3rd Edition, or Learning Perl on Win32
 Systems? I don't have much experience with Unix or Linux (minimal), but on
 the other hand, I use Windows ME, not NT. Also, I wonder if the Learning
 Perl on Win32 book might not me geared more towards NT administrators (I'm a
 web designer). Sorry this is so OT, but I really need to know and you people
 are the experts.
 
 Tom
 
 I'd go for it. Perl can be messy, but it is also quite powerful and
 doesn't HAVE to be messy. It is EVERYWHERE both in terms of availability
 and use. But most of all, it is a fun language to play with... and if you
 do any system admin it is an indispensable tool.
 
 I recommend _Beginning Perl_ from Wrox over _Learning Perl_ by O'Reilly,
 but only by a hair. Both are good.
 
 c
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
Francis Fillion, BAA SI
Broadcasting live from his linux box.
And the maintainer of http://www.windplanet.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]