]> last 20 snippets from www.jonasjohn.de This feed shows the last 20 snippets added to www.jonasjohn.de http://www.jonasjohn.de Sat, 04 Feb 2012 03:44:29 +0100 Sat, 04 Feb 2012 03:44:29 +0100 rss74/v0.3 http://blogs.law.harvard.edu/tech/rss en-us How to do a POST request http://www.jonasjohn.de/snippets/php/post-request.htm http://www.jonasjohn.de/snippets/php/post-request.htm Wed, 23 Mar 2011 00:00:00 +0100 File download with speed limit http://www.jonasjohn.de/snippets/php/dl-speed-limit.htm http://www.jonasjohn.de/snippets/php/dl-speed-limit.htm
Remark:
I created this snippet around 2006, today there are much better solutions
available like the QoS Bandwidth Throttle PHP Class (Alternative link). (Thanks aargoth) ]]>
Wed, 23 Mar 2011 00:00:00 +0100
Safe redirect http://www.jonasjohn.de/snippets/php/secure-redirect.htm http://www.jonasjohn.de/snippets/php/secure-redirect.htm
At first the function will try to redirect the user by using the header() location method, then by JavaScript and META-Refresh and finally if everything failed there is also a ordinary link to the new URL.]]>
Fri, 11 Mar 2011 00:00:00 +0100
Count files recursive http://www.jonasjohn.de/snippets/php/count-files-recursive.htm http://www.jonasjohn.de/snippets/php/count-files-recursive.htm Fri, 11 Mar 2011 00:00:00 +0100 Simple cURL example http://www.jonasjohn.de/snippets/php/curl-example.htm http://www.jonasjohn.de/snippets/php/curl-example.htm
You can find more cURL options on the related PHP manual page.]]>
Fri, 11 Mar 2011 00:00:00 +0100
Random readable password http://www.jonasjohn.de/snippets/php/random-readable-pwd.htm http://www.jonasjohn.de/snippets/php/random-readable-pwd.htm You can adjust the password length trough a parameter (length). ]]> Fri, 11 Mar 2011 00:00:00 +0100 Randomize SQL query results http://www.jonasjohn.de/snippets/php/randomize-sql-query-results.htm http://www.jonasjohn.de/snippets/php/randomize-sql-query-results.htm Mon, 11 Feb 2008 00:00:00 +0100 Caching for dynamic content http://www.jonasjohn.de/snippets/php/caching.htm http://www.jonasjohn.de/snippets/php/caching.htm to optimize the caching of a website. If used correctly this will speed up
your page loads. ]]>
Wed, 06 Feb 2008 00:00:00 +0100