New plugin - MQ ReLinks
AdSense Revenue Sharing 1.2
Free youtube video downloader script
MQ Punk Free WordPress Theme
Free Social Bookmark Script generator
Simple php image rotator
Categories: Silenced tutorials
I am going to make a simple php image rotator that can also be used as a banner rotator.
First, create a new file called “images.txt”.
In this file, write embed code for your images, one per line, like:
<img src="path/url to image" alt="" />
<img src="path/url to image" alt="" />
Or you can write link codes, just in case you want to link the images to a page, or use it like a banner rotator, again one per line, like so:
<a href="link"><img src="path/url to image" alt="" /></a>
<a href="link"><img src="path/url to image" alt="" /></a>
php code for .php file
<?php
//open function
function random_image() {
//seed the random number generator
//only for php versions under 4.2.0
//if the version on your server is over 4.2.0 u can ignore
//the next line of code
srand((float) microtime() * 10000000);
//set data file name/path and read it
$f=file_get_contents('images.txt');
//create an array with all the images we found
$input = explode("\n",$f);
//create an array of keys for the random entries
//the number has to be between 1 and the number of
//elements in the array
$rand_keys = array_rand($input, 2);
//show a random image
echo $input[$rand_keys[0]];
//close function
}
//call the function and print the images
random_image();
?>
I signed up for PPP!
Categories: Silenced reviews
I signed up for PPP and I am glad being part of the payperpost community. I am excited to work for payperpost by making blogs for the opportunities open to me. I am attracted to the potential income that I will be earning soon, so everything will be up to me now since the PPP has a lot of opportunities to offer. I have been searching and have involved myself to a lot of online business before, I became fond of joining High Yield Investment Program (HYIP) which was so critical, I also joined some good program like paid to surf programs and paid to click programs but the income is not that much as compared to what the PPP can offer. In PPP they can bring out your hidden talent in sharing ideas for the topic and the most important is you are getting paid on what you do. The income that I will gain from PPP will be a great help for me in my daily expenses and other financial needs, this is one best way of generating income aside from my regular work, because i do not need to stop from my current job for joining PPP. This is my first blog for PPP and I am looking forward for the result. I will keep on blogging because it is fun and I am not restricted with time like a regular job. So, good luck to me and to you guys out there join the PPP now and get paid to blog










