|
|||
|
|||
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>"; |
|
||||
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; 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. ![]() |
|
||||
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 |
|
|||
Quote:
|
|
||||
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. |
|
|||
![]() |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
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 03:18 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.
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.














It was written in the manual (
Linear Mode

