This code snippet validate user input from a form :
if(empty($$year) || is_numeric($year) || strlen($year)!=4 || $year
- strip all html tags ( handle by strip_tags )
- make sure the year in 4 digit (with strlen help)
- make sure its number not character (is_numeric)
- not empty (php empty function)
- force user enter year of birth not less than 1970
More information about those function, read php manual or search from php.net
Regex (Regular Expression) is nightmare for me, validation email, pattern recognizing task always depend on regex.
A few software out there will help us (newbie) to learn regex faster with “experience mentor”
I like these software :
A lot of video demo
For medium level, since I’m totally newbie
Mastering regex book also helpfull, I just forgot the title, but in my amazon wishlist.
I just spend some money for openbsd books
Other good source :
PHP Manual on Regex Section
Default install of Oracle XE only allow connection from localhost.
For network access you need sysdba access.
Login as “system” with propriate password
Click the arrow near administration tab
Change access into “available from local server and remote connection” and followed by click “Apply Changes”
See confirmation message
Logout and try login from network.
Download file from internet is fun, it’s make software distribution easy, hassle free for me
The problem come when our download manager not working as expected, cookie, session etc that validate downloading process force me many times to do old fashion way for download .
After reading blog ( I forgot the link ) , I get software name for helping me to get file from sun.com or oracle.com that require authentification before download allowed.
This software is plugin for firefox
Installation process same as other plugin for firefox
Try login to yahoo mail
See http headers
The best way to learn language programming is write the code itself.
Many times I see that sentence
I take learning by doing model plus copy paste
Beside reading manual, forum, chat as place to search for code I like this one :
Krugle approach is very sweet.
Krugle offer three tabs:
- Tech Pages
I myself like projects result , followed by tech pages then Code ( I know that I’m newbie hahahaha)
Search result for “php ajax” lead me to many interesting place that I never knew .
A search engine for developers. Sweet
P.S : If you ask about firefox plugin then it’s your luck day, see the plugin here