![]() |
Setting Up connect.php
The following is some guidance on just how to fill in the parameters for your phpdig database connection script, connect.php. You'll note that there are five parameters to be defined:
Code:
define('PHPDIG_DB_PREFIX','<dbprefix>'); For the remaining parameters, the easiest way to tell what they should be is to look at what shows up on phpMyAdmin, on your web host's control panel. Here's one example: Code:
Database prefixname_phpdigdb running on localhost 1) The database has a prefix called prefixname 2) phpdigdb is the database name 3) The MySQL database is running on localhost, meaning that it is running on the same server as your website Hence, your connect.php file would be set like so for the following variables: Code:
define('PHPDIG_DB_PREFIX','prefixname'); Code:
Database phpdigdb running on sql02.server25.host.com 1) There is no database prefix 2) phpdigdb is the database name 3) The MySQL database is running on a server called: sql02.server25.host.com Hence, your connect.php file would be set like so for the following variables: Code:
define('PHPDIG_DB_PREFIX',''); |
Hi. One thing to add is that if you use the install.php file, and you don't have permission to create database such as with certain hosting accounts, then you should run install.php and select create tables instead, and then you shouldn't have to mess with _connect.php or connect.php, assuming you use the correct database info when you run the install.php file.
|
All times are GMT -8. The time now is 03:26 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.