Monday, October 31, 2011

Databases on WebhostingBuzz

So after I completed a few of those tutorials to load MySQL and PHP on my computer, I learned that they are already included as part of my cPanel in WebhostingBuzz.

I also learned that there are not yet any capabilities to store images in a database, so in the database, you just store the link to the image, where it is stored on your server. Here is a good website for details about having images in a database.

Connect File:
  • Don't put it into a public folder, or other people can hack into it.
  • "../" means go up a folder, so you can save it as "../connect.php"
  • Elements: name (i.e. "test"), Location (i.e. "localhost" or "127.0.0.1"), Password (i.e. "password")
  • "$" means variable
  • Require vs. require_once - difference is how many times they try to connect to DB

No comments: