Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
- header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT"); // always modified
- header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
- header("Pragma: no-cache"); // HTTP/1.0
- $dbHost = "localhost";
- $dbUser = "xxx";
- $dbPass = "xxx";
- $dbName = "xxx";
- session_start();
- function connectDatabase()
- {
- global $dbHost, $dbUser, $dbPass, $dbName;
- if (!($link = @mysql_connect($dbHost, $dbUser, $dbPass))) exit("Couldn't connect to database server");
- if (!@mysql_select_db($dbName, $link)) exit("Couldn't select $dbName database");
- @mysql_set_charset('utf8', $link);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement