Adam_DeJaray
07-08-2002, 02:56 AM
Hello,
I have a predicamite. I am going to buy this script from this place. They have 3 different scripts, selling at $200, $300 and $500. I am focusing on the $200 and $300 ones. The $300 one is on sale for $200, so it's actually the same price as the first one, but i'll call it the "$300 one" for sake of clarity. Basically, I like the $300 one much better than the $200 one, it has better admin features and looks cooler, plus it has more features all around, but one problem... it's written in CGI..... AHHHHH! The other one is written in PHP (with a HELLA FAST mysql DB) and has better code. Now, these aren't web hosting related scripts, they are for running a gaming system. Basically, i'll have anywhere from 500 to 20,000 people signed up on these scripts. What I want, is for someone to talk me into buying the CGI script. Tell me why CGI is better than PHP w/ MySQL.
Please convince me to buy the CGI one :)
Adam
Jedito
07-08-2002, 03:06 AM
You mean perl, right? because you can run php as CGI too.
CritticAge
07-08-2002, 03:50 AM
Perl isnt too much slower and for a game it is safer and faster to use a DB.
If you have Perl using mod_fastcgi (http://www.fastcgi.com) and using MySQL it'll proberbly be as fast (if not faster) than PHP
CritticAge
07-08-2002, 05:53 AM
Interesting, by any chance do you make the extension of the file .fcgi and because I already have a large script I would like to use it on, can I still use it without doing much editing?
/me is very interested :D :D
Originally posted by CritticAge
Interesting, by any chance do you make the extension of the file .fcgi and because I already have a large script I would like to use it on, can I still use it without doing much editing?
/me is very interested :D :D
In .htaccess and/or httpd.conf you can set it to any file extension you want:)
apollo
07-08-2002, 10:10 AM
I suggest you get the php code version since it will be faster (assuming that your hosting provider has compiled php support into apache).
mod_perl will also make perl script execution faster and I cannot say which script will execute faster in this case, php or perl (if both are compiled/linked with Apache).
Don't forget that php offers (not if you run as cgi) persistent database connections and that means better speed and less load on high mysql driven web sites.
But I am sure cgi version will do fine for your requirements, as long as your host will not complain about the high load - depends from the script resource requirements.
Jeremy W.
07-08-2002, 10:42 AM
The real question is: Which script?
There are a lot of variables to speed, so it would be good to be able to nail down at least some of them :)
mlovick
07-08-2002, 10:54 AM
PHP is much more efficient than perl CGI for database access IMO. Although its not that hard to do it in perl - you will find more tutorials etc on the net for PHP.
apollo
07-08-2002, 01:31 PM
well, php has native support for MySQL built-in (built-in fuctions), Perl doesn't.
Depends what libraries are used to connect to MySQL db, your hosting company may need to install some custom perl (for example cpan) libraries (unless you can run it from your own web space/directory)...
Blieb
07-08-2002, 01:48 PM
I personally prefer PHP mostly b ecause of the abundance of built in functions.
While I use perl daily, I don't like it as much.
Speed has a lot to do with the coder's logic. So for all the idiots that just said perl is faster need to shaddup!
They're EXTREMELY comparable in speed.
Adam_DeJaray
07-08-2002, 06:02 PM
Thanks for all the responses everyone... if anyone has anymore i'd appreciate them. Basically, the problem is... the CGI script they are selling is exactly what i'm looking for, where as the PHP script is sort of what i'm looking for, but it's lacking a couple of small features i'd like that the CGI one has. They are both the same price... I know PHP w/ mysql is much better than CGI most of the time, but basically i'm just trying to get everyone who uses CGI to tell me why it's good and convince me that perl is gonna lead the future..... and not PHP (lol).