Web Programming

PHP – Passing Array in URL and Retrieve with Get

To pass an array in a url use the following: <?php $serialized = rawurlencode(serialize($args)); ?> <a href="testpage.php?args=">Test Page</a> To retrieve the array use the following: <?php $args =...

Read More

What are CSS Sprites and What are their Advantages

A CSS Sprite is a single image with all of your web sites images combined into a single image. If you have image A and image B you combined them to make image C, and define the HTML tag size to be the size of the original image (image A or B) and the define...

Read More

Firebug in Internet Explorer or Opera

Using Firebug in Internet Explorer or Opera is easy. Add the Firebug Lite javascript file to the header of your web page and press F12 once the page loads, then Firebug will display for that webpage. Here is the script to add to your site: See Firebug Lite...

Read More

CSS – Hide Text and display a Image

Converting Plain Text The CSS Code span.image { background: url(/images/bamboo.jpg) no-repeat; /* url to image */ width:100px; /* actual image width */ height:100px; /*actual image height */ text-decoration:none; display:block; font-size:0px; }...

Read More

Why Wont my Facebook Like Button Share Proper Content?

I completed the following items and still was having no luck getting my Facebook Like Buttons to display proper content: 1. Added meta tags, check 2. Added like button script, check 3. Customized meta tags and script for individual pages and content,...

Read More

MySQL – Flush Binary Logs

To flush the logs you need to execute the following 2 commands: mysql> FLUSH LOGS; mysql> RESET MASTER; I am using EasyPHP the mysql executable is in the ‘easyphp\mysql\bin’ directory. To execute user mysql.exe -uxxx -pyyy. Where xxx =...

Read More