Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 15-08-2003, 04:35 PM
Novice Webmaster
 
Join Date: Aug 2003
Location: Perak
Posts: 21
Rep Power: 0
myravens is on a distinguished road
Apa beza perl dgn php ?

ello kengkawan....

nak tanye sket ape beza antara php dengan perl...

Aku ni baru je nak start belajar php.....



Sesape yg tahu tu tolong ajar aku please......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 17-08-2003, 01:26 AM
DingDang's Avatar
Normal User
 
Join Date: Jul 2001
Location: eRakan.Net
Posts: 118
Rep Power: 92
DingDang is on a distinguished road
Send a message via ICQ to DingDang Send a message via Yahoo to DingDang
perl is : a universal programming language.
php is : a web programming language.

you can use perl to program anything. just like C, Visual Basic and Pascal. You can combine perl with cgi for web programming.

you can use php for web programming ONLY, even though they are working very hard now to make it available for standalone program. but still, php is still a web programming language. hence the name - Personal Home Page

go and learn perl if you have some programming knowledge before, and would like to xpend the knowledge in web programming without loosing your senses.

go and learn php if you don't know anything about programming, and you want to build a dynamic website or web application.

good luck!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 17-08-2003, 02:37 AM
ardiles's Avatar
Senior Webmaster
 
Join Date: Mar 2003
Location: Kamunting, Perak
Posts: 640
Rep Power: 83
ardiles is on a distinguished road
Send a message via MSN to ardiles Send a message via Yahoo to ardiles
eh... ye ke PHP tu Personal Home Page?

bukan P: Hypertext Preprocessor ke...?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 17-08-2003, 07:19 AM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 97
sufyan is on a distinguished road
Quote:
Originally posted by ardiles
eh... ye ke PHP tu Personal Home Page?

bukan P: Hypertext Preprocessor ke...?
Yep...

PERL stands for Practical Extraction and Report Language and
PHP stands for Hypertext Preprocessor
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 17-08-2003, 07:33 AM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 97
sufyan is on a distinguished road
To keep it simple, just look at it this way:

The main difference is that PHP allows direct embedding into HTML whereas PERL doesn't.

So in PHP, you could do:
<html>
<head>
<title>Title</title>
</head>
<body>
<? $querystring = $_GET ?>
Everything after the question mark: <? echo $querystring ?>
</body>
</html>

Whereas is perl, you would have to use:
print "<html>\n";
print "<head>\n";
print "<title>Title</title>\n";
print "</head>\n";
print "<body>\n";
$querystring = $ENV{'QUERY_STRING'};
print "Everything after the question mark: $querystring\n";
print "</body>\n";
print "</html>";
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 17-08-2003, 09:54 AM
DingDang's Avatar
Normal User
 
Join Date: Jul 2001
Location: eRakan.Net
Posts: 118
Rep Power: 92
DingDang is on a distinguished road
Send a message via ICQ to DingDang Send a message via Yahoo to DingDang
the original PHP stands for Personal Home Page (it was PHP/FI), later it was named plain 'PHP', with the meaning being a recursive acronym - PHP: Hypertext Preprocessor. It was written in the manual (http://www.php.net/manual/en/history.php)

Perl DOES support HTML embedding by using PerlEX from ActivePerl, and many other modules, packages and interpreter that support embedded perl.

using CGI.pm, you can reprogram the perl code given by sufyan to look like this :

Code:
#!/perl

use CGI;
$query = new CGI;

$querystring = $query -> query_string;

print header(); 
print start_html(-title=>"Title");
print qq~Everything after the question mark: $querystring~;
print end_html;
thats it!

as i said before, the code REALLY make sense if you have learn any programming language before because (imho)

1) you know what the code is really doing, from top to bottom, by using your sense on programming language.

2) you know that $query is an object inherited from the CGI module.

3) it can be well structured. process all the input first and print out the result in HTML. so you can see clearly what and where.

4) it works like an ordinary programming language. so, by learning Perl, you will still maintain your programming knowledge, the flow, the rules, and the grammar of programming language.

whereas if you don't care any of the above, PHP is suitable for you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 17-08-2003, 01:43 PM
Novice Webmaster
 
Join Date: Aug 2003
Location: Perak
Posts: 21
Rep Power: 0
myravens is on a distinguished road
thanks for your help........
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 16-09-2003, 05:35 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 769
Rep Power: 101
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
you can use php language for stand alone programming but it'z need some module for supporting it. I use php for Office Software such as Control Stock, Attendend, Reporting not run as WEB
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 16-09-2003, 05:55 PM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 97
sufyan is on a distinguished road
Quote:
Originally posted by hymns
you can use php language for stand alone programming but it'z need some module for supporting it. I use php for Office Software such as Control Stock, Attendend, Reporting not run as WEB
Interesting... could you elaborate on that. Never knew you could make stand alone apps with PHP. What modules are you talking about?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 16-09-2003, 07:32 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 769
Rep Power: 101
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
Sufyan: gimp tool kitz
you also can use other tools to create GUI. i'm using blade for create the GUI. Perl also can use it. support language ADA, PHP, C, C++... erk i think this a wrong place for talking about php =)
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds

Last edited by hymns; 16-09-2003 at 07:35 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 16-09-2003, 07:39 PM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 97
sufyan is on a distinguished road
Quote:
Originally posted by hymns
Sufyan: gimp tool kitz
you also can use other tools to create GUI. i'm using blade for create the GUI. Perl also can use it. support language ADA, PHP, C, C++... erk i think this a wrong place for talking about php =)
Thanks for that, i'll look into it
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 16-09-2003, 07:46 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 769
Rep Power: 101
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
it'z ok!~ you can create ur own game or other application. Enjoy it!
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 05-04-2007, 05:11 AM
genzy's Avatar
Nowhere Webmaster
 
Join Date: Aug 2006
Location: Malaysia
Posts: 1,581
Rep Power: 59
genzy is on a distinguished road
Perl is general purpose.

It is very good in text/string manipulation, famous for its regular expression/pattern matching.

It is widely used in OS system/engineering/manufacturing/bio-medical world.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install cgi/perl script air_master Website Programming 2 05-04-2007 08:48 AM
cgi/perl with Tripod masterryzz Website Programming 0 25-06-2005 11:59 PM
Apa beza Photoshop 6.0 dgn 7.0 guerillaRADIO Graphic Design 2 25-07-2002 09:09 PM
Apa Beza phpnuke dan postnuke Rezats Website Programming 2 20-07-2002 12:26 AM
perl + postgres ejoe Website Programming 1 14-06-2002 10:36 AM


All times are GMT +8. The time now is 11:14 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61