473,387 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

perl and php

Bob
why is perl referred to as a CGI script and not php,

php has the facility to execute backticked execute commands that enable the
programmer to use operating system facilities as well ?

why would you bother with perl when you can use PHP which is far easier than
that other bloody language.
Jul 17 '05 #1
10 1868
Bob wrote:

Hee Bob
why is perl referred to as a CGI script and not php,
Don't know.
Is that the case?

php has the facility to execute backticked execute commands that enable
the programmer to use operating system facilities as well ?
yes it has.

why would you bother with perl when you can use PHP which is far easier
than that other bloody language.


You don't.
I started out with Perl and wasn't very charmed by it.
Why not?
Because Perl uses a lot of syntax and logic unknown to me (at that time)
based on Shellscripting (like BASH and the like).

Perl is a very fast and very potent language, but if you are just learning
webdevelopment, and don't have a SHELL-background I would surely recommend
PHP these days.
Simply bacause Perl is harder to learn than PHP for most folks.

So stick with PHP. :P

Regards,
Erwin Moller

PS: What response did you expect posting to a PHP-ng?
Jul 17 '05 #2
In article <BF********************@nasal.pacific.net.au>, Bob wrote:
why is perl referred to as a CGI script and not php,
Perl, PHP and many other languages can communicate with the webserver
through CGI (Common Gateway Interface).

But nowadays most webservers have modules for php and perl to reduce
serverload.
php has the facility to execute backticked execute commands that enable the
programmer to use operating system facilities as well ?
What makes you think Perl would not have these?
why would you bother with perl when you can use PHP which is far easier than
that other bloody language.


LOL, you must be a troll.
--
http://home.mysth.be/~timvw
Jul 17 '05 #3
In article <BF********************@nasal.pacific.net.au>, Bob wrote:
why is perl referred to as a CGI script and not php,
Well, I perfer perl for programming in, I actually think it's more fun
and overall easier. tis also 5 X easier to shoot yourself in the foot
with perl. (But then, in PHP, certain security mistakes seem easier to
make, such as when talking to databases)
php has the facility to execute backticked execute commands that enable the
programmer to use operating system facilities as well ?
I believe PHP was actually _written_ in perl at first.
why would you bother with perl when you can use PHP which is far easier than
that other bloody language.


I wouldn't say PHP is any easier, but PHP is generally faster on the web
side. (unless you're using mod_perl) Perl is generally best on the back
side, (cron processes, etc..) PHP is nice because it has all kinds of
features specifically for web programming. Wouldn't normally use if for
a shell script though, that'd be kind of silly.

For you, I'd definately stick with PHP, since you obviously perfer it.

You might use perl if mod_perl is available and you really need the
added performance or low-level control. (Persistant variables that span
across web requests, not sessions..) mod_perl.. now.. THAT is
hard. :-)

You might use perl if PHP isn't available.

For heavy serious web stuff, I'd recommend Servlets/JSP. (But only if
you can run 1+ web servers, since JSP is not a very standard ISP
package, it's good for applications that might span several machines.)

For things that really need performance, I'd go with C++ (or even
C/assembly) But not if time-to-market is a concern.

For things that are pretty much limited to commands, go with shell or
REXX.

All depends on the requirements and what you like to work in. Why would
an artist use those foul smelling oil paints when they could use
watercolor?

Jamie
--
http://www.geniegate.com Custom web programming
User Management Solutions Perl / PHP / Java / UNIX

Jul 17 '05 #4
"Bob" <wh*********************@hotmail.com> wrote in message
news:BF********************@nasal.pacific.net.au.. .
why is perl referred to as a CGI script and not php,
PHP scripts usually do not communicate with the web server via CGI--that's
one reason.
why would you bother with perl when you can use PHP which is far easier than that other bloody language.


Two words: regular expression.
Jul 17 '05 #5
On Fri, 14 May 2004 19:47:21 -0400, "Chung Leong" <ch***********@hotmail.com>
wrote:
"Bob" <wh*********************@hotmail.com> wrote in message
news:BF********************@nasal.pacific.net.au. ..
why is perl referred to as a CGI script and not php,


PHP scripts usually do not communicate with the web server via CGI--that's
one reason.
why would you bother with perl when you can use PHP which is far easier

than
that other bloody language.


Two words: regular expression.


Although you get some of the benefit of Perl's powerful brand of regular
expressions through the PCRE functions in PHP.

I'm trying not to get pulled into the original troll though; but I use Perl
and PHP split across what is probably the usual lines, PHP for web stuff, and
Perl for more complex batch/offline processes. mod_perl+HTML::Template looks
more than a match for PHP+Smarty if it weren't for the pain of setting up
mod_perl to get the performance.

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #6
"Andy Hassall" <an**@andyh.co.uk> wrote in message
news:ag********************************@4ax.com...
Although you get some of the benefit of Perl's powerful brand of regular
expressions through the PCRE functions in PHP.


Perl's UTF8 support is far superior though.
Jul 17 '05 #7
On Sat, 15 May 2004 09:08:56 -0400, "Chung Leong" <ch***********@hotmail.com>
wrote:
"Andy Hassall" <an**@andyh.co.uk> wrote in message
news:ag********************************@4ax.com.. .
Although you get some of the benefit of Perl's powerful brand of regular
expressions through the PCRE functions in PHP.


Perl's UTF8 support is far superior though.


Indeed. Particularly with the improvements in 5.8.

--
Andy Hassall <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #8
Bob

"Tim Van Wassenhove" <eu**@pi.be> wrote in message
news:2g************@uni-berlin.de...
In article <BF********************@nasal.pacific.net.au>, Bob wrote:
why is perl referred to as a CGI script and not php,
Perl, PHP and many other languages can communicate with the webserver
through CGI (Common Gateway Interface).

But nowadays most webservers have modules for php and perl to reduce
serverload.
php has the facility to execute backticked execute commands that enable the programmer to use operating system facilities as well ?


What makes you think Perl would not have these?

I know for a fact perl does, why one more than the other.
why would you bother with perl when you can use PHP which is far easier than that other bloody language.


LOL, you must be a troll.


no it was a serious question.

--
http://home.mysth.be/~timvw

Jul 17 '05 #9
Bob

"Average_Joe" <jo*@geniegate.com> wrote in message
news:sl****************@pong.tunestar.net...
In article <BF********************@nasal.pacific.net.au>, Bob wrote:
why is perl referred to as a CGI script and not php,
Well, I perfer perl for programming in, I actually think it's more fun
and overall easier. tis also 5 X easier to shoot yourself in the foot
with perl. (But then, in PHP, certain security mistakes seem easier to
make, such as when talking to databases)


Is there a taint checking facility in PHP as there is in perl ?
php has the facility to execute backticked execute commands that enable the programmer to use operating system facilities as well ?
I believe PHP was actually _written_ in perl at first.
why would you bother with perl when you can use PHP which is far easier than that other bloody language.


I wouldn't say PHP is any easier, but PHP is generally faster on the web
side. (unless you're using mod_perl) Perl is generally best on the back
side, (cron processes, etc..) PHP is nice because it has all kinds of
features specifically for web programming. Wouldn't normally use if for
a shell script though, that'd be kind of silly.

For you, I'd definately stick with PHP, since you obviously perfer it.


too right, I found Perl's syntax for pattern matching and regular
expressions a pain in the butt.
You might use perl if mod_perl is available and you really need the
added performance or low-level control. (Persistant variables that span
across web requests, not sessions..) mod_perl.. now.. THAT is
hard. :-)

You might use perl if PHP isn't available.

For heavy serious web stuff, I'd recommend Servlets/JSP. (But only if
you can run 1+ web servers, since JSP is not a very standard ISP
package, it's good for applications that might span several machines.) Is it similar to ASP as I've not heard of JSP.

For things that really need performance, I'd go with C++ (or even
C/assembly) But not if time-to-market is a concern.

For things that are pretty much limited to commands, go with shell or
REXX.
Rexx ? You mean IBM mainframe Rexx ??

All depends on the requirements and what you like to work in. Why would
an artist use those foul smelling oil paints when they could use
watercolor?
foul smelling ?
have you never smelt gum turpentiine ?

Jamie
--
http://www.geniegate.com Custom web programming
User Management Solutions Perl / PHP / Java / UNIX

Jul 17 '05 #10
Bob wrote:
why is perl referred to as a CGI script and not php,


Do you mean "preferred"? If so, I believe it's because PHP is used as a
server module/plug-in in almost all situations it's used. If not, PHP,
or any language (C, Java, bash, whatever), _can_ be used/

Jul 17 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Mark Wilson CPU | last post by:
This must be easy, but I'm missing something... I want to execute a Perl script, and capture ALL its output into a PHP variable. Here are my 2 files: -------------------------------------...
31
by: surfunbear | last post by:
I've read some posts on Perl versus Python and studied a bit of my Python book. I'm a software engineer, familiar with C++ objected oriented development, but have been using Perl because it is...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
13
by: Otto J. Makela | last post by:
I'm trying to install to php the Perl-1.0.0.tgz package (from http://pecl.php.net/package/perl, enabling one to call perl libraries) to a pre-existing Solaris system. Unfortunately, the attempt...
6
by: surfivor | last post by:
I may be involved in a data migration project involving databases and creating XML feeds. Our site is PHP based, so I imagine the team might suggest PHP, but I had a look at the PHP documentation...
4
by: billb | last post by:
I installed a perl extension for PHP to use some perl inside my php primarily because I have perl working with oracle and not php and oracle. So I want to use my old perl scripts, and use the...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.