Results 1 to 13 of 13

Thread: Apa beza perl dgn php ?

  1. #1
    Join Date
    Aug 2003
    Location
    Perak
    Posts
    20
    Rep Power
    0

    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......

  2. #2
    Join Date
    Jul 2001
    Location
    eRakan.Net
    Posts
    118
    Rep Power
    226
    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!

  3. #3
    Join Date
    Mar 2003
    Location
    Kamunting, Perak
    Posts
    640
    Rep Power
    216
    eh... ye ke PHP tu Personal Home Page?

    bukan P: Hypertext Preprocessor ke...?

  4. #4
    Join Date
    Oct 2001
    Location
    Melbourne, AU
    Posts
    456
    Rep Power
    230
    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

  5. #5
    Join Date
    Oct 2001
    Location
    Melbourne, AU
    Posts
    456
    Rep Power
    230
    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>";

  6. #6
    Join Date
    Jul 2001
    Location
    eRakan.Net
    Posts
    118
    Rep Power
    226
    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.

  7. #7
    Join Date
    Aug 2003
    Location
    Perak
    Posts
    20
    Rep Power
    0
    thanks for your help........

  8. #8
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    235
    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

  9. #9
    Join Date
    Oct 2001
    Location
    Melbourne, AU
    Posts
    456
    Rep Power
    230
    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?

  10. #10
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    235
    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 =)
    Last edited by hymns; 16-09-2003 at 07:35 PM.
    I hate when:

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

  11. #11
    Join Date
    Oct 2001
    Location
    Melbourne, AU
    Posts
    456
    Rep Power
    230
    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

  12. #12
    Join Date
    Nov 2001
    Location
    Johor
    Posts
    772
    Rep Power
    235
    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

  13. #13
    Join Date
    Aug 2006
    Location
    Malaysia
    Posts
    1,576
    Rep Power
    192
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Beza ftp server & ftp client
    By sam1980 in forum Webmaster Tools
    Replies: 4
    Last Post: 05-03-2008, 04:10 PM
  2. cgi/perl with Tripod
    By masterryzz in forum Website Programming
    Replies: 0
    Last Post: 25-06-2005, 11:59 PM
  3. Apa beza Photoshop 6.0 dgn 7.0
    By guerillaRADIO in forum Graphic Design
    Replies: 2
    Last Post: 25-07-2002, 09:09 PM
  4. Apa Beza phpnuke dan postnuke
    By Rezats in forum Website Programming
    Replies: 2
    Last Post: 20-07-2002, 12:26 AM
  5. perl + postgres
    By ejoe in forum Website Programming
    Replies: 1
    Last Post: 14-06-2002, 10:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Search Engine Optimization by vBSEO 3.5.0 RC1 PL1

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 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112