Category Archives: PHP Code

PHP Code

วิธี การเปลี่ยนเว็บเป็นสีขาวดำ เพื่อ ร่วมไว้อาลัยถวายแด่ “ในหลวง” รองรับ IE

html { height:auto; min-height:100%;
filter: url(“data:image/svg+xml;utf8,<svg xmlns=\’/svg\’><filter id=\’grayscale\’><feColorMatrix type=\’matrix\’ values=\’0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\’/></filter></svg>#grayscale”);
filter: gray;
-webkit-filter: grayscale(1);
}

วิธี การเปลี่ยนเว็บเป็นสีขาวดำ เพื่อ ร่วมไว้อาลัยถวายแด่ “ในหลวง” Joomla

นำ code file  ด้านล่าง ไปเพิ่ม ใน  css/template.css  ที่เราใช้งานอยู่

img {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
html {
-webkit-filter: grayscale(100%);
}

 

เสร็จแล้ว  Save  file

 

การเปลี่ยนเว็บเป็นสีขาวดำ เพื่อ ร่วมไว้อาลัยถวายแด่ “ในหลวง”

wordpress  เข้าไปแก้ใน Theme   ที่ใช้งาน เสร็จแล้ว  เลือก  themes–>editor–>style.css

 

แล้วเพิ่ม code  ดังต่อไปนี้   ลงด้านล่างสุด  แล้ว save file

img {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
html {
-webkit-filter: grayscale(100%);
}

 

window Server code show mac address code php

code show macaddress php

<?
// Turn on output buffering
ob_start();

//Get the ipconfig details using system commond
system(‘ipconfig /all’);

// Capture the output into a variable
$mycomsys=ob_get_contents();

// Clean (erase) the output buffer
ob_clean();

$find_mac = “Physical”;
//find the “Physical” & Find the position of Physical text

$pmac = strpos($mycomsys, $find_mac);
// Get Physical Address

$macaddress=substr($mycomsys,($pmac+36),17);
//Display Mac Address

echo $macaddress;
?>

ok work

Continue reading