Jump to content

phlai

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

phlai's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Oh ic!! Thanks!! I will try it out!!  ;D
  2. Hi Guys, Im new to php.. May i ask some questions? If I want to centralize some of the common variables into a php file, and access them through it, may i know how? Example.. Index.php      - Default page Settings.php  - Common variables that can be reused by all the php files                   - Eg. $Database_name, $Database_username, $Database_password Category.php -Have a function to retrieve database information. Index.php include both Settings.php, and category.php by:     require_once("Settings.php");     require_once("Category.php"); But when in Category.php i want to use the variable $Database_name i cannot access it.. Is there a offical way to store all the common variable in the common access php file?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.