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.
<?php // Debugging simple in php ini_set('error_reporting', E_ALL); // simple DATABASE INFORMATION define('DATABASE_HOST', 'localhost'); define('DATABASE_NAME', 'dbname'); define('DATABASE_USER', 'root'); define('DATABASE_PASS', 'new*******'); // COMPANY INFORMATION 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','www.tatacompany.com'); // 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 //Simple OTHER SETTINFS 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', 'http://www.pakainfo.co.uk/');//footer name global // simple your CONNECT TO THE DATABASE $mysqli = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASS, DATABASE_NAME); ?>
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.
We hope This Post can help you…….Good Luck!.
I am Jaydeep Gondaliya , a software engineer, the founder and the person running Pakainfo. I’m a full-stack developer, entrepreneur and owner of Pakainfo.com. I live in India and I love to write tutorials and tips that can help to other artisan, a Passionate Blogger, who love to share the informative content on PHP, JavaScript, jQuery, Laravel, CodeIgniter, VueJS, AngularJS and Bootstrap from the early stage.