The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Help Me With This, Please

There are 2 images that are being changed every couple of hours... Not on my site!
I need a code that will write in a certain page in my site a certain sentance when the image is online right now or a different sentance when its not online...

OK, you could try reading the HTML file and finding which image is loaded.

PHP Code:

$file = file('http://www.site.com/image.html');

// say the <IMG> tag you want is on line 48 of the file
echo $file[47] . '<br />'; // note 1 number less

You could parse the output to find the exact filename but I'm too tired to post all that tonight but you can go read up on substr() and strpos() at PHP.net which are the easiest functions to parse the file.

However, if your really lucky, the file might be written in XML which means you can use PHP's XML functions.