Is php a programming language?

Any other programming language that is not covered in the Web Scripting category.

Is php a programming language?

yes
39
59%
no
14
21%
Selket is an idiot
13
19%
 
Total votes : 66

Postby bart416 on Fri Apr 28, 2006 6:17 pm

Amarel wrote:PHP is a programming language because are functions.

Thats the worst statement ever that doesn't make sense.
PHP is mainly Server Side Scripting

PHP = Scripting
bart416
Valued Member
Valued Member
 
Posts: 164
Joined: Fri Sep 30, 2005 6:50 pm

Postby pcweirdo on Sat Apr 29, 2006 10:55 am

bart416 wrote:
Amarel wrote:PHP is a programming language because are functions.

Thats the worst statement ever that doesn't make sense.
PHP is mainly Server Side Scripting

PHP = Scripting
http://en.wikipedia.org/wiki/List_of_paradoxes
http://www.google.com.au/search?q=learn+grammar&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official
http://www.englishdaily626.com/grammar.php

-pcweirdo.
I love logic, therefore a polar bear is gay and I am the President. Or I'm thinking too much. I love this website.
pcweirdo
Contributer
Contributer
 
Posts: 58
Joined: Mon Aug 29, 2005 11:26 pm
Location: Melbourne, Australia

Postby selket on Wed May 03, 2006 12:36 am

Sometimes I get angry at other people's superior methods and write Makefiles to call Perl scripts to compile my own homebrew jibberish into PHP code. Does that make my jibberish a "programming language" and PHP a "scripting language", like machine code? Maybe, but I never was very good at logic.


Yes. Your Jiberish is a programming language, you wrote a Your Jiberish compiler in Perl, and php is is a tokenized executable.

Therefore:
Your Jiberish = programming language
Perl = compiler
gcc = compiler
gcc is written in c
Perl is written in c
php is written in c
c was written in fortran

I had a point but then I lost it.
selket
Contributer
Contributer
 
Posts: 44
Joined: Sat Apr 15, 2006 11:59 pm
Location: Chicago, IL

Postby Lattyware on Wed May 03, 2006 3:37 pm

I voted yes, Allthough I don't really know the technicalities of it.

I just think PHP is a great language.
Lattyware
Contributer
Contributer
 
Posts: 23
Joined: Mon May 01, 2006 5:46 pm

Postby bart416 on Wed May 03, 2006 7:15 pm

selket wrote:
Sometimes I get angry at other people's superior methods and write Makefiles to call Perl scripts to compile my own homebrew jibberish into PHP code. Does that make my jibberish a "programming language" and PHP a "scripting language", like machine code? Maybe, but I never was very good at logic.


Yes. Your Jiberish is a programming language, you wrote a Your Jiberish compiler in Perl, and php is is a tokenized executable.

Therefore:
Your Jiberish = programming language
Perl = compiler
gcc = compiler
gcc is written in c
Perl is written in c
php is written in c
c was written in fortran

I had a point but then I lost it.


C isn't written in fortran Neutral
Thats an even worse statement Neutral

C isn't written in anything.
C is a programming language specefication.
A compiler needs to read the code using the standart C libraries and convert it to Assembly. The Assembly code is then converted to machine language and then a linker puts all the 'parts' on a 'line'.
And writes it to a storage device.

GCC is written in C
PHP is based of the Zend Engine that was mainly written in C++ if i don't mistake.
Perl is written in C and maybe newer versions in C++

Perl & PHP aren't compilers
Perl & PHP are interpreters.
PHP started of as a set of Perl functions actually.
Perl and PHP have a lott in common.
Well had, PHP 5 is definate break from Perl in my opinion.
Since PHP 3, PHP is stand-alone.

PHP works like this:

1)Read in script
2)Convert it to some other language that parses faster
3)IF errors occured: STOP; Else go on
4)Parse script & write output, on error stop execution immediatly and don't return 0 (What kind a stands for Execution went perfect)

Perl works on a similar way but Perl is rather robust and has a lott more power in its core. Perl was designed for consoles.
PHP was designed as server side scripting language for web pages.

And Perl is indeed the compiler in this case.
But nothing else is the compiler. Except GCC that compiled Perl & PHP and the older GCC compiled the new GCC but thats another story Razz

And pcweirdo, one thing that i want to say to you: GFKY
If you want to insult people like this then you don't need to post on a forum in my opinion. Basicly its annoying and you're shouting at somebody that allready has problems writing his own language cause of a language disorder he has.
bart416
Valued Member
Valued Member
 
Posts: 164
Joined: Fri Sep 30, 2005 6:50 pm

Postby De Kus on Wed May 03, 2006 11:24 pm

bart416 wrote:C isn't written in fortran Neutral
Thats an even worse statement Neutral

C isn't written in anything.
Actually you could say, C is written in C Very Happy. At least glibc which is afaik the core of C used by GCC is mainly based on C and probably some assembler.

@Topic:
you can, as you can see, debate on that for hours. It depends on the end of the definiton of scripting and programming language.

Imho would be a scripting language one that is directly interpreted and not compiled into bytecode. Since PHP is first compiled into bytecode (btw. like most of the other "scripting languages" like perl, tcl, etc. too) and then executed, so you should be able to savely call it a programming language.
Image
User avatar
De Kus
Phoenix Veteran
Phoenix Veteran
 
Posts: 305
Joined: Mon Mar 14, 2005 2:15 pm
Location: Germany

Postby sigchld on Thu May 04, 2006 12:11 am

De Kus wrote:Imho would be a scripting language one that is directly interpreted and not compiled into bytecode. Since PHP is first compiled into bytecode (btw. like most of the other "scripting languages" like perl, tcl, etc. too) and then executed, so you should be able to savely call it a programming language.


and what compiler is that? i havent heard about php compilers just yet. maybe you mean to say, pass it on an interpreter. programming != scripting,

coding-----programming
|
|
scripting

does it make sense? i cant make ascii diagrams here lol
your future depends on your dreams...so go to sleep.
sigchld
Contributer
Contributer
 
Posts: 38
Joined: Sat Apr 22, 2006 7:04 pm
Location: Philippines

Postby pcweirdo on Thu May 04, 2006 3:19 pm

sigchld wrote:i cant make ascii diagrams here lol
There's a code tag if that helps. Sometimes it makes everything neatly line up.

For example:
Code: Select all
Coding
|
+- Programming
|      |
|      +- I love ASCII
|
+- Scripting
|
+- Downloading porn

  (/(/
  ('.')
`(__)'
Come to think of it, the code tag doesn't do that much. I suppose what you need is a monospace font.

For one particular PHP "compiler": http://www.roadsend.com/home/index.php? ... D=compiler

-pcweirdo.
I love logic, therefore a polar bear is gay and I am the President. Or I'm thinking too much. I love this website.
pcweirdo
Contributer
Contributer
 
Posts: 58
Joined: Mon Aug 29, 2005 11:26 pm
Location: Melbourne, Australia

Postby frankst0 on Tue May 16, 2006 8:55 pm

I have always regarded it as a programming language, even though technically speaking its a scripting language.
frankst0
Newbie
Newbie
 
Posts: 15
Joined: Tue May 16, 2006 7:53 pm

Postby Tavy on Tue May 16, 2006 10:42 pm

PHP is a programming language, but it's made for the web and it does that well.
Lisp is a programmer amplifier.
Beth ydy Iţkuîl yn Gymraeg?
Linguistics Thingey
თავი
Tavy
Contributer
Contributer
 
Posts: 65
Joined: Sun May 14, 2006 11:30 pm

Postby bluebell on Thu May 18, 2006 8:09 am

PHP Server-Side Scripting Language. PHP stands for PHP Hypertext Preprocessor.

PHP started as a quick Perl hack written by Rasmus Lerdorf in late 1994. I went to school with one of the Zend author of..Infact we took the course for "designing programming languages" together. He told me that from php4 , PHP satisfies all the criterias for calling itself a self sustained programming language. It was a scripting language but it evolved into a language.

Though most of us use php for serverside "scripting" , it can be very well written to solve a complex solution to a problem which "need not" have anything to do with the web.
bluebell
Contributer
Contributer
 
Posts: 31
Joined: Wed Mar 29, 2006 2:38 am

Postby bart416 on Sat May 20, 2006 7:04 am

De Kus wrote:
bart416 wrote:C isn't written in fortran Neutral
Thats an even worse statement Neutral

C isn't written in anything.
Actually you could say, C is written in C Very Happy. At least glibc which is afaik the core of C used by GCC is mainly based on C and probably some assembler.

@Topic:
you can, as you can see, debate on that for hours. It depends on the end of the definiton of scripting and programming language.

Imho would be a scripting language one that is directly interpreted and not compiled into bytecode. Since PHP is first compiled into bytecode (btw. like most of the other "scripting languages" like perl, tcl, etc. too) and then executed, so you should be able to savely call it a programming language.


It goes this way:
The first OS was written in machine language by a human.
Very simple thing.
They also made a compiler for that OS.
And wrote a new more advanced compiler and so on.
Assembly was probably the first language that was possible after machine language.

Anyway, small part of the history of C:
The initial development of C occurred at AT&T Bell Labs between 1969 and 1973; according to Ritchie, the most creative period occurred in 1972. It was named "C" because many of its features were derived from an earlier language called "B." Accounts differ regarding the origins of the name "B": Ken Thompson credits it as being a stripped down version of the BCPL programming language, but he had also created a language called Bon in honor of his wife Bonnie.

(From Wikipedia)


Anyway, PHP isn't really compiled in most cases.
Actually most php 'compilers' tend to put the code in a storage array and just throw it trough the php parser that is build into it.
bart416
Valued Member
Valued Member
 
Posts: 164
Joined: Fri Sep 30, 2005 6:50 pm

Postby zenobia on Tue May 23, 2006 5:28 pm

Perl Monks: PHP - it's "training wheels without the bike" -- Randal L. Schwartz

couldnt agree more.
zenobia
Newbie
Newbie
 
Posts: 17
Joined: Tue May 23, 2006 4:57 pm

Postby mix25 on Sat May 27, 2006 3:11 pm

YES and there isnt discusion
mix25
Contributer
Contributer
 
Posts: 23
Joined: Wed Apr 12, 2006 4:08 pm

Postby royteeuwen on Sat Jun 10, 2006 3:22 pm

lol, yea php is a language , why wouldn't it be
royteeuwen
Contributer
Contributer
 
Posts: 24
Joined: Sat Jun 10, 2006 3:03 pm

PreviousNext

Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron