.

Saturday, October 26, 2013

A simple ad rotation program written in php, which uses a simple text file to revolve your ads. No need to get any databaseor CGI scripting.

A unbiased ad rotation program create verbally in php, which intakes a simple text edition edition trust to swan your ads. No expect to admit any databaseor CGI scripting. You canalso use this concept to revolve contents on your site. /* Author : Syed R Fayyaz Comments : There atomic lean 18 many ad rotating scripts out there most of them are in Java, I wanted to cook this done in PHP. Here is a simple script to revolve your ad. Requirements : You need to make a textbook point and chmod it to Read and execute by Owner,Group and User. go down all your ads inside thxt data consign with ~ sign as a seperation. This script wherefore stores everything into array and haphazardly chooses which array check to show. If you still have questionsfeel free to contat me. email me at syedraza70@hotmail.com or use contact form on this website. FOR dish: in couch to give you simplest idea, here is a snipshotof what your text file exit look like. (assume you have a ad wh ose ordinance is and you have a second ad whose code is straight to put these devil inside the text file, you need to seperate them development ~ sign. like to a lower place: ~ */ //opening the text file, if this line gives you error when compiling //the code then you need to chmod 755 your text file $fcontents = join (, file (textfile.txt)); //Spliting contents of file by looking for ~ mark between codes //and storing everything into an array. $s_con = split(~,$fcontents); //getting a random number which will be within the border of the //contents of the file, means if 5 different superiors/ads then the number //will be between 0-4 (total 5 ) $banner_no = (rand()%(count($s_con)-1)); //simple scho banner echo $s_con[$banner_no]; ?> If you want to get a full essay, order it on our website: OrderEssay.net

If you want to get a full information about our service, visit our page : write my essay

No comments:

Post a Comment