This PHP tutorial shall cover a BASIC authentication script enabling authorised users access to a specific website. A more advanced and recommended script for authentication is covered in my 4th tutorial (video response). Visit www.rascal999.co.uk for more information.



December 27th, 2009 at 4:06 pm
i agree viper, very sloppy! and the coding is so bad. the worst example for a login script
December 27th, 2009 at 4:33 pm
You’re so messy!
December 27th, 2009 at 5:31 pm
n/p welcome
December 27th, 2009 at 6:25 pm
oh thanks
December 27th, 2009 at 6:39 pm
Hello bro Fixed Error line 17
else echo “Accese Denied!”;
December 27th, 2009 at 7:24 pm
thanx for ur concern but i already got it fixed. . . thanx anyway. . . .
December 27th, 2009 at 8:19 pm
thanks for replying. . . . . . . . . . . i got it repaired and thats what the guy did(cleaned the bottom). . . . . . . i’d like to know what had actually happened to my pc that this happened. . . . . thanx for ur concern. . . . =D
December 27th, 2009 at 9:08 pm
try RUNNING xammp by opening the xammp control panel
December 27th, 2009 at 9:37 pm
try openin the bottom an clean it a little that what i did on my bros laptop ( exaclty like ures ) and it works
December 27th, 2009 at 10:15 pm
Try reinstalling the operating system-Just boot to the disk that came with your laptop that says Operating System, and press F12 or simalar key on boot screen. Follow on screen instruction, but u will lose all files unless u do repair install which generally works. If this doesn’t work some hardware has broke and u should get it checked by proffessionals, or do that anyway
December 27th, 2009 at 10:28 pm
mine says this
Parse error: syntax error, unexpected T_STRING in C:xampphtdocsZ. php on line 17
December 27th, 2009 at 11:06 pm
noice
December 27th, 2009 at 11:46 pm
it seems to me that u are a computer expert so pleeessseee help me!! i have a hp pavillion dv 6500 and when i on the laptop, the hp sign comes up and the loading bar also comes up but then the screen goes blank. . . i can still see some light but nothing comes up. pleeeeeaaassseee help me out!! i beg u!!!Other people viewing this cooment can help me too. . . . I’d be really thankful!!!
December 27th, 2009 at 11:47 pm
php is a server side program, not client-side, meaning, if you try to run it soley on your computer, it’ll do that, you in order to test it, you have to upload it to a web server
December 28th, 2009 at 12:03 am
Lmao, pass = poo xD
December 28th, 2009 at 12:58 am
filezilla dosent handle php
December 28th, 2009 at 1:55 am
I know what FileZillla is, that’s what I use to run my website. I don’t have a PHP server. When I wen’t to my PHP when I downloaded PHP5 and appache, it said create database, and it said “Row’s: database name: INT: What the heck is all this stuff =(
December 28th, 2009 at 2:21 am
Filezilla is ftp software and it’s only purpose is to upload and download files between an ftp server and a local computer.
A php file needs to be run from it’s server environment, which means that you cannot acess it by clicking on it in an ftp program or through windows explorer.
If you have installed a php server on your machine you need to put the file which you wish to access in the public folder (defaults to htdocs) in the apache server. Lets say you put it in htdocs/website/filename. php
December 28th, 2009 at 2:47 am
Well I have FileZilla, It’s just when I make a PHP file, save it into my webpage folder, and open it, it asks me to download it. . .
December 28th, 2009 at 3:03 am
XAMPP is another one of the ’stack’ installers. (The stack is LAMP or WAMP usually. Linux/Windows Apache MySQL PHP/Perl). XAMPP has some other features like FileZilla FTP and Mercury mail. How are you getting to the file? Are you typing the URL into the address bar?
December 28th, 2009 at 3:15 am
You should set up a php server, then run it from localhost. It’s not the same as a HTML website.
December 28th, 2009 at 3:18 am
I did have apache installed, but it did nothing, nore did MySql, what is XAMPP?
December 28th, 2009 at 3:39 am
Are you trying to browse to the file from your local computer? If so, you must not have a web-server (i. e. Apache) installed.
The easiest way to do that is to use XAMPP or WAMP. Do a Google search for one or the other (I prefer XAMPP) and install it. Then put your file in
C:xampphtdocs (That is the default location, so it could differ depending on where you install it. In any case, it will be inside an htdocs folder. ) If you need any other help, just respond to this comment.
December 28th, 2009 at 4:34 am
How come when ever I click a PHP file it give’s me a download file and it says “Download file” (Lol) please tell me how to fix.
December 28th, 2009 at 4:34 am
Sorry learn xhtml please