LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 04-12-2006, 03:40 PM   #1
nmayotte
Member
 
Registered: Jan 2004
Location: Minnesota
Distribution: SuSE 8.0-9.0
Posts: 37

Rep: Reputation: 15
website creation idea - a couple questions


I'm thinking about creating a website that will basically be a frontend of a database. I'm thinking that its going to be similar in design to facebook or myspace, only it won't be social networking. I know java and c++. I work as a linux systems admin currently. The server (which for the development phase) will be a spare linux machine that I have running. The database itself will most likely by a mysql one.

I'm not sure what language I want to use for the frontend though. Is php the best bet? I honestly don't know that much about it other than that its a popular scripting language. I've also considered java (javascript) and ruby on rails. I'm asking because I'll basically have to teach whatever language I go with to myself and I don't want to get half way through and find out that I need to use a different language to do what I want. So what advice do you guys have?

As far as timetable, I'm looking at (many) months. And if it turns out that I end up creating this thing and just using it for personal use I'm fine with that. I really just want a side project to work on over the summer. And I would like some experience developing a real world resource. Any links/advice you all can give will be appreciated.
 
Old 04-12-2006, 04:00 PM   #2
Mega Man X
Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 63
PHP is perhaps the most popular language used with websites with database-driven content. However, since you already know Java, all you need to do is to install a server/container as Tomcat and start coding JSP (JavaServer Pages) and Servlets. Here are some tutorials about JSP:

http://www.jsptut.com/

http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/

There's also a good ebook that you will want to have:

http://www.theserverside.com/books/a...lknerJones.zip

This book is just awesome. The problem is, you will need to register before downloading. Not a big deal, really.


Basically, to have a server up and running, all you will need is a computer (with Linux or any other OS) and

Apache tomcat Web server:
http://tomcat.apache.org/

MySQL:
http://www.mysql.com/

Java - MySQL drivers:
http://www.mysql.com/products/connector/

And a working Java Runtime Enviroment. Get the one from Sun's website. I've just started getting into JSP/Servlets, so if you get stuck let me know .

That's for the server part. To develop your pages, I recommend Eclipse WTP. It has support for many advanced features, like starting and stopping Tomcat, among other finessess and plugins. I can give a hand to set up Eclipse WTP if you need it.

Now, I'm not saying you should not use PHP (or any other language for that matter), but since you already know Java, it feels pointless to learn yet another language since Java is very robust, very well supported and it really shines on the web side

Best of luck!

Last edited by Mega Man X; 04-12-2006 at 04:05 PM.
 
Old 04-12-2006, 04:07 PM   #3
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,352

Rep: Reputation: 129Reputation: 129
Certainly PHP will do what you want to do. There is a bit of a hump (rather than a real curve) learning it but once you're over that it is a quite smooth language to work with. Get a good book or tutorial on php and mySQL (there are loads out there, Kevin Yank has a good one you can find it here)

Well that's my bigoted view

graeme.
 
Old 04-13-2006, 11:46 AM   #4
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
I would vote for php also. However i have heard good things about ruby on rails as far as speed and ease of development.
 
  


Reply

Tags
eclipse


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Website creation questions anickless Programming 13 03-18-2006 04:33 PM
website creation tools stlshawn Slackware 21 07-22-2005 12:39 AM
boot idea and a couple questions xGo Linux - Newbie 4 10-29-2004 07:04 PM
website creation hdonut Linux - Software 1 09-11-2003 11:14 AM
Idea for LFS Website RecoilUK Linux From Scratch 1 06-01-2002 06:25 PM


All times are GMT -5. The time now is 06:05 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration