MAIN     ARCHIVES

Archive for the ‘PHP’ Category

How to encrypt user info with php

Monday, June 16th, 2008

If you run a serious webpage where you save login information for your members to a database it is generally a very good idea to perform some kind of encryption on these password to prevent the information to be shared in case your datebase would be hacked.

(more…)

Building your own Myspace.com with PHP part VI: Finishing touches

Tuesday, July 31st, 2007

We have learned by now how to register a user and login, how to display and edit a presentation, how to add friends and search for new friends. In this last part of the tutorial we are going to finish it up with a guestbook where the visitor to a presentation can leave a message for the owner.
(more…)

Building your own Myspace.com with PHP part V: Friends and guestbook

Tuesday, July 31st, 2007

What is a community without friends? Not much really… So thats why this tutorial will cover how to add friends to the users presentation as bookmarks. We will also go over how to search the database for new friends to add to your list.
(more…)

Building your own Myspace.com with PHP part IV: Presentation

Tuesday, July 31st, 2007

In the previous tutorial we learned how to register a new user and how to create a login system with php sessions. With this done we can now move on to the users personal presentation page. So in this tutorial we will first go over how to display a presentation and then how to let the user edit his own page.
(more…)

Building your own Myspace.com with PHP Part III: Register and log in with sessions

Tuesday, July 31st, 2007

In this third part of the tutorial we are going to create an important part of the application. We will learn how to register a new user and save this user to the database, when a user is created it should of course be possible for him to log in. We will accomplish the login part by using session variables.
(more…)

Building your own myspace.com with PHP Part II: Designing the database

Tuesday, July 31st, 2007

In this part of the tutorial we are going to create the back end database that will hold all the information that we need to save for our script. We will create the table structure to prepare the database for the information we want it to hold. We will also create a wrapper class for MySQL that we will use to make our database calls as painless and clean as possible.
(more…)

Building your own Myspace.com with PHP Part I: Introduction

Tuesday, July 31st, 2007

In this series of tutorials we are going to go through the development of a complete (yet very basic) community system. The final community will allow visitors to sign up and get a personal presentation page, guestbook and a friends list. I have tried to keep the programming as simple as possible and will explain what im trying to do as throughly as possible. It should be fairly easy to follow even if you are very new to programming web applications.
(more…)