Results 1 to 8 of 8
im developing a e-commerce site under redhat. im using Mysql as the database. i want to know as to what should i use: php or JSP.. i am in a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-02-2004 #1Just Joined!
- Join Date
- Jul 2004
- Location
- India
- Posts
- 25
php and mysql
im developing a e-commerce site under redhat. im using Mysql as the database. i want to know as to what should i use: php or JSP.. i am in a fix. I dont know pros and cons of both.
is php alone sufficient to handle a complete site.
if not then what additional things are important.
please guideme in this regard
- 07-02-2004 #2Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
In my experience, PHP is more than sufficient to handle a complete site. I guess what it boils down to is what other programs you need to communicate with. If you have no special such requirements, PHP is probably the easier way to go.
- 07-02-2004 #3Linux Guru
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 3,284
PHP, Pro's:
- Relativly easy to write code
- has big range of external support, can use sockets, ldap and loads more
- you can link your own C libaries into php via a hand written php wrapper making your normal C code accessable in PHP.
- (so php is really powerful)
- There is a lot of support for it
- Can run on most OS's, though some advanced features are implemented differently
- A developed language, big user base
- fast
PHP, cons:
- ??
Java, Pro's
- Lots of people are taught it in Uni so they think its the best thing since sliced bread, despite never having tried any other programming languages. (the pro in there is lots of people know Java).
- Java client code is cross platform
Java, Cons
- Java is one big con
- Java is slow. real slow.
As you can see im more of a PHP than a Java fan
- 07-02-2004 #4Just Joined!
- Join Date
- Jul 2004
- Location
- India
- Posts
- 25
thx for ur reply
thx dear,
could u please tellme that what all should i do prior to developing the site. actually i mean configuring the os or other things
i'll be using APache, mysql and PHP.
and one more thing.
who is the developer of PHP like sun is of Java.
- 07-02-2004 #5Linux Guru
- Join Date
- Apr 2003
- Location
- London, UK
- Posts
- 3,284
Re: thx for ur reply
There is not much to tell, install apache with php, there is some documentation here:
Originally Posted by r_sood2002
for apache 1.3: http://www.php.net/manual/en/install.apache.php
for apache 2.x: http://www.php.net/manual/en/install.apache2.php
I would recommend you Install mysql first. mysql can be downloaded from mysql.com
See this page for a history of PHP: http://www.php.net/manual/en/history.php
Jason
- 07-02-2004 #6
php is open source so the whole open source commutity is the developer
BIG K aka Kyle
Programming Forums
www.kylekonline.com
Please don\'t PM me for help-- ask in the forums instead!
- 07-02-2004 #7Just Joined!
- Join Date
- Jun 2004
- Posts
- 5
A little comment from a php-developer. I am about to develop a base to build new sites very quickly. As it is now, NO OTHER languages have been used. Of course I am talking server-side scripting. As it is now, with documentation in the code, there have been written over 20.000 lines of code. And some of the planned modules have also been written.
I have never worked with jsp (or whatever you called it). What I am trying to say - you have MORE than enough in php. Of course, there are some special cases - cant think of anyone right now. Actually one of my modules are talking direkte with a half-life server to get status and so on (uses sockets). My base + modules works fine on "apache 1.x, mysql 3.x and php 4.2.2^" for linux or windows.
And just some basic things to remember:
1. ALWAYS start your php-code with "<?php". Some settings can be changed to allow only "<?". But that is not a good idea - not if you want to make your code portable.
2. In "php.ini" set "error_reporting" to "E_ALL". That way ALL errors will be reported and you can make your code working better.
3. In "php.ini" set "register_globals" to "OFF". It is more secure.
That was what I could think of right now - some basic things.
/CoRex
- 07-02-2004 #8
in my short experience as a web coder, i have used both php and java. i think php i much better. it's more dynamic, great 4 use w/ mysql, and easier to use. java is messy in my opinon, so definantly go w/ php!


Reply With Quote
