Join 300,406 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,662 people online right now. Registration is fast and FREE... Join Now!
Ok, I personally use Namo Web Editor and it is very simple to create a PHP file and you can edit it like a normal document. Now...after saying that, you will see (or at least in my web editor) I will see a script tag with a question mark telling me what php tags are embedded in the php page. I presume it is the same in Dreamweaver but as I haven't used it for a while, I wouldn't know....
I create my php pages first in notepad and then save them with a .php extension and then drag them over into my web editor and there I use it to add different things to it. My document is surrounded in <html> tags with small bits of php code in it...
Now...for php I don't know if this is what you are asking but to make a pure php page the tages should be
<? you stuff here ?>
If you want to have a login script I would download this one that I got it is called vAuthenticate...it is free and I just modified it to fit with my MySQL database and so that I could customize my own login pages...
Hey, I know this post is over a month old, but I wanted to see if you were still having questions. Building basic user authentication systems is pretty easy. The best way to do that is to set up a mysql database for the username and password. When logging in, just take in the username and password from the form, and check it against the mysql database. If the login is successful you can set some session variables for use on the site. If you have pages that you want protected for members only, just do a session check. Remember that to access the variables you must start the session on each accessing page.
Authentication:
CODE
<?php
session_start(); if ($_SESSION['loggedin'] != "true") { header("Location: redirectPath.php"); }
?>
Just read up on session variables and you should be alright. Let me know if you need more clarification.
I am currently learning PHP and MySQL as I have a website (virtual pet community) in which I paid for a script then was left with no support so had to learn it myself. lol As it turns out I have become addicted to PHP and MySQL and love the flexibility and potential it offers my website.
My website has a config, global and header document which I believe contain global settings (hence the name lol).
There are a few projects I am working on in which I want to be able to indetify a user who is logged in.
For example ... I am creating message boards and want to be able to automatically identify the user instead of having to ask them to fill in their name. I would also like to be able to set up an online user list that displays the names of all those online. (I currently have an online list that is not ideal and I cant seem to change it)
I know that the members have a ID number and then that is somehow linked to the username.
I expect this may be too tricky to ask but would someone be able to teach me how to extract this information so I can use it on my message boards etc?
I think there is already settings for the $userid which I see is commonly used to idetify users but when ever I have tried using it I cant seem to get the same result.
anyone know any tutorial about upload video any file of video, to (database or server) and playback that video , i am just new in php ... plzz help me .. thank you so much
Hello, I would like to learn how to pass variables using sessions. i can't find a tutorial that makes sense to me. i'm very new at php.
i know how to get variables from forms but want to display an already defined variable on another page when the user pushes a submit button.
for example: $fname ="Carlos";
//now, on another page i want to be able to show display the $fname variable.
I would like to learn more about sessions so feel free to go more into depth but i need to start at beginning.
thank you very much.
I would very much like to make an article about this, I have another one dedicated to PHP Security as well, just waiting on the submissions of them to be fixed.
I would like to start an advertising pixel site and i would like to create it from scrap does anyone know any tutorials for pixel advertising scripts thanks in advance
I need a tutorial on how to make the results from a form go into a table. Like where someone can enter name, phone number, email, etc, and it go into a table with columns for each area. Seems simple, but not sure.
I need a tutorial on how to make the results from a form go into a table. Like where someone can enter name, phone number, email, etc, and it go into a table with columns for each area. Seems simple, but not sure.
Thanks
I'll write you one today. Look for it later this afternoon if it gets approved.
LDAP Authentication against Active Directory, mac servers and Linux servers would be awesome. I don't know too much about LDAP, and I've been told there are heaps of hidden traps in AD because Microsoft were lame with their accordance to the specification.
Basically, I am trying to make a login script that asks the directory service (on whatever platform), to authenticate a username and password.
anyone know any tutorial about upload video any file of video, to (database or server) and playback that video , i am just new in php ... plzz help me .. thank you so much