Preventing JS or CSS Caching on Web Applications
It is very important for dynamic web applications, any js and css changes to become available to user (without need to refresh - reload browser page). Instead of <script type="text/javascript"…
It is very important for dynamic web applications, any js and css changes to become available to user (without need to refresh - reload browser page). Instead of <script type="text/javascript"…
PHP stripos (or mb-stripos) finds the position of the first occurrence of a (case-insensitive) substring in a string. How to find all occurrences? Here is a solution: <?php /** *…
Trying to dump mysql databases (especially after mysql 5.1), it is possible to get the error mysqldump: Got error: 1449: The user specified as a definer ('root'@'%') does not exist…
JSON is a data format (possible the most) suitable for use with javascript, especially on ajax operations. Some characters in strings have to be escaped, otherwise json cannot be parsed and an error will…
RSS (Really Simple Syndication) is the use of an XML document in order to share content across the Internet. An RSS document, aka "feed" includes full or summarized text, plus…