Configure another extension for php file

While surfing in internet my student see "strange" file extension .love

He asked me : "How it could be ?"

Well, I told him about another feature of httpd.conf

Just open httpd.conf , find this line :

AddType application/x-httpd-php .php

Change it into

AddType application/x-httpd-php .php .love .dear .whatever

Save httpd.conf and restart apache

You can save your php file as or filename.dear

Setting Oracle XE instant client with XAMPP and Windows XP

I got question from my student :

“Is it possible to try PHP5 and Oracle ? I already have working Xampp in my computer .

I my self install Oracle XE on my computer and grant access for my student .

But I have problem when installing Oracle Client , Oracle XE client need 256 MB memory
Since other plugin takes it and make actual memory to 254 MB.

After reading “The Underground PHP and Oracle Manual ” I got proper solution for my student :

1. Download Oracle instant client for windows

2. Extract the file and put all extracted file into one folder , ex : C:\myoracle10

3. Setting PATH

Right Click on My Computer Icon and choose Properties

Choose Environment Variables

You can edit existing “PATH” variables by double clicking PATH line

Add C:\myoracle10 plus ” ; ” sign

Click OK to save

4. Tell PHP to load oracle extension

Open php.ini in apache/bin folder

Uncomment line php_oci8.dll

Restart XAMPP

Test the connection by running this file : (save as oracle.php)

$c = oci_connect(‘hr’, ‘palcomtech’, ‘//localhost/XE’);
$s = oci_parse($c, ‘select city from locations’);
while ($res = oci_fetch_array($s)) {
echo $res[‘CITY’] . ”

Test it in localhost

You should see city names if no error found .


Faster browsing with MaraDNS

DNS, playing big part in internet . When it’s not work or behaves ugly nothing you got than famous message ” Can’t resolve hostname ” or ” Unable to find IP address of …. ”

I used to use my freebsd dns server or Linux dns server in the office but when it come to travel time and your ISP DNS not working then I need a solution for my windows XP.


With maradns we can make our surfing activity faster since resolver ask for server that reside in our computer.

Here’s my quick and dirty way:
1. Download maradns(windows version) here

2. Extract the file and move it to C folder , or you may rename the folder to “maradns”
Now you have C:\maradns

3. Go to maradns folder then double click file run_maradns.bat, don’t close the windows

4. Edit your tcp ip setting , put on ”preferred dns server”

5. Good job, you may continue to surf

PHP 5.2 released

PHP News

  • PHP 5.2 release
  • PHP Manual (chm, last update 5 Sep 2006)

NetBSD 3.1 release,
NetBSD 3.1 contains many bug fixes, security updates, new drivers and new features like support for Xen3 DomU

Wait XAMPP for update to last version :-)

Testing mail() function with agrosoft mail server 2

In my last post I have introduce about Agrosoft mail server (AMS) . Since this day isn’t end yet, I’ll start by word “Lets continue today lesson” :-)

I start by opening MS-Frontpage then make simple form mail which generate HTML code for me and I save it as contact.htm

Code in send_mail.php :


mail(“alamster@localhost”,”Form Mail”,”$message”,”From: tes@localhost”);

echo “Got your message ! Thank You very much “;


Save both file in htdocs or www directory.

Call it from browser :


read more »