Feb 08, 2022
Echo or get the current page URL in a PHP page, use $_SERVER. Its build-in variable in PHP, which is used to fetch or echo the current page URL. Itβs available for all scope and its super global variable.The below examples show how it works and check URL on HTTPS or HTTP.<?php if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on'){ $url = 'https://'; }else{ $url = "http://"; } $url .=... more
Feb 08, 2022
How to import, export, and create a database in MySQL or MariaDBCreate a new database in MySQL or MariaDBFirst login to MySQL shell or MariaDB in putty using the below command.mysql -u root -pCreate new databasemysql> create database new_website;Check your database create or not usemysql> show databases;List of all databases will show in tables format. Export MySQL or MariaDB databasemysqldump -u username -p database_name > data-dump.sql;for examplemysqldump -u... more