Go to Post Losing, like criticism, is the only thing that makes you improve. - MooreteP [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-12-2002, 12:09
Jack's Avatar
Jack Jack is offline
FIRST Scouting Network
AKA: Andrew Schenk
FRC #0201 (The FEDS)
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Rochester Hills
Posts: 643
Jack is a jewel in the roughJack is a jewel in the roughJack is a jewel in the rough
Send a message via AIM to Jack
php vs. perl

ok. Here's a quick (or not so quick ) question.

What is the difference between php and perl. No... I'm not that stupid, i understand that they are two different languages, but both have c like syntax and from what i tell, can do pretty much the same thing. I'm learning php right now, and will most likley learn perl soon, but i just wanted to know what the pros and cons of each are. Thanks
__________________
Team 201 - 2003 Great Lakes Semifinalists & 2003 Archimedes Division Finalists :|: Webmaster of www.feds201.com -> FBI Scouting
Winner of The 2003 ChiefDelphi Web Award for: User That Started The Most Non Chit Chat Threads
Winner of: 2003 FIRST Ventures with 5451.68 End Points

All about me: http://knehcsa.vze.com
**Check out the New FIRST Scouting Network**
  #2   Spotlight this post!  
Unread 21-12-2002, 12:10
Gadget470's Avatar
Gadget470 Gadget470 is offline
A Fire Outside
AKA: Brandon Joerges
no team (Alpha Omega)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2000
Location: Madison Heights, MI
Posts: 1,000
Gadget470 is a jewel in the roughGadget470 is a jewel in the roughGadget470 is a jewel in the roughGadget470 is a jewel in the rough
Send a message via ICQ to Gadget470 Send a message via AIM to Gadget470
Just give those both up and learn Pascal.
Someone once said Pascal will solve all the programming problems of the future
  #3   Spotlight this post!  
Unread 21-12-2002, 12:13
Jack's Avatar
Jack Jack is offline
FIRST Scouting Network
AKA: Andrew Schenk
FRC #0201 (The FEDS)
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Rochester Hills
Posts: 643
Jack is a jewel in the roughJack is a jewel in the roughJack is a jewel in the rough
Send a message via AIM to Jack
Quote:
Originally posted by Gadget470
Just give those both up and learn Pascal.
Someone once said Pascal will solve all the programming problems of the future
For the web?? - If so, it as least isn't what's big right now
--- Could someone answer my question though?
__________________
Team 201 - 2003 Great Lakes Semifinalists & 2003 Archimedes Division Finalists :|: Webmaster of www.feds201.com -> FBI Scouting
Winner of The 2003 ChiefDelphi Web Award for: User That Started The Most Non Chit Chat Threads
Winner of: 2003 FIRST Ventures with 5451.68 End Points

All about me: http://knehcsa.vze.com
**Check out the New FIRST Scouting Network**
  #4   Spotlight this post!  
Unread 21-12-2002, 12:24
AJ Quick's Avatar
AJ Quick AJ Quick is offline
Your Attention Please
FRC #0006 (CogSquad)
Team Role: Alumni
 
Join Date: Oct 2002
Rookie Year: 2001
Location: Minnesota
Posts: 464
AJ Quick has a spectacular aura aboutAJ Quick has a spectacular aura about
Well it isn't as simple as that.

PHP is nearly as feature packed, and can do just about everything Perl can do. It is much simpler and easier to use, but it isn't as capable as Perl.

I started using Perl, and well, I just really enjoy PHP much more.
__________________
-AJ Quick (Alum on Team 6)
http://www.HHSRobotics.com/

Place your attention entirely on my voice and try to ignore all the others. It is important to be able to focus on a single source of information while blocking out all the other things competing for your attention.

Last edited by AJ Quick : 21-12-2002 at 13:52.
  #5   Spotlight this post!  
Unread 21-12-2002, 12:33
Jack's Avatar
Jack Jack is offline
FIRST Scouting Network
AKA: Andrew Schenk
FRC #0201 (The FEDS)
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Rochester Hills
Posts: 643
Jack is a jewel in the roughJack is a jewel in the roughJack is a jewel in the rough
Send a message via AIM to Jack
Quote:
Originally posted by AJ Quick
Well it isn't as simple as that.

PHP is nearly as feature packed, and can do just about everything Perl can do. It is much simpler and easier to use, but it isn't as capible as Perl.

I started using Perl, and well, I just really enjoy PHP much more.
could you expand on the 'capible' part? Do you mean that it doesn't run code as fast or what? I must say that i find php very easy and i'll continue to use it. Just wanted to know if i should look into perl also.

Brandon, i remember you saying that the CD header was made in perl. Could you have done the same thing in php? - If so, why in perl?

Thanks
__________________
Team 201 - 2003 Great Lakes Semifinalists & 2003 Archimedes Division Finalists :|: Webmaster of www.feds201.com -> FBI Scouting
Winner of The 2003 ChiefDelphi Web Award for: User That Started The Most Non Chit Chat Threads
Winner of: 2003 FIRST Ventures with 5451.68 End Points

All about me: http://knehcsa.vze.com
**Check out the New FIRST Scouting Network**
  #6   Spotlight this post!  
Unread 21-12-2002, 12:46
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
Quote:
Originally posted by AJ Quick
I started using Perl, and well, I just really enjoy PHP much more.
Ditto.

Quote:
Originally posted by Jack
Brandon, i remember you saying that the CD header was made in perl. Could you have done the same thing in php? - If so, why in perl?
Our older server (before moving to Ventures Online) didn't have PHP installed. They did have Perl, though, so I wrote everything in Perl (forums, header, who-am-i, white papers, etc) You are correct -- you can do the same thing with PHP, and the header for the forums is in PHP. The header on the Alumni, Competition, History, and a few pages is still in Perl. One day I may change it around. Not right now though

I prefer PHP over Perl, only because i use PHP all day at work, and there are a few subtle differences that would drive me crazy moving back & fourth between languages.
__________________
Brandon Martus
e-mail
  #7   Spotlight this post!  
Unread 21-12-2002, 14:00
AJ Quick's Avatar
AJ Quick AJ Quick is offline
Your Attention Please
FRC #0006 (CogSquad)
Team Role: Alumni
 
Join Date: Oct 2002
Rookie Year: 2001
Location: Minnesota
Posts: 464
AJ Quick has a spectacular aura aboutAJ Quick has a spectacular aura about
Quote:
Originally posted by Jack
could you expand on the 'capible' part? Do you mean that it doesn't run code as fast or what? I must say that i find php very easy and i'll continue to use it. Just wanted to know if i should look into perl also.
Capable, not capible..

Well it is basically more down to ease of use, they both can do pretty much the same thing, it is just which one can do it in the shortest amount of space (code).

PHP does probably run faster than Perl, which is one reason why many will choose it over the other. I say don't waste your time in Perl, unless you just can't figure out how to do something in PHP. Also, if you are wanting to get into web programming, then it wouldn't hurt to know more perl, but I say don't worry about it.

Quote:
Posted By Brandon Martus
I prefer PHP over Perl, only because i use PHP all day at work, and there are a few subtle differences that would drive me crazy moving back & fourth between languages.
I agree, the differences are very small, but would make you go crazy. I seriously hardly remember Perl, I just phased it all out..

The eternal question of "Perl vs. PHP" has been going on forever, and ever..

http://www.google.com/search?q=%22ph...22perl+vs.+PHP
__________________
-AJ Quick (Alum on Team 6)
http://www.HHSRobotics.com/

Place your attention entirely on my voice and try to ignore all the others. It is important to be able to focus on a single source of information while blocking out all the other things competing for your attention.
  #8   Spotlight this post!  
Unread 21-12-2002, 19:50
mtaman02's Avatar
mtaman02 mtaman02 is offline
FIRST's Spare, Queuer & Tech guy =)
AKA: Mike M. / Mouse =)
no team (FRC Volunteer)
Team Role: Alumni
 
Join Date: Jun 2002
Rookie Year: 2001
Location: Staten Island, NYC
Posts: 1,504
mtaman02 has a brilliant futuremtaman02 has a brilliant futuremtaman02 has a brilliant futuremtaman02 has a brilliant futuremtaman02 has a brilliant futuremtaman02 has a brilliant futuremtaman02 has a brilliant futuremtaman02 has a brilliant futuremtaman02 has a brilliant futuremtaman02 has a brilliant futuremtaman02 has a brilliant future
Send a message via AIM to mtaman02 Send a message via Yahoo to mtaman02
K I'm not that bright of a person when it comes to web programming. After reding this web though I see that PHP is well liked and is used throughout this website design and creation.

My qustion is People use PHP and Pearl and PASCAL to do like web work, does this mean HTML is no longer used in writing a webpage or am i looking at all this the wrong way.
__________________
Past FIRST Robotics Events that I proudly volunteered at:
FLL: NY State Competition '03
FRC: NYC Remote Kickoff '04 & NYC Regionals '04-'15 ,'10-'13 & NJ Regionals '06-'10, Finger Lakes Regional '09 & SBPLI Regional '08-'15 and the World Championship in '05 (Galileo Field) '07 (Newton Field) '09 (Practice Fields Attendant / FTA(A)), CeBIT Convention in '04 & NextFEST in '06 both held @ the Javitts Center, Monty Madness '07-'10, Panda-monium '08, B.Eruption '08 & '09, Ramp Riot '08, PARC '09 & '10, BR^2 '09 & Wol. Inv. '09 -'15
2015 FIRST Robotics Off Season Events that I hope to volunteer at:
Where is Wolcott Invitational
2015 FIRST Robotics Events that I will be volunteering at:
SBPLI Reg. & Championships
Volunteer Resume:
Alt & Lead Team Queuer, Field Repair/Reset, Field Setup/Breakdown, Spare Parts Attendant, Field Power Controller/Score Keeper, Co-Emcee & Official Scorer, Control System Advisor, FIRST Tech Advisor Assistant & recently Practice Field Attendant.
  #9   Spotlight this post!  
Unread 21-12-2002, 21:38
AJ Quick's Avatar
AJ Quick AJ Quick is offline
Your Attention Please
FRC #0006 (CogSquad)
Team Role: Alumni
 
Join Date: Oct 2002
Rookie Year: 2001
Location: Minnesota
Posts: 464
AJ Quick has a spectacular aura aboutAJ Quick has a spectacular aura about
HTML is literally required (unless using some languages) to make a site work. Don't even bother with programming languages if you don't have HTML down. Perl, and PHP are known as server-side scripts, you still need the HTML to communicate with the webbrowser. In PHP code would look like this:

PHP Code:
<html>
<head>
<title>Hi</title>
</head>

<body>

<?php
echo "Hello World!";
?>

</body>
</html>
This would produce a blank page with just "Hello World!" written. Everything is HTML in that example, except for the things inside the PHP tags. You need HTML to do this kind of scripting... I haven't worked with Pascal so I don't know about that, but it is the same for Perl, and ASP.
__________________
-AJ Quick (Alum on Team 6)
http://www.HHSRobotics.com/

Place your attention entirely on my voice and try to ignore all the others. It is important to be able to focus on a single source of information while blocking out all the other things competing for your attention.

Last edited by AJ Quick : 21-12-2002 at 21:41.
  #10   Spotlight this post!  
Unread 21-12-2002, 23:18
Gadget470's Avatar
Gadget470 Gadget470 is offline
A Fire Outside
AKA: Brandon Joerges
no team (Alpha Omega)
Team Role: Alumni
 
Join Date: Jan 2002
Rookie Year: 2000
Location: Madison Heights, MI
Posts: 1,000
Gadget470 is a jewel in the roughGadget470 is a jewel in the roughGadget470 is a jewel in the roughGadget470 is a jewel in the rough
Send a message via ICQ to Gadget470 Send a message via AIM to Gadget470
Quote:
My qustion is People use PHP and Pearl and PASCAL to do like web work

Pascal isn't for web work, I was joking in my post. Pascal was for database programming and was the precursor to BASIC (Which is pretty much a streamlined Pascal with a few less features). Sorry for being misleading.

And on the PHP/Perl vs HTML, AJ's post is right, but some pages (mostly the freebies) are entirely in HTML. Also, Macromedia Flash is becoming a bigger part of web programming. Most pages that you see will be geocities.com/MyNeatPages50230/ or the like.
  #11   Spotlight this post!  
Unread 21-12-2002, 23:32
Jack's Avatar
Jack Jack is offline
FIRST Scouting Network
AKA: Andrew Schenk
FRC #0201 (The FEDS)
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Rochester Hills
Posts: 643
Jack is a jewel in the roughJack is a jewel in the roughJack is a jewel in the rough
Send a message via AIM to Jack
my $.02 -

There are three things (in my option) that make a good web page.

HTML - This handles what the site looks like. Makes it pretty and such thought style sheets and stuff like that. Also, any 'static' (or non-changing) stuff for the page will be here. File extentions: *.html *.htm - BTW: XML or xhtml or dhtml are all 'new' html like code. The problem with current html is that all browsers display the code differently. So... a web developer is forced to decide how much to rely on 'eye-candy' when some browsers won't support it. This all stems from the problem that back when (Al Gore built the web j/k ) the web began, the people that designed some of the first code never thought that the web would be used for what it is today. (IE: They thought it would be a text type network thing that schools/goverments would use to share data. NOT, where every person in the us would be viewing it with tons of graphics and 'eye-candy')

Client-side scripting - This is mostly JavaScript (JS). This will allow the client (or computer viewing the site) to run some script (or program ) to do a task. Example: (I'm using this because i see it right now) When you go to post a message on CD, it will run some checks using JS to see if you have enough or too much info. Some JS will check to see if you have a subject (in a new post) or some text in the post/reply box. Also, the vB code inserts the tags using JS. Main point: Client-side scripting is done on the computer viewing the site.

Server-side scripting - PHP, Perl, ASP This is a script (or code) that runs on the server BEFORE it is sent out to the client. This allows web developers to have 'dynamic' (or changing) data among other things. CD uses it because this way people can put up data, and others can view it and such. It is also used with on-line 'shoping carts' (with SSL (a secure connection)) and other things that require data to change. The advantage to this is because otherwise, the user would have to download ALL of the data and then have their client side scripting do all the sorting/other work. Not a good idea

Hope this helped all. (PS: Learning computer programming is easy - I didn't know php 3 months ago, and now i'm writing a major mod using it for my site ) - HTML is also very easy. It has a simple syntax. However, when you want to start to have cool looking things, then it gets a little harder with CSS and things like that)

Jack

BTW: Flash is also becoming big. However, flash is just a type of animation that is integrated into websites. Not really a programming language.
__________________
Team 201 - 2003 Great Lakes Semifinalists & 2003 Archimedes Division Finalists :|: Webmaster of www.feds201.com -> FBI Scouting
Winner of The 2003 ChiefDelphi Web Award for: User That Started The Most Non Chit Chat Threads
Winner of: 2003 FIRST Ventures with 5451.68 End Points

All about me: http://knehcsa.vze.com
**Check out the New FIRST Scouting Network**

Last edited by Jack : 21-12-2002 at 23:35.
  #12   Spotlight this post!  
Unread 22-12-2002, 02:20
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
Well said, Jack. I just have one thing to add.

Quote:
Originally posted by Jack
Client-side scripting is done on the computer viewing the site.
Don't 100% rely on client-side scripting for important restrictions & data verification. It's nice to have it on the client side to catch any mistakes before the data is sent -- but make sure you check the data when it gets to the server as well. People can bypass any type of javascript & validation on their end.
__________________
Brandon Martus
e-mail
  #13   Spotlight this post!  
Unread 22-12-2002, 12:00
Jack's Avatar
Jack Jack is offline
FIRST Scouting Network
AKA: Andrew Schenk
FRC #0201 (The FEDS)
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Rochester Hills
Posts: 643
Jack is a jewel in the roughJack is a jewel in the roughJack is a jewel in the rough
Send a message via AIM to Jack
Quote:
Originally posted by Brandon Martus
Well said, Jack. I just have one thing to add.



Don't 100% rely on client-side scripting for important restrictions & data verification. It's nice to have it on the client side to catch any mistakes before the data is sent -- but make sure you check the data when it gets to the server as well. People can bypass any type of javascript & validation on their end.
You bet ya. All I use JS for is pretty things or... to tell someone they have an error. It all must be checked again on the server. I'd hate to think of a world where all validation was done on the client.

Hmmm... Ahh... I think i'll be an admin today (tells the client to the server)
__________________
Team 201 - 2003 Great Lakes Semifinalists & 2003 Archimedes Division Finalists :|: Webmaster of www.feds201.com -> FBI Scouting
Winner of The 2003 ChiefDelphi Web Award for: User That Started The Most Non Chit Chat Threads
Winner of: 2003 FIRST Ventures with 5451.68 End Points

All about me: http://knehcsa.vze.com
**Check out the New FIRST Scouting Network**
  #14   Spotlight this post!  
Unread 23-12-2002, 07:07
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
I learned PERL, then did PHP and liked PHP MUCH better for these reasons:

The code is much cleaner and easier to write. PERL is well known for being an incredibly ugly language with all its symbols strewn all over.

PHP has much better documentation. Goto their website and search for something you need (like "date" or "sort") and you will find the function with full documentation.

Sure PERL has many more capabilities and there are thousands of modules you can download, but a lot of the things PERL has that PHP doesn't don't really benefit people who are trying to write web scripts with it. On the other hand, PHP has a lot of nifty built in stuff that if you are feeling brave you can play around with such as image generation or flash movie generation.

I really have no idea which is faster but I don't care either. PHP is just so much easier to write.
  #15   Spotlight this post!  
Unread 28-12-2002, 19:27
piotrm's Avatar
piotrm piotrm is offline
Registered User
AKA: Piotr Mardziel
FRC #0190 (Gompei and the HERD)
Team Role: College Student
 
Join Date: Dec 2002
Rookie Year: 2001
Location: Dudley, MA
Posts: 96
piotrm has a spectacular aura aboutpiotrm has a spectacular aura about
Send a message via AIM to piotrm
Giving my own opinion I prefer Perl over PHP any day. Although it is true that PHP was made specifically for web programming I find PERL easier to use. Someone mentioned it is ugly and it may be true but its probably because there are so many ways to do something. You can do thing the way you want or perhaps another. There is indeed a great multitude of modules for perl that do all sorts of crazy stuff. Since perl wasn't specifically made for web programming most of these modules have not much to do with web programming but the power is there in case one needs to use it. But also because of the same reason Perl may integrate better with other things that may be present on a web server. For example currently for the site I am making I have an option of checking its syntax with a script called "weblint" which runs on a command prompt. But in Perl its pretty easy to run weblint on the webserver, send in some html to it and read its output and then one can display the html with the information weblint provided. PHP probably can do this too in some odd way but I doubt it has as much support for such things as Perl does.

As for Flash, it can also be used for some web programming. Using action-script (Flash's scripting language) one can do some stuff although not as simply as in Perl or PHP.

I forgot to mention that if you learn Perl you can use it for just about anything unless speed is a real issue in which case C should be used.

Last edited by piotrm : 28-12-2002 at 19:29.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Learning PHP Leon Machado IV Website Design/Showcase 15 20-08-2003 08:03
PHP or ASP.Net? Greg Website Design/Showcase 37 26-07-2003 02:29
FREE web design, php, and 3ds max classes Jeremy_Mc General Forum 0 31-01-2003 15:42
PHP File Uploading Scripts Ian W. Chit-Chat 15 15-09-2002 17:41
FIRST Team Portal jon General Forum 8 25-05-2002 09:11


All times are GMT -5. The time now is 08:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi