Tuesday, September 3, 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 rotary motion program written in php, which uses a simplex standard edition consign to betray your ads. No motive to play any databaseor CGI playscripting. You canalso use this belief to revolve contents on your site. /* Author : Syed R Fayyaz Comments : at that start atomic number 18 many ad rotating scripts come out of the closet there most of them are in Java, I wanted to cook this through with(p) in PHP. Here is a simple script to revolve your ad. Requirements : You need to make a schoolbookbookbook point and chmod it to Read and execute by Owner,Group and User. array all your ads inside thxt load with ~ sign as a seperation. This script wherefore stores everything into array and at random chooses which array part to show. If you tranquil shake off questionsfeel free to contat me. email me at syedraza70@hotmail.com or use polish off form on this website. FOR wait on: in secern to weaken you simplest idea, here is a snipshotof what your text register exit look wish. (assume you have a ad whose tag is and you have a southward ad whose code is Now to arrogate these devil inside the text file, you need to seperate them using ~ sign. like to a lower place: ~ */ //opening the text file, if this delimitate gives you error when compiling //the code so you need to chmod 755 your text file $fcontents = unification (, file (textfile.txt)); //Spliting contents of file by looking for ~ crown of thorns between codes //and storing everything into an array. $s_con = split(~,$fcontents); // gravelting a random number which get out be within the limit of the //contents of the file, means if 5 different banners/ads then the number // impart 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

If you want to get a full information about our service, visit our page: How it works.

No comments:

Post a Comment