I wrote this because it’s always getting bleedin’ asked in HG&P
<a href="', $scripturl, '"><img align="top" src="', $settings['images_url'], '/Banner/rotate.php" alt="Logo" /></a>';
Mark M said:However its not for a sig in a forum but a banner on a web page.
src="', $settings['images_url'], '/Banner/rotate.php"
<a href="<?php echo $scripturl;?>"><img align="top" src="<?php echo $settings['images_url'].'/Banner/rotate.php';?>" alt="Logo" /></a>
<img src="rotate.php" alt="image" />
<img src="images/ads/rotate.php" alt="image" />
<?php
$files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
readfile($files[array_rand($files)]);
?>
RewriteEngine On
RewriteRule ^.*$ rotate.php
$files = glob('{*.JPG,*.jpg}', GLOB_BRACE);
header("Content-type: image/jpeg\r\n");
readfile($files[array_rand($files)]);
$files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
$file = $files[array_rand($files)];
if (is_array($imageInfo = getimagesize($file)))
{
header("Content-type: $imageInfo[mime]\r\n");
}
readfile($file);
an image is an image. i don't think php cares what it is....
i guess this is the problem?
Code:src="', $settings['images_url'], '/Banner/rotate.php"
you can't have commas like that. this might work?
Code:<a href="<?php echo $scripturl;?>"><img align="top" src="<?php echo $settings['images_url'].'/Banner/rotate.php';?>" alt="Logo" /></a>
I revived this thread from last May. I think his issue may be dead now.You can use multiple parameters with echo, so if he's doing that, then the commas are ok.
echo 'sometstring', $var, 'somestring';
$files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
$file = $files[array_rand($files)];
if (is_array($imageInfo = getimagesize($file)))
{
header("Content-type: $imageInfo[mime]\r\n");
}
readfile($file);
<?php
$files = glob('{*.PNG,*.png,*.JPG,*.jpg,*.GIF,*.gif}', GLOB_BRACE);
readfile($files[array_rand($files)]);
?>