Monthly Archives: March 2012

Image Processing On Web. Is It Possible ?

Some people might think that we can’t process image through web, just because limited resources and also limited library to process it. Even though it is possible to do with traditional way, the programmer must process the image just like complicated image processing in ussual. This is also happened to me, because several weeks ago my lecturer asked me to make web image processing. He said that “You had to implement image function on the web. at least it must be like web design for designing something like cloth, t- shirt, or jacket”. I was so confused at the time, but on the other case, i also become proud of my self. Because if i am capable  to make it, means that  i can make something new for my study journey.

Day by day, i look for the related resources. And in the end, i found GD library on like php it self, GD library is open source as free to use and free to distribute. But, GD library it self only focus on “how to process image by calibrating with PHP “. There are so many functions that we can use ing GD library. For example, water marking, create PNG file/ Create another image files.

Based on my brief learning, i got an idea and understand about it at the last day of the “dead line”. So, i made the web only in one night. Simply, if we already installed Xampp on Windows or Lampp on Linux, means that we already installed GD functions on it. We can check it by using function “phpinfo();”  if GD function is enable means that we were ready to make it.

here is the screen shots of my project

i implement several functions from GD Library :

  • rotate
  • resize
  • load
  • gray scale
  • adding label


That’s all functions that i use in this project. Even though it is not quiet good. i am still proud of it, because that is my own job only in one night, and the result is, i get the best assessment at the time.


Displaying Guest Book List On Web Browser Using PHP

Two days ago, I’ve just making tutorial about how to make guest book in PHP and how to save it in a single text document. But, in this time I’d like to show how to display all of guest which is already visit the web site on web browser it self. Actually, it is only the continue of file processing chapter in PHP. And , this is a little bit implementation about it.

Alright, here is the source code :






echo "$baca <br />";



The ‘r’ parameter means that the file named “bukutamu.txt” is opened using mode read because I only want to display the content of it.

Boosting Execution Semester

This is the 6th semester for me. Perhaps this is the hardest semester for me. Because, in this semester besides, i take 22 SKS for my study, i also become lecturer assistant as many as 9 classes. Yeah, even though the assistant time is more than the study time, it will be a great challenge for me. I am not actually thinking about vocation that i can get after it. But, here i am looking for the charity and knowledge.


The Making of Guest Book in Web Application Using PHP

Recently, i have just learned about web programming. Actually, there are several items that we must know to build or create a good website. The first is HTML code, the second one is PHP structure. CSS , javascript, jquery and etc.

Alhamdulillah, only in several days, i already finished them.but, even though i think it is already good enough.

first of all, we have to prepare the form. I mean guest book form. And then make file to process data which is already sent named savefile.php.. and the last task is put the file into guest_log.txt”. Here is the first step.

<title>Buku Tamu</title>
function validasi(){
var nama=form.txtnama.value;
var emailregex=/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
var email=form.txtemail.value;
alert('nama harus diisi');
return false;
alert("alamat email tidak valid");
return false;
font-family:Verdana, Arial, Helvetica, sans-serif;
<h1 align="center">Selamat Datang</h1>
<table align="center" border="1" cellpadding="20">
<table border="0" cellpadding="5">
<form method="post" action="save.php" name="form" id="form" >
<td align="right">Nama :</td><td><input type="text" name="txtnama" id="txtnama" onBlur="return validasi()"/></td>
<td align="right">Alamat :</td><td><input type="text" name="txtalamat"/></td>
<td align="right">E- mail :</td><td><input type="text" name="txtemail" onBlur="return validasi()"/></td>
<td align="right">Website/ Blog :</td><td><input type="text" name="txtblog"/></td>
<td align="right">Komentar :</td><td><textarea name="txtkomentar"></textarea></td>
<td align="right"><input type="submit" value="Save" name="btsave" /></td><td><input type="reset" value="Reset"/></td>

alright, if you check out in your browser, the preview is almost like this one,it means that you have been sucessfull to make the form, and the next, is to send the form using method post into file save.php.But, before that, we have to make file bukutamu.txt in the same directory of the program.

here is the code for saving data of guests :

echo "nama kosong harus diisi";
$simpan="Nama = $nama \n alamat=$alamat \n email=$email \n blog=$blog \n komentar = $komentar \n";
echo "file is found";
echo "file not found";

Inside the code above, there are several functions for file operation such as fopen, feof, fgets and etc. that’s why in this program doesn’t need database as storage. here is the result of the program :

good luck 🙂



It’s Time To Move

Wow, this is the 6th semester for me. I am still thinking that now i am still like a fresh man. If i check out how old am i, now i am almost 22 years old. That’s pretty enough moment to get married. but, here i still hold on my self and i believe that it’s better to find out the knowledge first and prepare everything as good as possible for something like that.

Recently, i’ve just finished my working internship at Indosat and there are so many things that i’ve got from there even though it is very hard to do it. I already came back from Pamekasan to continue my study in Bangkalan. When i was going to take the subject, i look at in this semester, almost all of the subject is oriented to web. And, not only that, the offered practice in Engineering faculty was oriented in web. This is really hard to do and learning something new. But, i do believe that even though it is so hard to begin , it will be so easy to end.And i do believe that the great effort will give the great result.

Programming platform is a choice but, Programming language is a destiny. So, this is the time to try something new and find what the destiny is. Never give up and stay keep on fire that’s my point.


Refreshing Management at Bromo Mountain

Several days ago, i went to Bromo just for refreshing management. Refreshing management means that the one way to refresh an organization after worked in 1 year. Yes, that’s it. My beloved organization is EECOM (Engineering English Community). At the time we had only 5 days to prepare our touring to Bromo. Just because great cooperation in my Organization, we could go there. I was so happy cause it was the first time for me to go there even though my house was near mountain.

After so many preparation at night, we went to campus to gather before starting touring and praying together for safety.  Yes, it’s time to go. I take my own chair and i said to the others this is “private only” cause i didn’t want to be disturbed by anyone at the trip.

By bringing two packs of cigarettes and several snacks it was enough for me as long as two days in the Cold Bromo Mountain. Hmmm. As long as 3 hours of trip, finally we arrived at slope of  Bromo, it was already very – very cold. More over, at the time was raining. That’s really so scary. Not only cold air but also the road which was winding and steep. Actually if the air was cold i had to do number one but i hold it on,,,, cause i was shame to the girls inside bus.

Finally, we arrive at our villa exactly at Wonokitri village it’s about 6 miles from Penanjakan. Even though there was hard rain, we keep enjoy it. Inside the villa, some of my friends who was native from Madura, they directly feel sick, cause the weather is so different. when they were at Madura it is so hot, on the other case now they were in Bromo. That’s an extreme weather. We did some activities to make our self enjoy each other and not feeling cold such as playing UNO card, Wathing TV, Cooking food, Joking each other and any other fun activity. I really enjoy the moment.

In the night i take a walk through people’s village. i saw there was a monument that is written as the native hero from Bromo. I also got information that Tengger tribe was the ancestor of Bali tribe. Fortunately i could capture the picture of the monument. It could be a gift from Bromo.

Actually we decided to go to Penanjakan By take a walk but, because of the unsupported condition, we decide to use 2 pick up Van to reach Penanjakan. At 2 o’ clock AM, we wake up to prepare next touring in Penanjakan and  i don’t forget to bring the camera cause people said that there will be sun rise from that place not only that, we could see land of sea and another mountain. Hmmm…, that’s really exciting. In 2 o’ clock AM the weather is cold enough for me. So that i had to use jacket and some other stuff to keep my body warm. First car has leaved the villa and also the second car. we really so happy and afraid at the time. hahahaha 🙂

We stop at slope of Penanjakan, and continue the trip by take a walk. Until in Penanjakan, i saw there were hundreds people. all of them are waiting for the nice scenery even though they had to wait for long time. And i also saw there were several foreign people such as from Thailand, France, Saudi Arabia, and etc.

Oke,  it’ s the time sun rice is coming, take your camera and right capture nice scenery that you get. I got several nice moments before and after the sun rise. And also i take picture with foreign people with nice scenery background really unforgettable moment.

After we fell enough taking picture at Penanjakan, we continue the trip to go to Sea of Land and top of Bromo mountain.

In Sea of Land, there were so many horse for rent if we would like to go to the top of mountain without feel tired. But all of us climb i mean walk to Bromo mountain by foot. We were so tired cause the road is so long maybe it’s about 5 miles not only that the way is steep. When i was at home if i sweat it felt so hot, but here i felt my sweat is very – very cold. huft , very long distance and need so much energy.

And yeah, i reach the top of mountain. Here i could see the crater of mountain. There was a hole look like a lake of water which is usually as hot magma. But, fortunatelly Bromo mountain was not active again. So, it’ s safe. After taking some picture, i wait my friends who will come after me. And, the comer is a girl. Wow…, she’s really amazing girl and I got a picture with her.

To try new challenge, i go down to the bottom without through the ladder. So, i run through the cliff of the mountain, climb again and run down again till i reach the car again. Huuuh. I really so tired at the time.

After that we came back to villa and went home again to beloved Madura.

Bromo, i’ ll see u again in the next time