This Forum has been archived there is no more new posts or threads ... use this link to report any abusive content
==> Report abusive content in this page <==
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What scripting languages do you have to use to make a social network?
01-30-2013, 05:07 PM
Post: #1
What scripting languages do you have to use to make a social network?
I started making a website with XHTML, but then I realized there are more scripting languages. Are XHTML, CSS, javascript, and PHP the only scripting languages I need to know to create a social network like Facebook, Twitter, YouTube, etc.? Thanks!

Ads

Find all posts by this user
Quote this message in a reply
01-30-2013, 05:15 PM
Post: #2
 
php, html/xml & sql combo is the best

Ads

Find all posts by this user
Quote this message in a reply
01-30-2013, 05:15 PM
Post: #3
 
"Are XHTML, CSS, javascript, and PHP the only scripting languages I need to know"

and SQL.
Find all posts by this user
Quote this message in a reply
01-30-2013, 05:15 PM
Post: #4
 
(X)HTML, CSS, javascript, php, mysql and AJAX.
AJAX is not really needed, only if you want partial refeshs instead of reloads.
php/mysql are the most common and more eficient than any window version (i.e. asp, jsp, .net), and cheaper to run.

Note: Any hope of getting any kind of social network of the style or type of Facebook, Twitter or Youtube is ludicrous. 1000's of hopefuls dreamers have tried. Many even with good programming experience. NONE ever works (that is, get enough users), unless you have a few 100 thousands of $ to advertise and launch it.

If you want to make a successful social Network, forget FB and the others: HAVE YOUR OWN NEW (and different) IDEA!
Don't be a copy-cat. Too many around.

I receive at least one request a month for these, from people who think they can make it for a few hundreds, and no advertising. I'll just remind you that FB needed $34,000, just to LAUCH FB...
Find all posts by this user
Quote this message in a reply
01-30-2013, 05:15 PM
Post: #5
 
You will have to use HTML, CSS and Javascript, since those are used to build web pages. HTML for the document structure, CSS for the layout and style and Javascript for interactive controls.
These technologies all work inside a users browser.

PHP is a scripting/programming language which runs on the web server. You can use it to make dynamic pages, a single file which loads a different profile page depending on who is logged in for example. PHP is one of the most commonly used languages for this task, but it is possible to do it with other languages or technologies. Think about ASP(.NET), Python, Ruby etc. Each has its pros and cons.

Another thing you will need, is a place to store your data. PHP is only good for working with data and building webpages based on that data, but you still need a data storage: a database. Again, there are many different engines available, but most of them are SQL-based. MySQL is probably the way to go, since it is free and is very well integrated with PHP.

For a starting website, I would recommend MySQL + PHP. Something like a LAMP/WAMP/XAMPP package is probably best to start with. Very easy to set up and get going. These also include an Apache HTTP web server.

There are many different setups possible. Premature optimization is the root of all evil, so do not worry about the particular setup you use right now. If it works for you, it's fine.
But if you are interested, here is how the social networks you mentioned operate:

Facebook uses PHP to program their website and MySQL to run their database. However, since PHP isn't really known for its speed and because Facebook receives an enormous amount of traffic, that becomes an issue. Facebook solves this problem by compiling their PHP website down into one single C++ executable.

Twitter is programmed using Ruby On Rails with parts of it re-written in Scala, to cope with the immense scale at which twitter operates.

YouTube started out as a Python-based website. But I can imagine that they have replaced parts of their site with technologies (probably in-house Google technologies like BigTable for its database) more suitable for the high traffic and scale of the website.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)