1.jpg
1.下載與安裝Python
Python官方網站找到Downloads,點選View the full list of downloads.

moyunhost 發表在 痞客邦 留言(0) 人氣()

1.png
1.下載與安裝Composer
此網址點擊Getting Started

moyunhost 發表在 痞客邦 留言(0) 人氣()

1.png
1.下載與安裝XAMPP
XAMPP官方網站找到XAMPP for Windows選擇你要的版本下載並安裝

moyunhost 發表在 痞客邦 留言(0) 人氣()

IMG_6674.JPG
工具
紅小萬、瓦斯爐、不鏽鋼鍋子

moyunhost 發表在 痞客邦 留言(0) 人氣()

S7 MaxV Ultra
「科技始終來自於惰性」,石頭科技於2022年推出全新的掃拖機器人 S7 MaxV Ultra,擁有五項全自動、六合一清潔座、5100Pa吸力,稱為掃地界真王者一點也不為過。
因為是第一批倒數的名單,在社團中看到許多人已經分享心得,有些人因為物流關係只先收到一箱,心想這也太難熬了。幸運的是於周六一早順利收到兩箱,收到商品後迫不及待進行開箱,馬上進行配對、充電 (注意商品第一次使用要先充飽電)。

moyunhost 發表在 痞客邦 留言(0) 人氣()

$url = 'https://moyunhost.pixnet.net';
$executeTime = ini_get('max_execution_time');
ini_set('max_execution_time', 0);
$headers = @get_headers($url);
ini_set('max_execution_time', $executeTime);
if($headers){
    $head = explode(' ', $headers[0]);
    if(!empty($head[1]) && intval($head[1]) < 400) $return = true;
}else{
    $return = false;
}

moyunhost 發表在 痞客邦 留言(0) 人氣()

protected function CheckIP(){
    $ch = curl_init();
    $timeout = 5;
    $ip = $_SERVER['HTTP_HOST'];
    $url = "http://ip-api.com/json/{$ip}?fields=country";
    curl_setopt ($ch, CURLOPT_URL, $url);
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
    $fileContents = curl_exec($ch);
    curl_close($ch);
    $fileContents = json_decode($fileContents, true);
    if($fileContents["country"] == 'Taiwan') show_404();
}

moyunhost 發表在 痞客邦 留言(0) 人氣()

一、資料庫一次轉換所有資料表編碼
$conn = new MySQLi("localhost","資料庫帳號","資料庫密碼","資料庫名稱");
if($conn->connect_errno){
    echo mysqli_connect_error();
    exit;
}
$res=$conn->query("show tables") or die($conn->error);
while($tables=$res->fetch_array()){
    $conn->query("ALTER TABLE $tables[0] CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci") or die($conn->error);
}
echo "The collation of your database has been successfully changed!";
$res->free();
$conn->close();

moyunhost 發表在 痞客邦 留言(0) 人氣()

ini_set('session.use_cookies','1');
ini_set('session.gc_divisor','1');
ini_set('session.cookie_path', '/');
ini_set('session.cookie_lifetime','2592000');
ini_set('session.gc_maxlifetime','2592000');
$lifetime = 60*60*24*30; //單位秒,3600秒=1小時
session_save_path($_SERVER['DOCUMENT_ROOT'].'/sessions');//主機需將session轉移到我們自己設定的目錄儲存
if (isset($_COOKIE['PHPSESSID'])) {
session_id($_COOKIE['PHPSESSID']);// 重置該頁面的ssesion_id
session_set_cookie_params($lifetime);
@session_start();
}else{
@session_start();
setcookie(session_name(), session_id(), time() + $lifetime);
}

moyunhost 發表在 痞客邦 留言(0) 人氣()

1
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。