PHP ternary operator isn’t beautiful for reading reason It’s also make confuse, but for the sake of simple it’s OK 🙂 Syntax : ( expr1 ) ? ( expr2 ) : (expr3) If expr1 return true, then it evaluates to ( expr2 )If expr1 return false, then it evaluates to ( expr3 ) it’s similar […]

Joomla is very popular CMS, it’s easy to setup and require only working php and mysql installation. A problem may arise when your administrator password lost or forgot. Can I recover my admin password or create a new one ? It’s common question in "Setting your own Content Management System" workshop. Use php md5() function […]

This code snippet validate user input from a form : $year=strip_tags($year); 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 […]

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 : 1. Regexbudy A lot of video demo PHP section 2. Regexcouch For medium level, since I’m totally newbie […]

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.