[Webinar] Streamline your web hosting managementRegister Today


PHP account login page and account settings example Help

Posted on 2008-01-30
Medium Priority
Last Modified: 2010-04-21
I am going to create a video upload web site with the usual account creation and account settings aspects.
I'd like to use php. First, is there example code for accounts, acct settings? Can logins be transmitted from page to page? (when someone logs in, can other php pages know who logged in?)
Is there a php dev environment with syntax parsing, etc. ? Eclipse doesnt do PHP.

Security wise, how difficult is it to make a secure php site?
My site will involve acct creation and video uploads. Is there an example php for this?
I already have php to convert any vid upload to .FLV. I mainly need to know the account creation, settings and login aspects. I will prob use mySQL for the vid uploads. How do I start using mySQL? Where is a download for it? How do I associate the download with an account in the PHP?

Question by:xannus

Accepted Solution

thigger_uk earned 2000 total points
ID: 20777482
Best way to transmit information between pages is to use cookies or sessions.

http://www.tizag.com/phpT/phpsessions.php - some examples and a tutorial on how to use sessions. This allows variables to be passed between pages very easily and securely.

PHP Dev environment - personally I'm a fan of PHPEdit ( http://www.waterproof.fr/ ) - they were giving out free licences for non-commercial use. PHP Coder Pro is also quite good ( http://www.phpide.de/ )

Security - yes, PHP can be very secure. Main problems result from not cleaning input data (so use eg mysql_escape_string() before letting data near a database) or from misuse of globals (so make sure register_globals is off).

To accept file uploads, look at info in the PHP manual - tutorial here: http://www.tizag.com/phpT/fileupload.php

mySQL can be downloaded from www.mysql.org. There's good information in the mySQL and PHP manuals about using it, and a tutorial at http://www.freewebmasterhelp.com/tutorials/phpmysql amongst others.

To associate accounts with files, simply make a field in the database to insert the account number when a file is uploaded (the file can either be stored directly in the filesystem or as a data item in the db).

You have quite a few questions there so there's plenty to read...

Author Closing Comment

ID: 31426389
Thank you. I bought the manual at Tizaq.com and I am well on my way in my site - the book is just what I needed

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question