Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum > Tech Talk
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 11-27-2013, 10:42 AM   #1
Rocky Raccoon
Lifetime Suspension
 
Join Date: Sep 2012
Exp:
Default Help setting up a PHP template website

Hello ladies and gents,

I have a website that I had setup for me that I understand enough how to work with it and troubleshoot for issues.

I want to setup a website to supplement the one I already have.

I have created a database and have template files moved to the FTP, but I have no idea how to direct them to the database to make it all work.

I have been to many sites and watched a ridiculous amount of YouTube tutorials but they all seem to only discuss how to code a website and modify it, not how to actually make it "go". Does anyone have PHP experience and if so, would you mind assisting me?

Thank you so much in advance.
Rocky Raccoon is offline   Reply With Quote
Old 11-27-2013, 11:16 AM   #2
Regular_John
First Line Centre
 
Regular_John's Avatar
 
Join Date: Feb 2010
Location: Calgary
Exp:
Default

It varies from site to site & could be dependant on your CMS (eg: wordpress/drupal) but typically you'll have some variation of of config.php in the root of your site (it's probably wp-config.php if we're talking wordpress).

Anyways within that config file you'll typically have the following (or something like it) to define your database name, url/host, as well as a username/password for that database:

---------------------------------------------

define('DB_NAME', 'newsitedatabase'); /* Name of your new database /

/** MySQL database username */
define('DB_USER', 'username'); /* Username for database */

/** MySQL database password */
define('DB_PASSWORD', '123123'); /* Password for database */

/** MySQL hostname */
define('DB_HOST', 'localhost'); /* URL for the base, localhost is common, but not always the case */

---------------------------------------------


Your best bet may be to do a site wide search for something like DB_HOST to see where it's buried in your particular site.
Regular_John is offline   Reply With Quote
The Following User Says Thank You to Regular_John For This Useful Post:
Old 11-27-2013, 12:58 PM   #3
Rocky Raccoon
Lifetime Suspension
 
Join Date: Sep 2012
Exp:
Default

Sorry about that mods, should have put it in tech talk instead of off topic.
Rocky Raccoon is offline   Reply With Quote
Old 11-27-2013, 02:44 PM   #4
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

No worries!
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 11:57 AM.

Calgary Flames
2023-24




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021