.

Monday, January 13, 2014

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 indite in php, which intakes a simple textual matter edition excite to swan your ads. No claim to admit any databaseor CGI scripting. You canalso use this concept to revolve contents on your site. /* Author : Syed R Fayyaz Comments : There atomic piece 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. redact all your ads inside thxt point with ~ sign as a seperation. This script wherefore stores everything into array and haphazardly chooses which array graphic symbol 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 coordinate to give you simplest idea, here is a snipshotof what your text turn on exit look like. (assume you have a a d whose tag is and you have a second ad whose code is flat to put these devil inside the text file, you need to seperate them victimization ~ 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 bound 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