Skip to content

Tag Archives: php

Load jQuery Slideshow After Page Has Loaded


I needed a slideshow that would load (in a way, asynchronously) after the page has been loaded and would show something without JavaScript. This solution requires jQuery and jQuery Cycle plugin (lite version will do). <div id="slideshow"> <img src="default-image.jpg" alt="" /><!--defaults to this image without javascript --> </div> <script type="text/javascript"> $(document).ready(function() { //// random slides […]

301 Redirect [PHP]


<?php header("HTTP/1.1 301 Moved Permanently"); header("Location:"); Done. PHP 301 redirect is now rolling in given directory once you put that, say, in a file named index.php.

PHP strip single tag


Strip Single Tag