I need a little info/advice
Posted: Tue Sep 17, 2002 8:41 pm
I'm working on learning this PHP thing so if someone could just answer these few questions that i got.
First off... i'm using Dreamweaver MX for windows to create my webpages/webapplications. In it, you can easily create PHP pages that interact witht the MySQL database. With that in mind...
1.) When this happens though, php scripts that interact with the database have some sort of a "connection" tag that points to a different php file. The php file it points to contains info for connecting to the database, including the username and password in plain text. How can i prevent someone from downloading that file and then gaining access to my database?
And my last 2 questions (for now)...
Dreamweaver MX has great tutorials, but just when i got to the dynamic forms part, it said something like "Unfortunately this part of the tutorial has no info for PHP or asp.NET". Ok so i'll have to figure this out on my own, with some advice...
2.) I want to create a login/password page. You enter the username/password and when you click send, it forwards you to a page something like "form_process.php", and after "form_process.php" searches the database for the username and passwords, it sends you to a login successful page. So i guess that this would require 3 pages... this is possible right?
3.) I hear you can do just about anything with PHP, so i'll assume you can do what i asked in the previous question... but how do you pass variables and other info to other pages? Is it through cookies?
Now i'm not really asking for actual scripts here, but any advice is much appreciated!
Thanks for any info!
First off... i'm using Dreamweaver MX for windows to create my webpages/webapplications. In it, you can easily create PHP pages that interact witht the MySQL database. With that in mind...
1.) When this happens though, php scripts that interact with the database have some sort of a "connection" tag that points to a different php file. The php file it points to contains info for connecting to the database, including the username and password in plain text. How can i prevent someone from downloading that file and then gaining access to my database?
And my last 2 questions (for now)...
Dreamweaver MX has great tutorials, but just when i got to the dynamic forms part, it said something like "Unfortunately this part of the tutorial has no info for PHP or asp.NET". Ok so i'll have to figure this out on my own, with some advice...
2.) I want to create a login/password page. You enter the username/password and when you click send, it forwards you to a page something like "form_process.php", and after "form_process.php" searches the database for the username and passwords, it sends you to a login successful page. So i guess that this would require 3 pages... this is possible right?
3.) I hear you can do just about anything with PHP, so i'll assume you can do what i asked in the previous question... but how do you pass variables and other info to other pages? Is it through cookies?
Now i'm not really asking for actual scripts here, but any advice is much appreciated!
Thanks for any info!