Refresh Folder or Files in NetBeans IDE Project

While working in a project on NetBeans IDE, I sometimes add new files or new directory inside the project folder, but I create it from outside NetBeans IDE, for example using command prompt ‘mkdir’ command. When I am back to NetBeans IDE again, sometimes the new files or folder that created from outside is not appear there. Sometimes NetBeans immediatelly refresh it but sometimes not. Continue reading ‘Refresh Folder or Files in NetBeans IDE Project’ »

Change Default Web Browser in NetBeans IDE

I write this NetBeans tips because previously I am headache with NetBeans’ default web browser behaviour. Usually if I am running my PHP script from NetBeans (using Shift+F6 on particular script), it will run on my default browser. But today it behaves on other way, NetBeans always open currently the most sucks web browser in the world, Internet Explorer. It’s very strange, since my default web browser is Firefox. Continue reading ‘Change Default Web Browser in NetBeans IDE’ »

Read your Latest Status Message on Facebook using PHP

This morning I got interesting e-mail. He want to grab his latest status message on his Facebook account using PHP. How to do that? It’s simple, I just doing some web scraping to Facebook Mobile interface and get the status message from there. Here is the code. As usual, I am using curl to do this task. Continue reading ‘Read your Latest Status Message on Facebook using PHP’ »

Changing Title Format on WordPress Page

Previously my WordPress always display title of the page in this format, [Blog Name] » [Page/Article Title], suppose I have article titled “This is PHP tricks!” then it will displayed like — Sony AK Knowledge Center » This is PHP tricks!. I don’t want this format, I want my page/article title is in front of the blog name. I want like this — This is PHP tricks! – Sony AK Knowledge Center. I dont want to use » as separator, I want to use “-” as the separator. How to achieve that? It’s easy. Continue reading ‘Changing Title Format on WordPress Page’ »

Emulate Internet Explorer 7 Behaviour on Internet Explorer 8

If you want to emulate Internet Explorer 7 behaviour on Internet Explorer 8, please put this meta tag on your web page. Continue reading ‘Emulate Internet Explorer 7 Behaviour on Internet Explorer 8’ »

Sample Code of Login to Friendster using Curl on PHP

One of my friend ask me to do login to Friendster (www.friendster.com) using Curl on PHP and get their session. OK, it’s very simple. Please have a look on below simple code. This code created on June 23, 2010. Friendster might change the login mechanism without notice. If this code is not working, you can contact me again. Continue reading ‘Sample Code of Login to Friendster using Curl on PHP’ »

Simple Example of Consuming Web Service using PHP SOAP Extension

Yesterday my friend ask me about how to consume or call SOAP web service using PHP. OK, it should be easy because PHP has a great SOAP extension to handle this. First you must check if your PHP stack already installed with SOAP extension. Just call the phpinfo() function from your script and check if there any SOAP installed like below. Continue reading ‘Simple Example of Consuming Web Service using PHP SOAP Extension’ »

short_open_tag Directive on php.ini

If you want use <? … ?> rather than <?php … ?> on PHP, you can do the following steps. Continue reading ‘short_open_tag Directive on php.ini’ »

Running Old Games using DOSBox

When I saw the movie trailer Prince of Persia: The Sands of Time, I was reminded Prince of Persia game that I often play in 1993. There are two releases at that time, Prince of Persia in 1990 and Prince of Persia 2 in 1993. I really love those games and now already 2010 and suddenly I want to play again those games. Is it possible? Yes of course. If you are an old game maniac, you still can play your favourite old games. You can use DOSBox. Continue reading ‘Running Old Games using DOSBox’ »

Creating Custom 404 Error Page Not Found on GoDaddy.com Hosting using PHP

My friend has a shared hosting on GoDaddy.com and he wants to create custom 404 error page not found on his website. OK, this is actually very easy. You just create .htaccess file on the web root folder and put the following line on that file. Continue reading ‘Creating Custom 404 Error Page Not Found on GoDaddy.com Hosting using PHP’ »

Convert VBScript File to EXE File using IExpress

In the mailing list I saw people asking about how to convert VBScript file to executable file (EXE). There are so many implementation for this but I will cover the easiest way by using IExpress from Microsoft. IExpress is a technology designed to simplify creation of a setup program. Using the step-by-step IExpress Wizard, you can create self-extracting files that automatically run the setup program contained inside. The setup program can be an .inf file or an executable program. IExpress technology automatically removes the setup files after installation, saving the user time and frustration. Continue reading ‘Convert VBScript File to EXE File using IExpress’ »

I already have XAMPP installed, can I install Zend Server CE on the same machine with XAMPP?

My friend ask that question to me. The answer is definitely Yes. But the next question is everything gonna be fine after installation? The answer also Yes. I assume you install the Zend Server CE (Community Edition) on Windows. Just run the installation file. I am using the Zend Server CE version 5.0.1 that using PHP 5.2. Oh ya, by the way I forgot to introduce Zend Server CE? Zend Server CE is web application server from Zend that contains PHP and Apache web server. Continue reading ‘I already have XAMPP installed, can I install Zend Server CE on the same machine with XAMPP?’ »

Eliminate Blank Space Produced after </form> Tag

My friend has a simple problem. He found that after the closing </form> tag on HTML will always produce a blank space or blank line. Please look at the screen shot below. Continue reading ‘Eliminate Blank Space Produced after </form> Tag’ »

Create Script to Running Application as Administrator using VBScript

When I want to run a particular Windows application on Guest account on Windows XP Professional, I got error that saying access denied. So it’s clear that I need to run that application using Administrator account. I don’t want input Administator password every time I want to run it. How to make it auto input the Administrator password? We have to make a VBScript to solve this problem. Continue reading ‘Create Script to Running Application as Administrator using VBScript’ »

Create Simple Dashboard for your Domain Expiration Information

In my organization, there are so many internet domains that have to be monitored, especially on their expiration date. To make my life easy, I create little dashboard to monitor the domain expiration. It just shows simple domain list, its expiration date and how many days or months left before expiration. How to create such this simple dashboard? Just follow this article. Continue reading ‘Create Simple Dashboard for your Domain Expiration Information’ »