Just linking an image with <img src=""> works fine, but if it's in a php file it won't work. When I tried that in phpDesigner with an image I uploaded here I got a red X and alt text, so maybe that's why x10 won't link a code I uploaded here?
Here's a sample of the code, it's meant to retrieve the date and display an image that way:
<?PHP
date_default_timezone_set('UTC');
switch(date('m-d')) {
case '01-01':
case '01-02':
case '01-03':
case '01-04':
print '<img src="https://starka.x10hosting.com:2083/viewer/home%2fploinky/Lossless-circle-canny.png" alt="You should be seeing a white circle on a black background" />';
break;
// fallback image
default:
print '<img src="http://humanflowerproject.com/images/uploads/poi-gold-flower.jpg" alt="Image from a different site in case the other link is broken or messed up" />';
break;
}
?>
(
https://starka.x10hosting.com:2083/viewer/home/ploinky/thasampel.php Also, the syntax parts don't highlight..)
LONG code if I want an image everyday, I know, but it's the only one I've found that does what I want and I'm new to PHP. BTW thanks for reading, guys.