Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying To Learn PHP

Status
Not open for further replies.

zedron

Technical User
Feb 18, 2005
4
US
Im trying to learn how to do PHP. So first off i installed teh mysql, apache, and php server. Plus i installed myphpadmin and in that made a database with a table containing two fields (user/password)and populated it with a username and password. Im trying to make a basic login site. im using dreamweaver to edit but i cant figure out how to access the database i created because i have no clue where it is and the dir which to tell dreamweaver to look. if anybody could get me a step by step tutorial on how to do this it will be greatly appreciated
thanks
 
using dreamweaver won't really help you learn php, but it is an ok starting point as a php editor.

a logon script is a good place to learn the php, html mysql interaction. have a look at the step-by-step tutorial here
 
thnx, also when u create a database in myphpadmin... where does it get stored at? and how do i create a directoy on mysql server for the site im going to make?
 
data added is stored in a database which is administrered by the mysql db server. the actual filestore for the database tables is determined during the mysql installation process and is written to the my.ini file. it can be changed.

how do i create a directoy on mysql server for the site im going to make

there is no need for the site to be on the same machine as the mysql server, so long as one can talk to the other. if they are on the same machine, then your site will typically be in a directory under htdocs (in apache) and you absolutely should be make sure that the mysql data is outside of the web server's grips
 
thnx, im soo lost, i think im going to stick to html ,lol
 
when i try to connect dreamweaver to the database i get this error

HTTP Error Code 404 File not found. Here are some possible reasons.

1.no testing server running on server machine
2. the testing server specified does not map to the "address" URL. verify that the url prefix map to teh root of the site
 
Forget Dreamweaver for PHP coding (unless you use it as a straight editor). You will rely on Macromedia supplied code snippets and concepts which leave a lot to be desired.

Writing code starting with the most simple "Hello World" stuff is the better way long term. You really want to understand what is going on. Looking at DW written code I have to start thinking myself harder than necessary.

Find a good book (a recent one please) for PHP and go through that. There are also many on-line tutorials, just Google for them. Be aware of older texts assuming register_global settings are ON.

Good luck. PHP is fun and easy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top