That's the best title I can think of for this. I've a client that has a bunch of html pages already created, and wants to add some banner type ads. I've added the htaccess file to the server and it will parse out the php in the file(s) with html extensions, but it won't use them as includes.
Hope that makes sense.
This works
As well as the same file named as
But when I try to use an include for the banner.php file, something comes up (as viewed through source), but the image doesn't really appear.
See that part here
Can someone point me to a reason for this. The entire script is very simple
Thanks,
Donna
Hope that makes sense.
This works
As well as the same file named as
But when I try to use an include for the banner.php file, something comes up (as viewed through source), but the image doesn't really appear.
See that part here
Can someone point me to a reason for this. The entire script is very simple
Code:
<?php
$random = array(
array('image' => 'timeshare/banner/1.jpg', 'url' => '[URL unfurl="true"]http://google.com/'),[/URL]
array('image' => 'timeshare/banner/2.jpg', 'url' => '[URL unfurl="true"]http://google.com/'),[/URL]
array('image' => 'timeshare/banner/3.jpg', 'url' => '[URL unfurl="true"]http://google.com/'),[/URL]
array('image' => 'timeshare/banner/4.jpg', 'url' => '[URL unfurl="true"]http://google.com/'),[/URL]
array('image' => 'timeshare/banner/5.jpg', 'url' => '[URL unfurl="true"]http://google.com/'),[/URL]
array('image' => 'timeshare/banner/6.jpg', 'url' => '[URL unfurl="true"]http://google.com/'),[/URL]
);
$current = rand(0, count($random) - 1);
print "<a href=\"" . $random[$current]['url'] . "\"><img src=\"" . $random[$current]['image'] . "\" alt=\"\" /></a>\n";
?>
Thanks,
Donna