I use a php file to show pictures in a clean page. I add to all pics the url site.xx/image.php?pic=/xx/xx.jpg
. It works well and show the images, but when I move my sites to vps with kloxo it stops working and the pics dont load in the php.
example:
file.php
<?php
$notitle = ""; // Text to Display in No title present
$noimage = "No Image Supplied"; // Error message if no image url
if (file_exists('adbrite.html')) {
$temfile = fopen('adbrite.html', 'r');
$template = fread($temfile, filesize('adbrite.html'));
if ($title) {
$template = eregi_replace("<PICTURETITLE>", $title, $template);
} else {
$template = eregi_replace("<PICTURETITLE>", $notitle, $template);
}
if ($desc) {
$template = eregi_replace("<PICTUREDESCRIPTION>", $desc, $template);
}
if ($pic) {
$template = eregi_replace("<PICTURE>", "src=\"$pic\">", $template);
} else {
$template = eregi_replace("<PICTURE>", $noimage, $template);
}
if ($return) {
$template = eregi_replace("<PICTURELINK>", "<a href=\"$return\">RETURN TO DICKISM</a>", $template);
} else {
$template = eregi_replace("<PICTURELINK>", "<a href=\"/\">RETURN TO DICKISM</a>", $template);
}
echo $template;
}