Posted by
newbiekid
Jan
7
It turns out that English has some unique facts that you’ve probably never know as long as you learn English.
Bellow some unique facts about the English language :
1. STEWARDESSES is the longest word that can be typed on the keyboard just by using your left hand. As for the right hand, the lollipop is the longest.
2. No word in the English language which rhyme with month, orange, silver, purple, angst and scalp.
3. Dreamt is the only English word that ends in ‘mt’.
4. The sentence The quick brown fox jumps over the lazy dog uses every letter in the alphabet.
Read the rest of this entry
Posted by
newbiekid
Dec
22
PHP make easier by providing setcookie function to allow you to set cookie. Once cookie is set, you can access it through the super global array $_COOKIE.
Here is form of setcookie function.
setcookie($name, $value, $expire, $path, $domain, $secure);
- $name: Cookie’s name. As always it should be meaningful.
- $value: Value of the cookie. It can be scalar value such as string or integer
- $expire: Time to expire in UNIX timestamp. If time to expire is not set cookie will expire when user close the web browser.; for example: time()+”7200″. Cookie will be expired in two hours.
- $path: The path on your web server for which the cookie will be returned.
- $domain: domain where cookie will be returned.
- $secure: true to indicate cookie is set over secured HTTP (HTTPS). Default value is false
Here the sample of setting cookie :
<?php
setcookie(“user”,”newbiekid”,time() + 3600);
?>
<html>
<body>
<p>Cookie has been set to user newbiekid and will be expired in 1 hours.</p>
</body>
</html>
Be noted that cookie must be set before any HTML code as shown above.This is because cookies are headers and must come before the body of the request.
Once cookie has been set you can get its value via superglobal array $_COOKIE. Before reading cookie value you should check whether the cookie is available by using isset function. Here is the code sample to read cookie value:
Read the rest of this entry
Posted by
newbiekid
Dec
10
You always got an email SPAM, hoaxes, scams, lottery, falsehood, and you want to know the identity of the sender of the email? Easy to do anyway, namely by Email Trace. You can find out the IP-Address e-mail sender, a map where he is, the degree of latitude and bows, very completed.
This is the way :
1. Open http://www.ip-adress.com/trace_email/
On these pages you will be asked to enter the email header. Email header is the information in each email, such as sender and receiver IP address.
How to view email headers:
* Yahoo New Mail: Right-click on the email, select View Full Headers
* Yahoo Mail Classic: Open the email, in the lower right corner there is written View Full Header.
* Gmail / Google Mail: Open the email, there is an option at the top of the reply, next to Reply, there is a downward arrow, select Show Original.
* Hotmail: Right-click on the email, select View Source.
* Outlook Express: Open the email, open the File menu -> Properties -> Details -> Message Source
* Microsoft Outlook: just double click on the email to view in full window, open the Options menu -> View.
Read the rest of this entry