0
.htaccess some facts and rules
Common command suffixes
At the end of many lines you will see a suffix within square brackets. These instructions modify the main command of that line.[301] = permanent redirect[302] = temporary redirect[NC] = no case (ignore...
Display Tags in wordpress
A very simple method to add the tags on to a wordpress theme.Its pretty simple just add the below lines to the file you want it to appear, prefferably SIDEBAR.PHP.This can be easily done using wp_tag_cloud(),
Here the smallest means the...
Calendar Script Using Javascript [Updated]
Here is a simple script for creating calendar on webpages
<script LANGUAGE="JavaScript">
//Code from Mistonline.in
<!-- Begin
monthnames = new Array(
"January",
"Februrary",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"Decemeber");
var...
MD5 Function and Unique ID in php
uniqid () function, This function has two parameters we can set. The first is the prefix. This is what will be appended to the beginning of each ID. The second is more_entropy. If this is false or not specified it will return 13 characters,...
Javascript setTimeout() Tricks
Hi here we can see how we can call fucnctions using some timers available in javascript.
<script type=”text/javascript”>
function setToRed()
{
document.getElementById(“colourButton”).style.color = “#FF0000″;
setTimeout...
Displaying or changing images each day
A simple script that demonstrate how to dispay different images day by day on your website from suday to saturday, what you have to do is just copy this script [ Make Sure Of Quotes While Copying As I Always Say] So correct those and paste where...
How to install XAMPP
Hello guys due to request from my users i am updating my website with a post that says clearly how to install XAMPP on windows.Here we go,
Go to http://www.apachefriends.org/en/xampp-windows.html#641 or direct link http://www.apachefriends.org/download.php?xampp-win32-1.7.0-installer.exe...
Caching of images using javascript image object
Using this script we can load an image in to a cache and display it when needed.Once you click the button the second image will display immediately with out any delay as it comes from the cache. If your internet connection is slow then you can...
Simple Javascript Slideshow
Here i will explain how to create a simple slideshow using javascript.
Our main function displaynext(shift) will receive the value of shift based on the navigational buttons clicked ( it will either +1 or -1 ) and it will receive the value of...
Url rewriting examples using .htaccess
Hi here i will explain some URL rewriting magic using .htaccess file.
1)Rewriting user.php?id=12 to user-12.html
It is a simple redirection in which .php extension is hidden from the browser’s address bar and dynamic url (containing “?”...
How to display popular posts in wordpress
I came across different wordpress themes where they wont provide the popular post catogory, so this a simple tip to help you guys regarding the addition of how to display popular posts in wordpress themes.Usually the SIDEBAR.PHP is the is the...
Simple file upload script using php
Here i will explain a simple php script which will upload files to a particular directory specified
< ?php
session_start();
if(!isset($_POST['upload'])) {
echo '
<form name="upload" enctype="multipart/form-data" method="POST"...
Appending string using php to a text file
A very easy way to append string to a file using simple php script
<?php
$fn = “file.txt”;
$file = fopen($fn, “a+”);
$space.= “\n”;
if($_POST['addition']) fwrite($file, $_POST['addition']);
fwrite...
