This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* This function is reponsible for rest the database. | |
* take two parameter first is array for connection to the database | |
* It will like ["hostname","dbuser","dbpass","dbname"] | |
* Secound argument for the reset db file location. | |
* first establish the connection , and then tranclate all table, | |
* Then read the content form the database file, | |
* insert all db file content using multiquery |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading | |
# slashes. | |
# If your page resides at | |
# http://www.example.com/mypage/test1 | |
# then use | |
# RewriteBase /mypage/test1/ | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$headers = ‘MIME-Version: 1.0′ . “\r\n”; | |
$headers .= ‘Content-type: text/html; charset=iso-8859-1′ . “\r\n”; | |
$headers .= ‘From: [email protected]’ . “\r\n”; | |
mail(“[email protected]”,”test subject”,”test body”,$headers); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const http = require("http"), | |
fs = require("fs"), | |
path = require("path"), | |
log = console.log; | |
//this will response with file type with specifiq content and encode | |
function response(res, file, contentType, encode) { | |
if (file != "404") { | |
res.writeHead(200, { "Content-type": contentType }); | |
if (encode) { |
NewerOlder