Category Archives: PHP

Kerja kosong – web developer

Iklan kerja kosong sebagai seorang web developer.

Techsense Web Sdn. Bhd is a software development company specialized in web and internet-based application. We are located in Section 17, Petaling Jaya Selangor (near UIA/UM)

We are looking for talented dedicated candidates for Junior Programmer position in our company.

Following are the requirements:-

-Diploma/degree in Computer Science/Software Engineering/ IT or equivalent

-Good knowledge in PHP programming and mysql database (at least 1 year experience in PHP and mysql)

-Strong knowledge in Software Development Life Cycle

-Basic knowledge in software testing

-Dedicated and hardworking with good working attitude

-Able to cope with tight schedules/deadlines

-Willing to learn new things

-Willingly to learn from the experience one


-Good communication skill

Interested candidate please apply your application to azwan at Only shortlisted candidates will be contacted for interview session.

How to place a contact form on your website?

I always being asked on how to create a contact form for website where visitor can write message on an online form and the data then be sent to the website owner’s email.
Long time ago I used free service from when I remembered during that time it was very hard to learn CGI using Perl language (before PHP became popular).
I got to know this new contact form service called kontactr from my friend’s website but still I never tried the service because I myself can write a PHP program for it. Maybe you can have a try if you are planning to have a contact form on your website.

[tags]contact form, form to email, form data, contact us, feedback form, form wizard[/tags]

How to secure your PHP code on server

Long time ago, I’ve been searching for ways to secure my PHP code on hosting server or code installed on client’s server. As like compiled language such as C++ or VB, you can easily compile it as executable file (.exe) and you do not have to hand in your source code.

As for PHP, you can also do this by having additional code to encrypt your PHP code. Some of the softwares are

But as usual, there always smarter people than smart people. We can only do what we can. Encrpyted code is better than unencrypted one. At least more work needed to hack the code.

Common PHP error messages

Debugging your code may take your time. So it is quite a good idea if you can list down common errors so that you can overcome it faster the next time you find it.

Below are some common errors that I always found when running a PHP programming. Will add more later.

Parse error: parse error, expecting `’,” or `’;” in c:\program files\apache group\apache\htdocs\adan\calendar.php on line 38

No semi-colon ‘;’ at the end of code line

Parse error: parse error in c:\program files\apache group\apache\htdocs\adan\calendar.php on line 35

1. Your variable is not start with dollar sign ‘$’

2. You are missing ‘{‘ or ‘}’ at the beginning or end of a control or loop logic

mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in c:\program files\apache group\apache\htdocs\adan\attd_history.php on line 34

MySQL error – most probably the field does not exist or sql statement syntax error

FFA classifieds website project

I’m now in progress of developing free for all classifieds website that will

– make it very easy to post ad. No registration required
– easily to search by keyword

– has search engine friendly feature

– ready to serve outside Malaysia market in the future

Target to launch end of this week (Feb 27, 2006). And will get lots of traffic from search engine within 2 months time. Will apply all my knowledge in SEO and PHP programming to optimize the ranking of the website.

The income will be generated by targeted-keyword ads publishing and popular affiliate programs.

Use PHP and MySQL as the back end technology.

How to generate random number in PHP?

Sometimes we need to have a random quote, news, testimonials being displayed on the front page of a website. We can use random number function to get a random id of a data to be generated.

The code is as below


$maxnum = 10;
$random_num = (rand()%$maxnum);
echo “The random number is: ” . $random_num;