Skip to content

Instantly share code, notes, and snippets.

@dca
dca / func.sql_escape.php
Created October 13, 2012 01:57
PHP 輸入處理
<?php
//輸入處裡
$in = array();
foreach ($_GET as $key => $value) {
$in[$key] = mysql_real_escape_string($value);
}
@dca
dca / gist:3876643
Created October 12, 2012 00:36
Python - Post with Thread
import urllib2, urllib
import time
from threading import Thread
URL = 'http://#########'
Count = 5
def myfunc(i):
data = {}