How to set clean URL in Joomla
The Clean URL setting in Joomla only works on Linux Server. If your hosting server is Windows, you’re not able to do this.
Using base64 to encode your data
Recently, I have got a project that requires a Web Service to transport data back and forth between an Android application and Linux server. As you know, Android also supports JSON to transfer data and communicate with a web service that way. So, we decided to use base64 as a middle man to save and retrieve data. The design point is that a user can upload data and pictures from an Android to the database in cloud. Then later on, data can be retrieved using…
window.location.href not working in Chrome
When your Javascript is not working in browser (IE or FF or Chrome latest version), you can replace the codes window.location.href (or) document.location.href with the one below. Somehow, setTimeOut works across all browsers with latest version (IE 8 &9, FF 8.0.x, Chrome 23.0.1271.x function redirect_home(){ setTimeout(function(){document.location.href = “ext_search.php?mode=dropoff”},500); }
How to develop JSON with PHP
JSON is pretty flexible when you want to pull data from MySQL database and feed it to the front end software such as Web-based applications or Desktop software or even Mobile applications like Android, iPhone, iPad. I’ll just give you a simple example that is running PHP to feed data to a front end app. On the Android, you’ll build an interface that let user input a word in English (for example: eat), then hit the Submit button to translate this word into Italian and…
What is JSON?
According to IT Wiki, JSON (/ˈdʒeɪsən/), or JavaScript Object Notation, is a text-based open standard designed for human-readable data interchange. It is derived from the JavaScript scripting language for representing simple data structures and associative arrays, called objects. Despite its relationship to JavaScript, it is language-independent, with parsers available for many languages. The JSON format was originally specified by Douglas Crockford, and is described in RFC 4627. The official Internet media type for JSON is application/json. The JSON filename extension is .json. The JSON format…