House of Xrvel

Just another WordPress weblog

Archive for the ‘Programming’ Category

Contoh Stored Procedure MySQL

with 2 comments

Apakah itu stored procedure MySQL? Secara singkat saja, stored procedure adalah sebuah function yang tersimpan di MySQL. Seperti layaknya sebuah function pada bahasa pemrograman lain, sebuah function bisa terdiri dari lebih dari satu baris, bermacam-macam operasi di dalamnya, mengandung variabel, dan lain-lain.
Read the rest of this entry »

Written by Xrvel

February 2nd, 2010 at 11:16 pm

Posted in Indonesian, PHP, Programming

Tagged with ,

Get Today Timestamp on PHP

with 2 comments

To get today timestamp on PHP (for example now is 2 Januari 2009, 13:32), you want to get timestamp of 2 Januari 2009, 13:32, you can get it by this PHP code

<?php $time = strtotime('Today'); ?>

Very simple with strtotime :)

Written by Xrvel

January 9th, 2010 at 10:13 am

Posted in PHP, Programming

Tagged with

Download File On PHP

with one comment

To download page (or file) by PHP, you can add this header to the page.
On PHP, you can use this function

header('Content-Disposition: attachment; filename="SOMETHING.HTML"');

On other web programming, you can use other function. The basic idea is by adding this header

Content-Disposition: attachment; filename="SOMETHING.HTML"

Written by Xrvel

October 11th, 2009 at 10:35 am

Posted in Programming

Tagged with

Login to Remote URL with PHP Curl

with 2 comments

If you want to fetch page from remote URL or you want to perform form submission to a remote URL, here is a solution for you. You should use PHP curl.
Read the rest of this entry »

Written by Xrvel

February 24th, 2009 at 12:58 pm

Posted in PHP

How to Delete or Disable WordPress Post Revisions

without comments

Since WordPress version 2.6, everytime you edit your existing posts, a revision will be recorded to your database. Of course this eats your database space.
In most case, we do not need this feature. We have to save some space.
Read the rest of this entry »

Written by Xrvel

January 14th, 2009 at 8:42 pm

Posted in PHP, Programming, Website

Tagged with

Check Your Bandwidth Speed

with 2 comments

SpeedActually, i use the resource from SpeedTest.net, but you can check your bandwidth speed width the mini version here. Your browser must support flash and has javascript enabled.
Read the rest of this entry »

Written by Xrvel

January 9th, 2009 at 6:55 pm

Posted in PHP, Programming, Website

Tagged with

Upgrade Your Script Automatically

with one comment

Usually, most of your online script have to be updated regularly such as your online WordPress installation or other installation.

Usually, we download the script from the script download site to our local computer, and we upload it to our server.
Sometimes, it’s frustrating because the file is relatively big and we have to upload it from our local computer to our local server manually.
Now we don’t need to download it to our local computer and upload it manually.
Read the rest of this entry »

Written by Xrvel

January 8th, 2009 at 10:27 am

Posted in Featured Articles, PHP

Tagged with ,

PassBank, Password Manager

with one comment

Since i use lot of random and long passwords (for example 20 random alphanumeric characters) as passwords on my important accounts, i can’t memorize them all.
So i made my own password manager to store my various passwords.
This is a desktop application that runs on Windows.
It needs no database connection, the user only needs to copy and paste the software.

Read the rest of this entry »

Written by Xrvel

December 26th, 2008 at 4:09 pm

Posted in Programming

Tagged with ,

Animated Captcha

with 14 comments

I’ve uploaded it somewhere, but here, you can get the official animated captcha :)

Animated Captcha

Read the rest of this entry »

Written by Xrvel

December 12th, 2008 at 3:00 pm

Posted in Featured Articles, PHP

Tagged with ,

Country IP Blocking

with 13 comments

If you run a proxy, you may want to block visitors that are from some countries, based from their IP address. And i will tell you how to do this with a little bit of PHP programming (just a simple one, believe me :D )

Read the rest of this entry »

Written by Xrvel

December 10th, 2008 at 8:37 am

Posted in PHP, Programming

Tagged with ,