Monday, November 29, 2004

Cookie

It is a common, but erroneus, belief that cookies can be dangereous. While they
can be used in all kinds of ways by server-based application. They pose no risk
to you as a user. Cookies, as they documented, will not format your hardisk,
send back information about your system, or put you on mailing list.

Set a security on your internet browser.

"Quotes"

Albert Einstein:

You cannot simultaneously
prevent and prepare for war.

Albert Einstein (1879 - 1955), (attributed)

If the facts don't fit the
theory, change the facts.

Albert Einstein (1879 - 1955), (attributed)

Imagination is more
important than knowledge...

Albert Einstein (1879 - 1955)

The secret to creativity is
knowing how to hide your sources.

Albert Einstein (1879 - 1955)

The important thing is not
to stop questioning.

Albert Einstein (1879 - 1955)

Do not worry about your
difficulties in Mathematics. I can assure you mine are still greater.

Albert Einstein (1879 - 1955)

Everything should be made
as simple as possible, but not one bit simpler.

Albert Einstein (1879 - 1955), (attributed)

Try not to become a man of
success but rather to become a man of value.

Albert Einstein (1879 - 1955)

Benjamin Franklin:

I am a strong believer in
luck and I find the harder I work the more I have of it.

Benjamin Franklin (1706 - 1790)

Be civil to all; sociable
to many; familiar with few; friend to one; enemy to none.

Benjamin Franklin (1706 - 1790)

Drive thy business or it
will drive thee.

Benjamin Franklin (1706 - 1790)

Never leave that till
tomorrow which you can do today.

Benjamin Franklin (1706 - 1790)

Genius without education
is like silver in the mine.

Benjamin Franklin (1706 - 1790)

Some time we need to improve our self motivation. The nice quotes come from http://www.quotationspage.com

Saturday, November 27, 2004

Ah.. Berjaya menyelesaikan untuk "Prevent refresh (F5)" daripada resubmmit data dr form. dengan berpandukan kod ni:

[HTML]
[BODY]
[?
if ($newrecord) {
mysql_query( "......" );
Header( "location: index.php" );
}
?]

[FORM]
[INPUT NAME=newrecord>
[INPUT TYPE=submit>
[/FORM]


[/BODY>]
[/HTML]



The header line in the middle makes the page load again without the
$newrecord variable. That way, if the user refreshes, it'll simply load
index.php again.


Note: []=<>, i replace because this blog supporting html codes..but i just want to view my code.

Keje 1/2 ari je hari ni..banyak masa aku habiskan dgn surfing..my favorite!..today i interesting about SMS server and gateway.
So i cari maklumat dan tool yg mana bole pakai..its look easy. But i blum cuba lagi..dah cuba kang baru tau..hahaha..
Yg lain menarik adalah pasal PHP socket programing. terbaca dekat www.devshed.com..em very nice..setelah surf beberapa kam ni pening plak kepala otak aku ni..
nak gi amik angin jap..nak cuba configure sms server tak de device lagi..software dah ade..ntah la berjaya ke tak misi research aku ni..walau pun org dah pakai di malaysia..tapi masih belum meluas..
mana tau kot-kot ade ide yg best bole di bangunkan dengan sms ni..aku masih tertarik dengan "Bacaan meter air secara automatik menggunakan mobile tech". cuba bayangkan kalau ide ni dapat dikembangkan..

Tugas hari ni (yg aku planing nak buat):
1- cuba fixkan table dekat administration page.
2- include menu pada manage.phtml
3- pagination pada main.phtml dan userview.phtml
4- for sure testing..

hope bole setelkan dgn segera..

Friday, November 26, 2004

Wo hoo!.. akhirnya berjaya juga menyelesaikan masalah ni..petang baru bole..ikut logik cam payah je..tp dah tau ala..simple la plak rase nye.. jadi aku telah memodified kod php yg aku perolehi tu mengikut kod yg aku bina..dan ianya membawa hasil..ni la code yg aku guna untuk replace enter key value (ala button enter kat keyboard korang tu):

$msg = htmlentities($Result[msg]);

$msg = ereg_replace("\n","html break here",$Result[msg]);

Ari ni banyak menghabiskan masa untuk menulis kod php. module dah boleh run secara basic.. tapi kurang friendly skit.. nak adjust array yg di fetcth dr database supaya mengikut apa yg user masukkan..masalahnya apabila tekan kekunci ENTER utk turun ke baris baru tak berfungsi apabila di fetch dr database..outputnya jadi sebaris je.. setelah di searh dr merata-rata akhir nya jumpe 2 jenis 1 java script:

function whichButton() {
alert("got a key = " + event.keyCode);
if (event.keyCode == 13) {
var followingInput = document.getElementById("2");
followingInput.focus();
}
}

input id="1" type="text" name="fname" value="Mickey"

input id="2" type="text" name="lname" value="Mouse"

Important point is that you should handle the onkeyup event at the body level. In my case, I have 2 input text elements. When you are in the 1st text input element and type ENTER key(code = 13), then the focus will be set to the second element.

kira string test utk kod 113 bg enter value.

yg kedua nya PHP :

$text = htmlentities($text); echo '

'.ereg_replace("(\r\n¦\r¦\n)","

",$text).'

';
I'm not a regular expression expert, but I think the above should match a newline regardless of the client machine.

What this is supposed to do is to replace all occurences of a newline with paragraph tags.
The first line also protects you from people entering HTML code in the text field.

Thursday, November 25, 2004

Ari ni Format PC staff je sari suntuk,langsung tak tulis kod utk module..bila la nak siap.. esok ade lagi nak kene rape ngan aku..hahaha..dah abis waktu keje ni baru sempat nak masuk dunia tanpa sempadan(web)..layan user phpnuke.com.my.. tolong yg mana patut..dulu aku pun daif gak tak tau mende..dah tau ni..kene la bg ruang org yg nak belajar..he he..

Wednesday, November 24, 2004

Hari ni datang keje seperti biasa. mula datang keje seperti biasa check email,web update itu, ini.. ha ha .. hari hari kene alert..biasa la bidang yg paling pantas berkembang. Hari ni aku cuba untuk menyiapkan sedikit kod php untuk module yg kekadang jalan kekadang x jalan. cannot tell module ape. he he !

Monday, November 22, 2004

hi, this is my 1st posting. Not many text here just to testing a connection using w.bloggar toolz. Welcome and read as i happy wrote it. Ha Ha Ha !

s4femod3