Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.Username Password how do I set it up?
#1
Posted 27 July 2007 - 06:30 PM
#2
Posted 27 July 2007 - 11:38 PM
The easy way out is to search on the net for a free script that has what you want.
#3
Posted 28 July 2007 - 03:05 AM
#4
Posted 29 July 2007 - 08:23 PM
What you will need
A language
A database that can interface with the language
A host that supports your language and database
Free Time to expiriment and fix wrongs
I'm sure you might be able to get a login system pre built, but if your looking for some tutorials for mysql/php login system P.M. me and I can give you a few links.
Happy hunting.
"The only truly secure system is one that is powered off, cast in a block of concrete and sealed in a lead-lined room with armed guards -- and even then I have my doubts." --Eugene H. Spafford
"One man's terrorist is another's freedom fighter"
#5
Posted 30 July 2007 - 11:09 PM
#6
Posted 04 September 2007 - 12:26 AM
#7
Posted 04 September 2007 - 10:23 PM
First thing's first though. What is the first page your users will see? A login page? Can you access the login page on GoDaddy's server?
There are several logical steps to follow. First, make sure that the login page shows up first. Then make sure that when a person logs in that the information is being submitted to the server properly. Then you can worry about SQL stuff.
So I guess my question is, what do you have that works so far?
#8
Posted 04 September 2007 - 11:04 PM
#9
Posted 05 September 2007 - 08:30 AM
Now with that out of the way, you need a php script on the server to get the form information. Here is an example of a form (http://www.w3schools.com/php/php_post.asp):
<form action="welcome.php" method="post"> Enter your name: <input type="text" name="name" /> Enter your age: <input type="text" name="age" /> <input type="submit" /> </form>
This uses a POST method to send data to a php page called Welcome.php. (I'll let you research the difference between using a POST and GET method).
On the server, your php script has to get the form data. PHP uses $_REQUEST["some_string_name"]; to get the form information. So for example:
Welcome <?php echo $_REQUEST["name"]; ?>.<br /> You are <?php echo $_REQUEST["age"]; ?> years old!
This code would be in the Welcome.php file. In your case, you would want to do something else with the strings, but this is a good test to see if you can pass the form data to the .php file. The Welcome.php file should be in the same directory as your login page.
#10
Posted 05 September 2007 - 11:28 AM
#11
Posted 06 September 2007 - 07:00 AM
Boredom Software Stop Highlighting Things
#12
Posted 07 September 2007 - 12:15 AM
<?
/
* Constants.php
/
define("DB_SERVER", "10.8.11.162");
define("DB_USER", "something");
define("DB_PASS", "mypassword");
define("DB_NAME", "something");
define("TBL_USERS", "users");
define("TBL_ACTIVE_USERS", "active_users");
define("TBL_ACTIVE_GUESTS", "active_guests");
define("TBL_BANNED_USERS", "banned_users");
define("ADMIN_NAME", "admin");
define("GUEST_NAME", "Guest");
define("ADMIN_LEVEL", 9);
define("USER_LEVEL", 1);
define("GUEST_LEVEL", 0);
define("TRACK_VISITORS", true);
define("USER_TIMEOUT", 10);
define("GUEST_TIMEOUT", 5);
define("COOKIE_EXPIRE", 60*60*24*100); //100 days by default
define("COOKIE_PATH", "/"); //Avaible in whole domain
define("EMAIL_FROM_NAME", "YourName");
define("EMAIL_FROM_ADDR", "youremail@address.com");
define("EMAIL_WELCOME", false);
define("ALL_LOWERCASE", false);
?>and I uploaded all the other neccessary files now I tried typing in http://www.mywebsitepageeee/register.php and I get this message: Client does not support authentication protocol requested by server; consider upgrading MySQL client
what am I doing wrong??
#13
Posted 07 September 2007 - 12:18 AM
#15
Posted 11 September 2007 - 09:40 PM
mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
-> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES; and I have to put that in my Command line Interface, the only issue is that godaddy.com doesn't allow shell access to the sever. So that option is out any other suggestions?

Help



Back to top












