Your Questions About Facebook

Nancy asks…

How can facebook handle so many users in real time with php?

There are millions of users on Facebook at a time. Despite this, Facebook is able to update people’s news feeds with others activity in real time. With what structure of php can this be accomplished.

Michelle answers:

Actually both of the answers above suck.
Look into ‘HipHop’
It’s a code translator that the Facebook team made that converts the PHP code to C++, allowing them to compile it. Since compiled code runs much faster than interpreted code (except ASP/ASP.NET, which just sucks in general) it allows them to accomplish much faster loading times.
As well, it’s not only the code that allows them to do such. You have to consider that they’re running constant queries to their databases, thus their queries have to be top-notch. Writing a query well will significantly reduce the amount of time it takes to pull from the database. This includes indexes, proper queries, using prepared statements when need be, and database optimization.

Having a whole databank of servers does NOT make your website run faster. In fact, it adds overhead to the whole process, thus potentially increasing loading times. So there’s both answers proven wrong.
What HipHop did for them was significantly reduced the server load and time required to process the code, thus allowing them to process more on one server, and compile their code. The only con of that was losing some commands such as eval().
I personally compile my PHP source and use it as such. You also have to ensure that when you write it, it’s properly structured and that the best practices are used. This will also significantly reduce processing time and load.

Steven asks…

How do I get facebook notifications off my email?

I made it on my msn account so I don’t recieve facebook notifications at all. I recently got a blackberry enabled my email and facebook. My email works fine but I get ALL my facebook notifications and it’s annoying. Is there anyway to disable this?

Michelle answers:

You can click out the “Send email when notification etc.” on facebook in your private settings then you wont get any mails

Sandy asks…

Facebook………………?

I want to delete my facebook acount. If i PERMENTLY delete my facebook acount can I use the same email adress to make a new one later on If i decide i want one? (I want to delete it becuase i just want to add my close friends so i dont get alot of info i dont want from people so i AM going to make a new acount)

Michelle answers:

Go here

https://ssl.facebook.com/help/contact.php?show_form=delete_account

yes, you should be able to use the same email

Michael asks…

FACEBOoK ?!?!?!?!?!?!?!!?!?!?!?!?!???

HOW DO YOU FIND OUT WHAT YOU’VE DONE ON FACEBOOK??? LIKE WHO’S WALL YOU HAVE COMMENTED ON AND WHO YOU’VE POKED AND stuff like that? Or is it impossible?

Michelle answers:

1. Look at your notifications
2. If you have selected the option to have all poke alerts, messages, wall posts emailed to you it will all come out in your email

Powered by Yahoo! Answers