Perl and PHP in general

R

richardfangnail

Is it true that the main advantage of using Perl or PHP is in making
forms for web pages?
Is that the basic gist of it?
Is that also true of Javascript?
 
D

David Squire

Is it true that the main advantage of using Perl or PHP is in making
forms for web pages?
Is that the basic gist of it?
Is that also true of Javascript?

No, no and no.

Forms for web pages are made using HTML.

DS
 
R

richardfangnail

David said:
No, no and no.

Forms for web pages are made using HTML.

DS

What are the most common usages of Perl or PHP which you cannot do with
HTML?
 
S

Sherm Pendley

What are the most common usages of Perl or PHP which you cannot do with
HTML?

By far the most common usage of Perl, that cannot be done with HTML, is
to write programs.

sherm--
 
J

J. Gleixner

Mirco said:
Although for PHP it is obviously true (you won't
and can't use PHP for anything else), [...]

PHP is a scripting language. True, it's focus is to handle Web-related
tasks, however it may be used for all sorts of things that have nothing
to do with the Web/HTTP.
 
B

Ben Bullock

What are the most common usages of Perl or PHP which you cannot do with
HTML?

In the context of the world wide web, Perl is used, for example, to process
the data input by forms, or as an interface between the web server and a
database. PHP is similar but more popular than Perl for WWW applications.
The forms are usually written in HTML and then the inputs of the forms are
passed to a Perl program. PHP can be embedded in HTML.

The reason to use Perl or PHP rather than HTML is that HTML has no control
flow. For example, it is impossible to do a branch (an "if" statement) in
HTML.
 
J

Jürgen Exner

What are the most common usages of Perl or PHP which you cannot do
with HTML?

I know nothing about PHP but Perl is typically used to write programs while
HTML is used to describe text. I do not quite understand where you got the
idea that Perl and HTML have anything in common at all or that HyperText
Markup Language is a programming language to begin with.

Your question is like asking what is the most common usage of a pen that you
cannot do with a newspaper. Dude, it's writing maybe?

jue
 
J

John Bokma

Ben Bullock said:
What are the most common usages of Perl or PHP which you cannot do
with HTML?

In the context of the world wide web, Perl is used, for example, to
process the data input by forms, or as an interface between the web
server and a database. PHP is similar but more popular than Perl for
WWW applications. The forms are usually written in HTML and then the
inputs of the forms are passed to a Perl program. PHP can be embedded
in HTML.[/QUOTE]

Not really, it's more that the HTML is embedded in PHP, since PHP is used
to parse the whole thingy.
The reason to use Perl or PHP rather than HTML is that HTML has no
control flow. For example, it is impossible to do a branch (an "if"
statement) in HTML.

IE has conditional comments :-D
 
J

John Bokma

Lionel said:
Is this another MS idea that makes life painful for the rest of us?

*sigh* Both Netscape and MS have added horrible bad ideas to HTML, and
maybe you can even blame W3C for some major bad ideas in some of their
recommendations (which some call standards...).

Actually conditional comments are not a bad idea, it's way better then
relying on CSS hacks.

So instead of croaking with the other clueless frogs in the mud, educated
yourself.
 
L

Lionel

John said:
*sigh* Both Netscape and MS have added horrible bad ideas to HTML, and
maybe you can even blame W3C for some major bad ideas in some of their
recommendations (which some call standards...).

Actually conditional comments are not a bad idea, it's way better then
relying on CSS hacks.

So instead of croaking with the other clueless frogs in the mud, educated
yourself.

I'll educateD myself when it's worthwhile. It doesn't matter if some of
these things are a good idea or not, as long as there are standards it
makes for a smoother experience for all ;).

Lionel.
 
J

John Bokma

Lionel said:
I'll educateD myself when it's worthwhile. It doesn't matter if some
of these things are a good idea or not, as long as there are standards
it makes for a smoother experience for all ;).

And there you go wrong again: W3C hasn't published a single standard. They
publish recommendations and drafts. They are just a bunch of people from
various companies and institutions writing up some articles. And yes, some
are badly written, have mistakes, and others probably shouldn't have been
published in their current form in the first place.

Yet many people think they are a good thing, and keep calling their
publications "web standards".

Their is a web standard, it's called ISO HTML.

Guess what the S stands for...

Moreover, still some companies are able to have badly thought out ideas
added and implemented. The latest miracle comes from google, the nofollow
value that one can use with the rel attribute of the a element.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top