Important Constants In PHP project.

Discussion in 'PHP' started by Samee Ullah Feroz, Dec 17, 2013.

  1. Samee Ullah Feroz

    Samee Ullah Feroz New Member

    Joined:
    Dec 17, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Code:
    <?php
       //Website Constents Define
       define('weburl', '<a href="http://goo.gl/MOXzds">FreeInsuranceNC.Com</a>');
       
       define('sitename', 'Free Insurance NC'); //Site Name Constant
       
       //My Sql Constants Define
       define('server', 'localhost');
       
       define('dbname', 'jokes');
       
       define('dbuname', 'root');
       
       define('dbpass', '');
    ?>
    You can define constants like it I am using these constants on this site and these works
    Free Insurance NC
     
  2. Aaronaxel

    Aaronaxel New Member

    Joined:
    Feb 13, 2015
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    relevant post...
     

Share This Page