website

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
mrmichaelam
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 12
Joined: Fri Jul 10, 2009 6:14 pm

website

Post 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 :)
Last edited by mrmichaelam on Thu Sep 10, 2009 6:40 am, edited 1 time in total.
User avatar
programmerinprogress
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Wed Oct 29, 2008 7:31 am
Current Project: some crazy stuff, i'll tell soon :-)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++!
Location: The UK
Contact:

Re: website

Post 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
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
---------------------------------------------------------------------------------------
And now a joke to lighten to mood :D

I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P
User avatar
mrmichaelam
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 12
Joined: Fri Jul 10, 2009 6:14 pm

Re: website

Post by mrmichaelam »

thanks
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: website

Post 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.
User avatar
trufun202
Game Developer
Game Developer
Posts: 1105
Joined: Sun Sep 21, 2008 12:27 am
Location: Dallas, TX
Contact:

Re: website

Post 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 ;)
-Chris

YouTube | Twitter | Rad Raygun

“REAL ARTISTS SHIP” - Steve Jobs
User avatar
RyanPridgeon
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 447
Joined: Sun Sep 21, 2008 1:34 pm
Current Project: "Triangle"
Favorite Gaming Platforms: PC
Programming Language of Choice: C/C++
Location: UK
Contact:

Re: website

Post 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)
Ryan Pridgeon
C, C++, C#, Java, ActionScript 3, HaXe, PHP, VB.Net, Pascal
Music | Blog
User avatar
mrmichaelam
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 12
Joined: Fri Jul 10, 2009 6:14 pm

Re: website

Post 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?
Last edited by mrmichaelam on Fri Sep 11, 2009 12:28 pm, edited 1 time in total.
User avatar
trufun202
Game Developer
Game Developer
Posts: 1105
Joined: Sun Sep 21, 2008 12:27 am
Location: Dallas, TX
Contact:

Re: website

Post 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.
-Chris

YouTube | Twitter | Rad Raygun

“REAL ARTISTS SHIP” - Steve Jobs
User avatar
mrmichaelam
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 12
Joined: Fri Jul 10, 2009 6:14 pm

Re: website

Post 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:
User avatar
ibly31
Chaos Rift Junior
Chaos Rift Junior
Posts: 312
Joined: Thu Feb 19, 2009 8:47 pm
Current Project: Like... seven different ones
Favorite Gaming Platforms: Xbox 360, Gamecube
Programming Language of Choice: C++, ObjC
Location: New Jersey.

Re: website

Post 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.
Image
Twitter
Website/Tumblr
My Projects

The best thing about UDP jokes is that I don’t care if you get them or not.
User avatar
MarauderIIC
Respected Programmer
Respected Programmer
Posts: 3406
Joined: Sat Jul 10, 2004 3:05 pm
Location: Maryland, USA

Re: website

Post by MarauderIIC »

I think C#/ASP.NET (+ Javascript if needed) would make this easier to develop than Javascript + PHP would.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
Post Reply