Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Website Design/Showcase (http://www.chiefdelphi.com/forums/forumdisplay.php?f=64)
-   -   php vs. perl (http://www.chiefdelphi.com/forums/showthread.php?t=15564)

Brandon Martus 28-12-2002 20:51

Quote:

Originally posted by piotrm
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.
http://www.php.net/manual/en/features.commandline.php

a syntax checker, based on (or using) 'lint', is built into php

Code:

bash-2.05$ php -l blah.php
<br />
<b>Parse error</b>:  parse error, expecting `','' or `';'' in <b>/home/chiefdel/blah.php</b> on line <b>4</b><br />
Errors parsing blah.php


mikexstudios 28-12-2002 20:53

I'd say that Perl rocks! .... but not in the web development area. I like perl because it is easy to do almost anything with perl. It has powerful regular expresions and has great file handling ablilities. Even though it has a DBI module for database connectivity, PHP is the king in interacting with Databases. Since web development centers heavily around databases today, PHP will take the crown. It also executes faster than perl (no mod_perl involved) and has a large fanbase. So you can't go wrong with PHP, but Perl is for old-timers that can't let go of tradition.

mikeXstudios

piotrm 29-12-2002 03:14

the syntax checker i was refering to was to check the html that perl prints out, not the perl itself, i think checking its own language's syntax is kind of given for just about any language

FRANK(WGH) 29-12-2002 16:47

Just one question. Where would be a good web site to learn PHP scripting.

Brandon Martus 29-12-2002 16:57

www.php.net :)
www.phpbuilder.com

FRANK(WGH) 29-12-2002 17:01

thanks brandon. i'm sure these will help alot.


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

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