Skip to content

Instantly share code, notes, and snippets.

View aufa's full-sized avatar

NAWA aufa

View GitHub Profile
@aufa
aufa / index.php
Last active August 13, 2016 13:05
Determine Base Url On PHP Scripts www.inforiatif.com
<?php
/**
* This is index main file
* Base URL helper
* @author awan <http://www.inforiatif.com>
* artcile : http://www.inforiatif.com/cara-menentukan-url-base-domain-di-php
*/
/* ------------------------------------------------------------------------------------------------------ \
HELPER
@aufa
aufa / mysql_backup_import.php
Last active April 23, 2021 23:31
PHP function to backup and import database using MYSQLI
<?php
/**
* @author awan < nawa (at) yahoo (dot) com >
*
*/
/**
* Function to build SQL /Importing SQL DATA
*
@aufa
aufa / MaxmindGeoIPCountryWhois.sql
Last active May 15, 2020 16:55
Import MAXMIND GEOLITE COUNTRY csv format into mysql .
--
-- this sql structure is for knowledgebase or educational only.
-- please do this on your localhost first before ypu test on your server
--
-- @author : awan
--
-- github : https://github.com/aufa/
--
-- @description this sql is for importing the MaxminD GeoLite Country to mysql data
-- first! we must download the csv format on maxmind developer site :http://dev.maxmind.com/geoip/legacy/geolite/