To removes (trim) all white space around image (example on JPG), you can use this short code. How it’s work? It just a simple way. This script will find out where is the “WhiteSpace” stops, then it will copy everything inside the white space border. <?php //load the image! it's possible to open remote image from another website, just put [...]

Categories: Function, PHP

Here is small code to make your WordPress Search Result more friendly for SEO (Search Engine Optimization). It will result http://www.shouthuns.com/search/find-something/ instead http://www.shouthuns.com/?s=find+something Just put this code into top of the header of your themes. (Remember! It should be placed on first line on your header themes) <?php $src = strtolower(mysql_real_escape_string($_GET['s'])); $sclear = ereg_replace("[^ 0-9a-zA-Z]", " ", $src); // Remove [...]

Categories: PHP, SEO, WordPress

by DR. RANDY PAUSCH Randolph Frederick “Randy” Pausch (October 23, 1960 – July 25, 2008) was an American professor of computer science and human-computer interaction and design at Carnegie Mellon University (CMU) in Pittsburgh, Pennsylvania. He was a Carnegie Melon professor and was in his forties. Pausch died of complications from pancreatic cancer on July 25, 2008, but wrote a [...]

Categories: Shouts

I just visited articlesbase.com and found the article that very interested for me. And I deserves to share this. Maybe it could be useful (especially for me). Hehe…! The rel=”canonical” tag has has been around for a while, but there are still an abundance of people who may not have realised it exists or know precisely the reason for it’s [...]

Categories: HTML, SEO

Do you have high traffic on your site/blog? Do you want to bring in money from the traffic? If yes, it is a simple way to do that! Just go to register on link below : All you need is simple, just put the script code in your website/blog, and wait the traffic comes then they will automatically pay you [...]

Categories: Shouts

I don’t have idea about an iframe on PHP, it’s just served as another page and interpreted with browser. But you could do something like this : <iframe src="frame-page.php?parent=<?php echo parentPageURL(); ?>"> On inside the iframe (frame-page.php), you can access $_GET['parent'] to get the parent page url. Just make sure you verify, as that would be insecure. And here the [...]

Categories: PHP

Here the various ways to get current page (url) with PHP, JavaScript, and WordPress. Use PHP : $current_page_URL = $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; Where $_SERVER["SERVER_NAME"] will give you the domain name of current page and $_SERVER["REQUEST_URI"] will give you the rest request page! example:- for the URL http://www.shouthuns.com/php/get-current-page-url-with-various-ways.html $_SERVER["SERVER_NAME"] : will return www.shouthuns.com $_SERVER["REQUEST_URI"] : will return /php/get-current-page-url-with-various-ways.html If you want [...]

Categories: JavaScript, PHP, WordPress

Here’s simple script to make your JavaScript function wait before executing (in milliseconds) : <script type="text/javascript"> function my_function() {     alert("Delayed about 5 seconds"); } function sleep_func() {     setTimeout("my_function()", 5000); } </script> And what you need to do next is just call the delay function, example on <body> load: <body onload="sleep_func()"> Or you want to parameterize sleep_func() [...]

Categories: JavaScript