Skip to content

Instantly share code, notes, and snippets.

View salayhin's full-sized avatar
🎯
Focusing

Md. Sirajus Salayhin salayhin

🎯
Focusing
  • Zeals Co Ltd
  • Tokyo, Japan
  • 17:52 (UTC +09:00)
  • LinkedIn in/salayhin
View GitHub Profile
This file has been truncated, but you can view the full file.
-- phpMyAdmin SQL Dump
-- version 3.4.10.1deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 16, 2013 at 12:29 PM
-- Server version: 5.5.29
-- PHP Version: 5.4.12-2~precise+1
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
@salayhin
salayhin / detect_browser_version.php
Created April 13, 2013 06:35
How to detect browser version.
$browsers = array(
'firefox', 'msie', 'opera', 'chrome', 'safari', 'mozilla', 'seamonkey', 'konqueror', 'netscape',
'gecko', 'navigator', 'mosaic', 'lynx', 'amaya', 'omniweb', 'avant', 'camino', 'flock', 'aol'
);
if (isset($_SERVER['HTTP_USER_AGENT'])) {
$browser['useragent'] = $_SERVER['HTTP_USER_AGENT'];
$user_agent = strtolower($browser['useragent']);
foreach($browsers as $_browser) {
@salayhin
salayhin / sitemap.php
Created May 31, 2012 19:48
Class for create sitemap in PHP
<?php
/**
* Create Site map
*
* @category Model
* @author Md. Sirajus Salayhin <[email protected]>
*
*/