yddib Posted September 1, 2008 Share Posted September 1, 2008 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! Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/ Share on other sites More sharing options...
Fadion Posted September 1, 2008 Share Posted September 1, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-630935 Share on other sites More sharing options...
valtido Posted September 1, 2008 Share Posted September 1, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-630940 Share on other sites More sharing options...
Fadion Posted September 1, 2008 Share Posted September 1, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-630953 Share on other sites More sharing options...
valtido Posted September 1, 2008 Share Posted September 1, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-630955 Share on other sites More sharing options...
Fadion Posted September 1, 2008 Share Posted September 1, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-630965 Share on other sites More sharing options...
JasonLewis Posted September 1, 2008 Share Posted September 1, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-630967 Share on other sites More sharing options...
JonnoTheDev Posted September 1, 2008 Share Posted September 1, 2008 How can you suggest this guy can't do it. There has been no complete specification posted. You could make a simple app in a couple of days, easy! Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-631030 Share on other sites More sharing options...
valtido Posted September 1, 2008 Share Posted September 1, 2008 i was tellin him self experience lol he can choose to ignore it Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-631032 Share on other sites More sharing options...
yddib Posted September 1, 2008 Author Share Posted September 1, 2008 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!!) Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-631034 Share on other sites More sharing options...
valtido Posted September 1, 2008 Share Posted September 1, 2008 look go to www.valtido.com thats wot i did for college lol then u will know wot i mean Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-631036 Share on other sites More sharing options...
JasonLewis Posted September 1, 2008 Share Posted September 1, 2008 Irish? That is why you refer to the topic starter as OP. 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. Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-631037 Share on other sites More sharing options...
yddib Posted September 1, 2008 Author Share Posted September 1, 2008 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?!! Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-631039 Share on other sites More sharing options...
JasonLewis Posted September 1, 2008 Share Posted September 1, 2008 Irish? That is why you refer to the topic starter as OP. I just meant that instead of referring to the topic starter as he or she (unless you know for sure), you refer to them as OP. Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-631041 Share on other sites More sharing options...
valtido Posted September 1, 2008 Share Posted September 1, 2008 ok einstine its not like i murdered him/her or OP Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-631043 Share on other sites More sharing options...
yddib Posted September 1, 2008 Author Share Posted September 1, 2008 Oh ok!! I'm such a newbie!! Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-631044 Share on other sites More sharing options...
Fadion Posted September 1, 2008 Share Posted September 1, 2008 look go to www.valtido.com thats wot i did for college lol No offense but that site is really bad. :-\ ok einstine If you were referring to the scientist, his name was Einstein. Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-631113 Share on other sites More sharing options...
yddib Posted September 1, 2008 Author Share Posted September 1, 2008 No offense but that site is really bad. It might not be the prettiest site in the world but I appreciate him trying to help me. I'm really stuck! Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-631132 Share on other sites More sharing options...
Fadion Posted September 1, 2008 Share Posted September 1, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/122208-social-network-comments-cookies/#findComment-631166 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.