PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Er. Rochak Chauhan  >  PHP Push Advert  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example File
Class: PHP Push Advert
Display ads on pages that self-update regularly
Author: By
Last change:
Date: 7 years ago
Size: 2,758 bytes
 

Contents

Class file image Download
<?php
require("PhpPushAdvert.inc.php");
$PhpPushAdvert=new PhpPushAdvert();
$tpl_file="adv_tpl.html"; //Advert content/source file
$redisplay_time=30; //Time (in Seconds) when the advert will reappear for this page
$render_time=5; //Time (in Seconds) to display the advert
$PhpPushAdvert->renderAdvert($tpl_file, $redisplay_time, $render_time);
?>
<html>
    <head>
        <title>Example 1</title>
    </head>
    <body>
        <h1>Example 1</h1>
        <p>
            Lorem ipsum dolor sit amet, vitae nec nisl pede erat, eget curabitur et suspendisse morbi, est mauris risus scelerisque metus eleifend nisl. Enim sapien urna magna sed. Lectus consequat. Nec sodales magna neque nibh malesuada suspendisse, orci neque ut maecenas, rutrum nec nunc tellus sit. Mi morbi quam, eget aliquam primis eu a sed, nam sem arcu tellus magna elit. Id interdum sed, habitant nibh, est sit velit lectus tortor, mauris viverra volutpat pede. Phasellus in, vel pellentesque accumsan odio sapien, volutpat viverra, feugiat gravida mauris, at sollicitudin ipsum nec vestibulum sed. Nisl phasellus faucibus venenatis nam wisi, interdum volutpat ac fringilla integer, amet ut lectus nibh sem sed dis. Rutrum lacinia lacus adipiscing et neque, et eu nibh placerat. Eu congue, vulputate venenatis. Dis tincidunt, ultricies ac magnam dui, fermentum cum lobortis nulla. Elit autem a rutrum ligula elit varius, vestibulum metus, curae ut tortor a nunc amet, felis ut sapien, ut cras morbi eu ac gravida.
        <p>
        <p>
            Venenatis dapibus nunc eget, tempus sit faucibus sed felis urna, neque augue quis et malesuada est euismod, lacus justo in justo non. Felis ultrices tortor conubia et a, metus amet aliquam, est quisque nec odio, et et nullam amet condimentum urna magna, hendrerit arcu velit aliquet. Augue mauris elit consectetuer nullam. Diam sem magna at at volutpat, elit in porta donec. Mollis elit, class et tempor vehicula integer, erat magna integer quis, vel convallis.
        </p>
        <p>
            Sed egestas, ultricies mauris cras rutrum parturient. Molestie donec temporibus rutrum sit. Erat et nunc eget libero, vivamus ultrices magna ligula, placerat eros augue, aliquet nibh sed eget montes, ligula aenean autem sem vivamus morbi suscipit. Amet a tempus nibh mauris pulvinar, scelerisque vel porttitor, sagittis mauris felis tortor aliquam, phasellus augue bibendum lectus venenatis diam, posuere placerat id. Proin gravida placerat orci dui ea, in sagittis quis mi, auctor suspendisse egestas suscipit sollicitudin, faucibus quisque, vitae enim ultricies faucibus rutrum porttitor ac. Debitis lorem accumsan pellentesque rutrum nec.
        </p>
    </body>
</html>

For more information send a message to info at phpclasses dot org.