Important is that any parameter in a query needs to be parameterized. It doesn't matter is your query is select, insert, update or delete ki ...
Simple code to read file, line by line
File file = new File(ApplicationLocation, debitFile.toString());
//Log.e("response", "debitFile - ...
Creating copy of existing MySQL table is useful when you want to prevent loose of existing data from it, or when you want to archive existin ...
Always needed tip:
window.location.href = "http://kavecan.com"; ...
When debugging CakePHP code, it's very useful to know which SQL query is executed latest.
Use next few lines to get this information
If you want to get info about free space on server, or in particular directory, execute next code in your browser - it will give you info ab ...
How to search for recently changed files, ie. in last 24 hours
Files changed in last 24 hours:
find . -mtime -1 -print
To find all file ...
Get file extension without use of explode function of preg functions
You can use pathinfo function - it will return an array with element ...
Drupal 7 on the front page will display, by default 10 posts. Here you can find how to change that setting, by editing the number of posts v ...
Or - how to avoid re-declaring functions?
Function redeclaration often occurs if you work with different versions of PHP, ie. on developm ...