"as2k.com" wrote:
>
> Hi:
>
> I need an opinion of which is the better way to go. Should I create my
> mySQL enabled web application using CGI's written in C or using PHP?
>
> I'm looking for information on execution speed, ease of maintainability as
> well as portability.
>
> Just a note - the site is currently written using C CGI's so I'm looking
> to see if there would be a speed/maintainability benefit to PHP.
>
> Thanks in advance...
>
> Mark Turner
Hi Mark,
I would definately say go with php.
reasons:
-php is dead easy if you allready know C, but you don't need to waste time on memory
managent and the like.
-php is ultraportable: if it works on one platform, it works on them all (so long as you
have the same modules and versions
installed)
-php is extremely fast (if you run it as an apache module): most php pages will be done
executing before the fork() to run the cgi
program is finished. In other woirds, the php code is done before the c code even starts.
This is not true if you need to run very
long and complicated scripts but in 90% of times it is true.
-php's api is very easy to extend if you know c. So if there are feature missing for you
in php, you can easily extend php by
coding your own php functions in c and then recompile php with them in it.
-php is dead easy to maintain, i am not sure that there is one easier out there (and i
have worked with
perl/c/c++/pascal/vbscript/java/javascript/lisp and other i don't care to mention)
--
Martin B. Jespersen
Technical Project Leader
Icon Medialab A/S (http://www.IconMedialab.dk)
E-Mail: Martin@stripped
Mail: Havnegade 39, DK-1058 Copenhagen K
Voice: (+45) 7023-1001
Fax: (+45) 33320209