Monthly Archives: มิถุนายน 2013

PHP-CS-Fixer Analyzes some PHP source code and tries to fix coding standards issues (PSR-1 and PSR-2 compatible) ออโต้ทำโค้ดทั้งหมดของคุณให้ตรงตามมาตรฐานการเขียน เช่น indent , php tag , function

Posted in technology | 1 Comment

copy image binary data to disk

$image_binary_data = is the binary data $image_local_path = "/some_folder"; file_put_contents($image_local_path,$image_binary_data)

Posted in php | Leave a comment

display image from binary data

$picture = is the binary data $en=base64_encode($picture); $mime="image"; $binary_data="data:" . $mime . ";base64," . $en ; <img src="&lt;?php echo $binary_data; ?&gt;" alt="Test" />

Posted in php | Leave a comment