php application global config and settings – php superglobals

php application global config and settings – php superglobals

Today, We want to share with you php application global config and settings – php superglobals.
In this post we will show you php application global config and settings – php superglobals, hear for php application global config and settings – php superglobals we will give you demo and example for implement.
In this post, we will learn about php application global config and settings – php superglobals with an example.

// Debugging simple in php
ini_set('error_reporting', E_ALL);

define('DATABASE_HOST', 'localhost');
define('DATABASE_NAME', 'dbname');
define('DATABASE_USER', 'root');
define('DATABASE_PASS', 'new*******');

define('COMPANY_LOGO', 'images/logo.png');//your company logo
define('COMPANY_LOGO_WIDTH', '458'); // logo width
define('COMPANY_LOGO_HEIGHT', '925');  // logo height
define('COMPANY_NAME',''); // your company name
define('COMPANY_ADDRESS_1','bhudev char rasta chock'); // company Address 1
define('COMPANY_ADDRESS_2','paldi asharm road gav');// company Address 2
define('COMPANY_ADDRESS_3','Ahemdabad');// company Address 3
define('COMPANY_COUNTY','Gujrat');// company Address 4
define('COMPANY_POSTCODE','E17 8EE');// Browser version

define('COMPANY_NUMBER','your Company No: 8995656784'); // Company invoce registration number
define('COMPANY_VAT', 'your Company VAT: 9898225624'); // Company latest TAX/VAT number

// Latest simple EMAIL DETAILS
define('EMAIL_FROM', '[email protected]'); // company Email address your basic invoice emails will be sent from
define('EMAIL_NAME', 'Tata company limited'); //company Email from address
define('EMAIL_SUBJECT', 'your Invoice subject'); //simple Invoice email subject
define('EMAIL_BODY_INVOICE', 'simple Invoice body'); //company Invoice email body
define('EMAIL_BODY_QUOTE', 'and last Invoice body'); //company Invoice email body
define('EMAIL_BODY_RECEIPT', 'simple Invoice body'); // company Invoice email body

define('INVOICE_PREFIX', 'DSP'); // bill invoce name Prefix at start of invoice like as (_invoicedate) - leave empty '' for no prefix
define('INVOICE_INITIAL_VALUE', '6582'); // sample Initial invoice started on 1001 etc order number (start of increment)
define('INVOICE_THEME', '#3D3D3D'); // your Theme latest colour, this sets a colour defines theme for the PDF generate invoice
define('TIMEZONE', 'Europe/London'); //default company Timezone
define('DATE_FORMAT', 'DD/MM/YYYY'); //default date and time format DD/MM/YYYY or MM/DD/YYYY
define('CURRENCY', '£'); //company Currency symbol
define('ENABLE_VAT', true); //company Enable set TAX/VAT
define('VAT_INCLUDED', true); //company Is set VAT included or excluded?
define('VAT_RATE', '24'); //company This is set the percentage value

define('PAYMENT_DETAILS', 'Company Name Ltd<br>Sort Code: 00-00-00<br>Account Number: 9825485'); // Payment information
define('FOOTER_NOTE', '');//footer name global



Demo – Source code

Read Also:  Vue.Js Date & Time Function with Example

We hope you get an idea about php application global config and settings – php superglobals
We would like to have feedback on my Information blog .
Your valuable any feedback, Good question, Inspirational Quotes, or Motivational comments about this article are always welcome.
If you liked this post, Please don’t forget to share this as Well as Like FaceBook Page.

Read Also:  PHP string to int | php cast to int

We hope This Post can help you…….Good Luck!.

Related FAQ

Here are some more FAQ related to this Article:

  1. Read Also:  PHP Force File Download HTML button code
  2. Read Also:  PHP access Global-Superglobals array Variables
  3. Read Also:  Laravel 6 JQuery Ajax Post Request Example
  4. Read Also:  PHP Yii Framework Global Variables Tutorial with Examples
  5. Read Also:  Laravel Route pass multiple Parameters Examples
  6. Read Also:  How to Solve Error call to a member function toArray() on null?
  7. Read Also:  PHP access global variable in function
  8. Read Also:  PHP Functions - MY SQL Connects and Global Variable
  9. Read Also:  Angular 9/8 Radio Button on Form Submit
  10. Read Also:  CodeIgniter Beginners Tutorial Step by Step