Skip to content

Tag Archives: php

Load jQuery Slideshow After Page Has Loaded

17-Feb-11

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]

03-Feb-10

<?php header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.example.com/new-url/"); 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

18-May-09

Strip Single Tag