No, no, I didn't mean that SSI was compairable. What I meant was I would use a PHP include before a SSI include.
Originally posted by jeffmott but I'm curious why you would consider PHP better than Perl?
I guess it is mostly because to me, PHP seems easier. Perl gives you a pretty generaic error message. Internal Server Error can mean just about anything... PHP tells you what line the problem was on. Also, you don't have to CHMOD PHP (except some file/directories, if you are going to be writing to them) so that makes it easier. Also, I like how easy it is to incorporate into HTML. You can basically just mix it all together. I do realize that Perl has it's upsides, too. And the biggest would be that it is a full fledged programming language. All in all though, I do like PHP better, but that is just me....
pyro I guess it is mostly because to me, PHP seems easier
Have you taken the time to truly learn Perl? Any language (not just Perl) will seem difficult until you learn it.
pyro Perl gives you a pretty generaic error message. Internal Server Error can mean just about anything
That's because "Internal Server Error" isn't perl's error message; it's the server's. The real error message is stored in the server error log. But if you don't want check that, then there is a simple statement that will display the perl error rather than the server error.
use CGI::Carp 'fatalsToBrowser';
pyro Also, you don't have to CHMOD PHP (except some file/directories, if you are going to be writing to them)
Again, this isn't Perl. File permissions is an aspect of unix. Usually Perl don't need changed permissions any more than PHP, except for perhaps making the script itself executable if the server hasn't done that already automatically.
pyro Also, I like how easy it is to incorporate into HTML. You can basically just mix it all together
Originally posted by jeffmott Have you taken the time to truly learn Perl?
No, not really. You can do most of the same things with PHP, so for now, I'd rather spend my time learning things that aren't so close to each other. Also, they syntax between PHP and Perl is very close. I think it should be quite easy to go from one to the other.
Originally posted by jeffmott use CGI::Carp 'fatalsToBrowser';
Do you just put this in you script? That would be quite nice. Also, I have used a Perl checker in the past, and that was helpful as well.
Originally posted by jeffmott I think you may find that PHP's advantages over Perl are in fact misconceptions.
Seeing how the languages are so close, I guess one would just have to decide which he would rather learn. For me, that was PHP.