Get DPI value of an image using PHP
This is a simple function I wrote to get a DPI (dot per inch) value from an image using PHP only, without the need of ImageMagick nor GD library. The script was inspired from denisb post (the third post). At the forum, he described how to get the DPI value stored within the file. <
Anti spam sederhana menggunakan PHP
Di beberapa postingan di blog ini sering banget diserang sepam. Salah satu ciri utama sepam tersebut adalah menuliskan URL ke dalam form komentar, kemungkinan untuk mendapatkan backlink agar situs dia naik posisi di search engine. Berdasar sifat sepam tersebut, saya tulis script sederhana agar komentar yang mengandung empat kata ‘https://’ atau lebih (yang biasa dituliskan
Revisi script untuk mendapatkan nilai DPI
Kemarin saya menulis script PHP untuk mendapatkan nilai DPI dari suatu gambar JPG. Yang saya maksud DPI itu, resolusi gambar itu lho. Misalnya 72 DPI atau 300 DPI (Dots per Inch). Nah, gara-gara diprotes oleh progremer tanpa blog, berikut ini revisinya. Kalau kemarin saya tulis bahwa kita hanya perlu mengambil byte ke 14-18, kali ini
Memeriksa DPI file JPG menggunakan PHP
Script ini berawal dari tugas di kantor untuk mencari cara mengetahui DPI dari suatu image. Googling mentok, kebanyakan menyarankan menggunakan ImageMagick yang berarti harus ngoprek server dan tentu saja menjadi solusi terakhir. Lalu akhirnya nemu sedikit petunjuk di https://www.thescripts.com/forum/thread5948.html. Intinya, ukuran DPI ini tersimpan di byte 14-18 dari suatu file JPG. Script berikut ini akan
Youtube Downloader using PHP
This short tutorial will show you how to download videos from Youtube using PHP. CURL is needed for this script because many webhosting now prohibit remote_fopen. First function, get HTML content from an URL:< ?php function get_content_of_url($url){ $ohyeah = curl_init(); curl_setopt($ohyeah, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ohyeah, CURLOPT_URL, $url); $data = curl_exec($ohyeah); curl_close($ohyeah); return $data; } ?> Second
Veoh’s Video Downloader
Here is the script that you can use to download videos from veoh.com. I wrote this script to bid a project at rentacoder.com and finished the code within half an hour. Consist of three functions and you can put them all into a class. But I prefer let them apart. // this is used to
Podcast – Listen to the blog posts
This player will play audio for every blog post available in this blog. You will see entries as a playlist and just click to hear the voice. Now you can listen to this blog, not only read ^_^ Powered by TalkR.com
Check Filesize Of Remote File Using PHP
This script is used to check filesize for a file located on a remote (far away) web server. < ?php function get_remote_size($url){ $uh = curl_init(); curl_setopt($uh, CURLOPT_URL, $url); // set NO-BODY to not receive body part curl_setopt($uh, CURLOPT_NOBODY, 1); // set HEADER to be false, we don't need header curl_setopt($uh, CURLOPT_HEADER, 0); // retrieve last
Force Download Image File
This script is useful when we want to download an image file (JPG, PNG, GIF) instead of preview it into our browser. A download dialog will appear and the image will not be displayed. < ?php // Define the image type. We can remove this but not recommended header("Content-type: image/jpeg"); // Define the name of
Solusi SMS Jadwal Bioskop Non-Mentari
Pada tulisan sebelumnya, tentang script SMS jadwal tayang bioskop 21, banyak komentar yang menanyakan solusi bagi operator seluler non Mentari. Untuk kartu Matrix, Anda bisa menggunakan libmatrixsms instead of libmentarisms. Silahkan diubek-ubek saja, bukan script yang rumit kok. Dan cara pemaikaiannya pun relatif mudah, ada contoh yang disertakan. Lalu bagaimana dengan pemakai AS, XL, Simpati
Script SMS Jadwal Tayang Bioskop 21
Saatnya sharing script yang akan otomatis mengirimkan SMS ke nomer henpon kita setiap pagi yang berisi jadwal tayang bioskop 21 Yogyakarta. Saya belum nyoba untuk kota lain, silahkan dicoba saja ganti URL dengan URL kota lain. Script ini memanfaatkan libmentarisms untuk mengakses klub-mentari.com, jadi Anda harus punya account di sana jika ingin memanfaatkan script ini.
Youtube Downloader jalan lagi
Dulu saya pernah menulis script untuk download video dari Youtube menggunakan PHP. Namun beberapa hari belakangan, tepatnya beberapa hari sebelum PestaBlogger, Youtube merubah source code mereka sehingga script saya ndak bisa jalan. Lalu ada mas-mas bule yang komplain karena script saya ndak jalan he.he. Untung pas di acara pestabloger saya ndak bawa notbuk, bisa-bisa saya
Archives
- April 2025
- March 2025
- February 2025
- November 2023
- January 2023
- October 2022
- August 2022
- April 2022
- March 2022
- January 2022
- July 2021
- October 2020
- August 2020
- June 2020
- January 2020
- November 2019
- July 2019
- December 2018
- October 2018
- September 2018
- August 2018
- May 2018
- March 2018
- February 2018
- December 2017
- September 2017
- June 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- May 2014
- April 2014
- March 2014
- February 2014
- November 2013
- October 2013
- September 2013
- July 2013
- June 2013
- January 2013
- December 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- June 2006
- March 2006
Calendar
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | |||||