

Here they comes, finally. After a couple of pages fullfilled with theory, we can start making some practice. This section features some php scripts that will allow you to display some random elements on your (php) webpages. All files are available for FREE download, and come with a briefly documentation and license notes.
If you think "Randomizing for Ranking" is an useful resource, and you're planning to use our php random scripts, you could consider linking to us. This is not mandatory of course, but it would get us in the right mood for offering you even more free resources :-)
or, at least, you can rate this resource by casting a vote using Scripts.com 's banner at the bottom of this page (you won't leave this page).
Note: Both samples and downloadable files are hosted on our repository site kapefiles.com

This simple embedded php script grabs server DATE and TIME and displays it on your page.
This cannot be considered a real random widget of course. By the way, it helps keeping each page unique and always updated and preventiing the so-called 'stale page penalization'. This because online version of the page will always be slightly different from search engines' cached one.
 |
Googlebot caches a webpage's static version, and not php commands within. By using this embedded script and checking out cached version of your page, you'll find out when Google has indexed it. |
|

This php script displays RANDOM TEXT ADVERTISINGS (URL + DESCRIPTION) on your page. The script is parsed by the server and displayed by user's browser as it was a static part of the webpage.
This represents a one-step-ahead randomization. You can place as many ads as you want by simply editing the script (full commented for an easy editing). As you can guess, this technique does not give webmasters 100% safe 'random' optimization. There's always the chance spiders view and cache the same random Ad when spidering your site a second time.
 |
Keep the Advertising list in a separate file. This will make your work a lot easier when updating the ads.
php include (file) command is included in readme.txt file
|
|

This php script displays RANDOM TEXT or Quotations on your page. The script is parsed by the server and displayed by user's browser as it was a static part of the webpage (see DEMO webpage's html source).
 |
This is a good way to add keyword-rich random contents to your webpage. You can put as many phrases as you want by simply editing phrases.php file. Random-text.php main script will do the hard job. |
|
The three small applications introduced above represent a good starting point in the world of randomness and PHP scripting for ranking. Into the next section we'll set up a more complex application to display Random RSS XML Feeds on a webpage.
|