Jump to content

Recommended Posts

Hi,

As a project for college, I have to create a social network. I am using PHP and MySQL. I'd really appreciate any help with the following:

 

What are the best cookies or sessions to use with a social network?

How do you post comments on other people's pages?

 

Any coding help would also be really helpful.

 

Sorry I'm still learning!!

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/
Share on other sites

Q. What are the best cookies or sessions to use with a social network?

A. It depends on the situation. You can use cookies to keep the members logged in for a specified amount of time, or to store any simple preferences (ie. language) through the site. Sessions instead, are the same as cookies but will be destroyed when the user closes the browser or when the session expires. You shouldn't store sensitive information in any of them though. Personally i prefer using sessions for keeping a user logged in and pass not so sensitive information like userid or username.

 

Q. How do you post comments on other people's pages?

A. You will need an extra table for the comments, which can have: commentID, postuserID, userID, date, title, comment. Which user makes the comment is specified by postuserID and where he posts it is specified by userID. Coding it shouldn't be much of a pain.

 

You can receive coding help here as well as coding examples, but you should specify what you need and try to do it yourself first.

thats a lot of hard work mate... if its not too late take an easier option i wouldnt do a social network for my college course work lol unless i had like a year to do it or so. u will b too involved with tryint to complete that n will forget about the other units or course work u might have

thats a lot of hard work mate... if its not too late take an easier option i wouldnt do a social network for my college course work lol unless i had like a year to do it or so. u will b too involved with tryint to complete that n will forget about the other units or course work u might have

 

I'm sure the guy isn't trying to do a facebook clone, and even that wouldn't require a year of work. One can throw up a simple, procedural social network in a week.

based on the questions he asked he sounds like a begginer i wuoldnt waste that much time on it

and trust me your time at colllege goes quick because u dnt have full acess to everything there.

 

he could give it ago but i wont b there to say i told u so lol

PHP is so cool and flexible that even a beginner can do great stuff. I'm still of the opinion that one can [very badly] code a social community site in about a week. If the project involves writing "good" code, then don't even bother, otherwise you'll get the project done in no-time.

Social Networking wouldn't be very hard, and isn't a complex script. Depending on how advance it needs to be it wouldn't take more then a week (like GuiltyGear said, and if you had the time. Although yeah, being at college could reduce the amount of time.)

I'm pretty certain there would be a pretty good tutorial out there about making a Social Networking script.

Thanks for all d replies! Some more helpful than others! It's only a prototype and is the final project I need to do for college so it has my full time.

 

It only really needs to be a prototype. Nothing flashy but shows that I can get it to work.

 

Any coding examples would be a really helpful starting point.

 

Thanks for all your responses

 

Aoife (female!!)  :)

Irish? :)

That is why you refer to the topic starter as OP. :P

 

Anyway, well for starters. If you have some basic programming knowledge it's always helpful. You'll want to look at storing your information, which is where MySQL comes into play. You'll need basic knowledge of selecting and inserting data into a MySQL table.

The best place to begin is Google. It helps a tonne. Don't just search for "PHP Tutorials". Make it more specific to what you need.

 

Best of luck.

Irish?

That is why you refer to the topic starter as OP.

 

Yes Irish!! No idea what the rest of that comment means! I'll have a look for some code online so.

 

look go to www.valtido.com

 

thats wot i did for college lol

 

then u will know wot i mean

 

Thanks for this! Will I sign up to see what the rest of the site looks like?!! :)

You won't learn by looking at that site. If you are in need of features, there are quite a lot social networking sites. What I can suggest is start reading a book and you'll get the hands on pretty quickly. Or take a look at this library of tutorials on different subjects.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.