Page 1 of 1

website

Posted: Thu Sep 10, 2009 6:36 am
by mrmichaelam
hey lets say i would like to make a social network website should i first create the database in php and then the website in javascript or what if you have any other way to do it please post :)

Re: website

Posted: Thu Sep 10, 2009 6:40 am
by programmerinprogress
I've never done web scripting, and it's doubtful i'll take it up as a serious hobby any time soon, but I kow for a fact that facebook is meant to be mainly javascript (client-side, not related to java in any way) and I would assume that there is some type of backend database there too (probably done in something like php as you say, a server-side scripting language)

Thats all I know really, hope it helped nontheless

Re: website

Posted: Thu Sep 10, 2009 6:41 am
by mrmichaelam
thanks

Re: website

Posted: Thu Sep 10, 2009 10:20 am
by Falco Girgis
You have to have a back-end to integrate into your front-end.

If you have a fancy front-end like Myspace/Facebook that is accessing the back-end databases and the like--the back-end should be developed first.

A good analogy would be a game engine. I have to write the engine (php back-end) before I start trying to integrate lua (front-end) scripts.

Re: website

Posted: Thu Sep 10, 2009 12:11 pm
by trufun202
mrmichaelam wrote:hey lets say i would like to make a social network website should i first create the database in php and then the website in javascript or what if you have any other way to do it please post :)
I've been doing web development in .NET for 8 years now, and I can tell you - that's an ambitious project - especially if you plan on having any level of personalization built in. It's the equivelant of saying, "Hay guys, Imma maek a MMO!"

Buuuut, aside from that. PHP isn't a database. You'll want to build your database in something like SQL or MySQL, then interface with the database using a server-side language, like PHP or .NET. Javascript is used for client-side stuff like AJAX, form validation, etc.

If I were you, I'd start small. Assuming you know how to design a normalized database, build a web app that displays a list of strings that is retrieved from the database. Then have a form at the bottom to insert a new string.

Just my .02 ;)

Re: website

Posted: Thu Sep 10, 2009 2:42 pm
by RyanPridgeon
Here's a good site to learn from

http://www.sampsonvideos.com/

And yes, php for the server side scripting, javascript & html for the front end, and MySQL for the database is one possiblity (its what i use)

Re: website

Posted: Fri Sep 11, 2009 7:56 am
by mrmichaelam
thanks for the help guys really apr. it :worship: but trufun is it possible to do client-side stuff in other langs then javascript like html??
also what would you recommend .net or php?

Re: website

Posted: Fri Sep 11, 2009 9:33 am
by trufun202
mrmichaelam wrote:but trufun is it possible to do client-side stuff in other langs then javascript like html??
also what would you recommend .net or php?
Javascript is pretty standard for client-side code for dhtml (dynamic html). Html is simply used to build the layout of your webpage. Javascript can be used to modify/update that layout in realtime - such as updating stats, a progress bar, or validating user input.

For server-side code, I think .NET is the way to go. But, to be fair, I haven't done much with PHP, and there are plenty of die-hard PHP fans that would beg to differ.

Re: website

Posted: Fri Sep 11, 2009 12:27 pm
by mrmichaelam
thanks for all the help plus the reason why i want to know this is because im responisble for making a website for my hardstyle club and i propably gottan change my last post :roll:

Re: website

Posted: Fri Sep 11, 2009 4:31 pm
by ibly31
Your going to want to create a MySQL database with PHPMyAdmin(If you have it, depending on your website's provider). And create PHP scripts(if your website supports PHP) that access the database, and output HTML for whatever is displaying the database(example: Facebook's Status's, comments, and stuff like that). You could also have HTMl inside the PHP script that has the JavaScript. Layout:

Code: Select all

<html>
<head>
<title>U know what it is!</title>
</head>
<body>
<lolstuff />
<table>
<?php 
output all the stuff to go inside the table, or whatever you want, could be a div,span, whatever.
?>
</table>
</body>
</html>
thats the basic layout.

Re: website

Posted: Mon Sep 14, 2009 10:41 am
by MarauderIIC
I think C#/ASP.NET (+ Javascript if needed) would make this easier to develop than Javascript + PHP would.