This file contains 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 | |
/** | |
* dan | |
* versi: asal jalan sudah.. | |
*/ | |
class htmlTable { | |
/** |
This file contains 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
foreach($_POST as $key => $value) { | |
$_POST[$key] = mysql_real_escape_string($value); | |
} |
This file contains 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
change | |
$(document).ready(function(){ | |
//place codes here.. | |
)} | |
to | |
jQuery(function($){ | |
//place codes here.. |
This file contains 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 | |
foreach (getallheaders() as $name => $value) { | |
echo "$name: $value\n"; | |
} | |
?> |
This file contains 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 | |
function emu_getallheaders() { | |
foreach ($_SERVER as $name => $value) | |
{ | |
if (substr($name, 0, 5) == 'HTTP_') | |
{ | |
$name = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5))))); | |
$headers[$name] = $value; | |
} else if ($name == "CONTENT_TYPE") { | |
$headers["Content-Type"] = $value; |
This file contains 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 | |
if (!function_exists('apache_request_headers')) { | |
function apache_request_headers() { | |
foreach($_SERVER as $key=>$value) { | |
if (substr($key,0,5)=="HTTP_") { | |
$key=str_replace(" ","-",ucwords(strtolower(str_replace("_"," ",substr($key,5))))); | |
$out[$key]=$value; | |
}else{ | |
$out[$key]=$value; | |
} |
This file contains 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
if (!function_exists('getallheaders')) | |
{ | |
function getallheaders() | |
{ | |
foreach ($_SERVER as $name => $value) | |
{ | |
if (substr($name, 0, 5) == 'HTTP_') | |
{ | |
$headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value; | |
} |
This file contains 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
<!doctype html> | |
<html> | |
<title>is_readable?</title> | |
<script type="text/javascript" src="file_get_contents.js"></script> | |
<script type="text/javascript"> | |
function is_readable(file) { | |
//http://phpjs.org/functions/file_get_contents:400 | |
var _file = file_get_contents(file); | |
if (_file) { | |
var _length1 = _file.replace("<h1>Object not found!</h1>", "LOL", _file); |
This file contains 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
function is_readable(file) { | |
//http://phpjs.org/functions/file_get_contents:400 | |
var _file = file_get_contents(file); | |
if (_file) { | |
var _length1 = _file.replace("<h1>Object not found!</h1>", "LOL", _file); | |
var _length2 = _file; | |
if (_length1.length === _length2.length) { | |
return true; | |
} | |
return false; |
This file contains 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
1. Value my time like you care for your money. Wealthy coder is not a coder at all. They're genius. If I am too skilled for you I don't put my title as coder, everywhere. It should be Programmer, or Rocket builder. |
OlderNewer