php or cgi ??
Hello,
I am fdrominjacks.This is my first visit to site.I am new to this site,but I’ve enjoyed posting in your forums.PHP seems very much in vogue now - with an increasingly greater number of web hosts providing support for it. For those who have only vaguely heard of it and are not too sure what it is, this article discusses PHP and informally compares it with writing CGI scripts in Perl.
PHP is a free server side scripting language. It can be built into web servers like Apache and you can use it to generate your pages dynamically. You would probably use it in situations you would have otherwise used a CGI script for.Interestingly,if you're debugging your scripts online, PHP really shines.Normally, when a Perl CGI script goes awry, you'll get a cryptic error message in your browser. something to the effect of "500 Internal Server Error".
When your PHP scripts online, you get error messages pinpointing the offending lines in your code to help you locate the error. However, the message is sometimes a cryptic "parse error" or the like,so you still have to crack your head to figure out the problem. But at least you know where it occurred.With Perl CGI scripts, an "Internal Server Error" could have arisen from any number of causes, from a syntax error to a simple case of forgetting to make the file executable or uploading it in text mode.
Thank you very much and Stay connected with me.
|