| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| php login problem | |
|---|---|
| Tweet Topic Started: Jun 22 2005, 12:44 PM (701 Views) | |
| Gimliisadwarf | Jun 22 2005, 12:44 PM Post #1 |
![]()
Member
![]() ![]() ![]()
|
well i found some site where it shows you how to make a php login thing and make it work and all http://www.free2code.net/plugins/articles/read.php?id=99 well i saved everything i should have i uploaded it to the webhost and i get this problem on every page
http://gimliisadwarf.gi.funpic.org/ yea there is the site on and all the documents required to make it work... but it doesnt ![]() here is an example of one of them that doesnt work
can someone please help? |
![]() |
|
| Ben | Jun 22 2005, 12:50 PM Post #2 |
|
Quantum-locked when observed.
![]()
|
You need to upload DB.php.
|
![]() |
|
| Gimliisadwarf | Jun 22 2005, 01:15 PM Post #3 |
![]()
Member
![]() ![]() ![]()
|
I have uploaded all the files i should have done... lol or atleast thats what the site said ![]()
but I read on the site that you had to fill in that ^ like with your username password and all... Not sure if that is it but what do i put under db_host?? |
![]() |
|
| Jory | Jun 22 2005, 01:32 PM Post #4 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Just put in the file DB.php and remove the lines from the other files. db_host should be where the database is hosted. (When creating a database, they should tell you. Though localhost will be it a lot of times) |
![]() |
|
| Ben | Jun 22 2005, 01:33 PM Post #5 |
|
Quantum-locked when observed.
![]()
|
Yes, you need to fill in your username and password to the MySQL database, as well as the database you would like to access. The db_host is almost always "localhost".
Ah, I see that DB.php is the PEAR library's database file. . . . Check if your webhost supports the PEAR library, because then it should have that file. . . . :blink: |
![]() |
|
| Gimliisadwarf | Jun 22 2005, 02:21 PM Post #6 |
![]()
Member
![]() ![]() ![]()
|
hmm i changed the username and password but that doesnt seem to be the problem... lol this is allot harder then i expected i dont think the website can support pear library... does anyone know of another way to do the same thing? (make a login thing and make it work) |
![]() |
|
| Jory | Jun 22 2005, 02:37 PM Post #7 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
*Qj feels like he is being ignored. Go 3 posts up, read, do, have a loggin script. (Assuming you did the rest right )
|
![]() |
|
| Ben | Jun 22 2005, 02:45 PM Post #8 |
|
Quantum-locked when observed.
![]()
|
The DB.php file is apparently the PEAR file for DB classes. As you can see in the rest of the script, the class "DB" is constantly being used. So putting the aforementioned information into a file and calling it DB.php will be no use, because one would still have to write the DB class. The alternative is to not use PEAR at all, which would mean to completely rewrite the existing login script because it is dependent upon PEAR. It is perfectly possible, however I do not have a suitable example on hand at the moment. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
4:55 AM Jul 11
|




![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)




4:55 AM Jul 11