January 22, 2010
Download any video from YouTube
Category: Video, Tags: Video, youtube, khadlock at 2:20 pm
Found this site that lets you download any video from YouTube by simply entering the URL to the video you want to download. http://keepvid.com
January 20, 2010
How to delay a header redirect with PHP
Category: Uncategorized, khadlock at 12:27 pm
Sometimes you need to show some page content before redirecting a page, like a successful login message, etc. Here's an easy way to delay a header redirect with PHP without using a Meta tag to refresh the page.
header("Refresh: 1; URL=http://www.studiosedition.com");
January 6, 2010
403 forbidden with WordPress
Category: WordPress, khadlock at 1:56 pm
After hours of debugging a 403 forbidden error with a WordPress blog we finally found the issue. Some servers require the following line of code before the default mod_rewrite code provided by WordPress:
Options +FollowSymLinks
So your updated mod_rewrite will look similar to this:
Options +FollowSymLinks RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L]
Change directory index using .htaccess
Category: Uncategorized, Tags: htaccess, khadlock at 1:50 pm
Here's a quick way to change your directory index using htaccess:
DirectoryIndex index.html index.php
