website
Moderator: Coders of Rage
- mrmichaelam
- Chaos Rift Newbie
- Posts: 12
- Joined: Fri Jul 10, 2009 6:14 pm
website
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.
- programmerinprogress
- 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
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
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
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
- Falco Girgis
- 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
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.
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.
- trufun202
- Game Developer
- Posts: 1105
- Joined: Sun Sep 21, 2008 12:27 am
- Location: Dallas, TX
- Contact:
Re: website
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!"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
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
- RyanPridgeon
- 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
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)
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)
- mrmichaelam
- Chaos Rift Newbie
- Posts: 12
- Joined: Fri Jul 10, 2009 6:14 pm
Re: website
thanks for the help guys really apr. it 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?
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.
- trufun202
- Game Developer
- Posts: 1105
- Joined: Sun Sep 21, 2008 12:27 am
- Location: Dallas, TX
- Contact:
Re: website
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.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?
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.
- mrmichaelam
- Chaos Rift Newbie
- Posts: 12
- Joined: Fri Jul 10, 2009 6:14 pm
Re: website
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
- ibly31
- 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
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:
thats the basic 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>
Website/Tumblr
My Projects
The best thing about UDP jokes is that I don’t care if you get them or not.
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
Re: website
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.