To expand on the previous post, as I do believe that is your problem, because of this:
It says file not found
Too often in php you'll see stuff like this
Take a script
scripts/widget-processor.php
and in that file,
$info = GetImageSize("../images/filename.jpg");
then output
echo '<img src="../images/filename.jpg" width=' . $info[0] . '" "' . $info[1] . '" alt="whatever">';
Which is fine, as long as they are both executed from the same directory, etc. But often there are other things at play:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^Widgets\/*$ /scripts/widget-processor.php
</ifModule>
What just happened there?
When I call example.com/Widgets, it executes
scripts/widget-processor.php That script outputs
echo '<img src="../images/filename.jpg" width=' . $info[0] . '" "' . $info[1] . '" alt="whatever">';
But since the request is /Widgets, not /scripts/widget-processor.php, the img src, ../, is going to look for a directory ABOVE /Widgets - which is not (should not) be possible.
There's an easy fix for both of these, so you always know "where you are at." If you have this structure:
/ (your domain root)
/images/filename.jpg
/scripts/widget-processor.php
For images or other resource references
from within a web page, always start with /. This means "start at the domain root" and will work no matter how many directories deep you are. For PHP functions, always use the FULL PATH. So the two above examples can be
$info = GetImageSize(
$_SERVER['DOCUMENT_ROOT'] . "/images/filename.jpg");
echo '<img src="
/images/filename.jpg" width=' . $info[0] . '" "' . $info[1] . '" alt="whatever">';
... and I'll bet it will work. :-)
A caveat: I just caught this
I'm running the test setup in a subdomain on my main hosting account.
This would be one of the exceptions to the above (the other being virtual hosts.) So you may need to do something like this.
$virtual_path = $_SERVER['DOCUMENT_ROOT'] . "/subdomain.example.com";
$full_url = "https://subdomain.example.com";
$info = GetImageSize("$virtual_path/images/filename.jpg");
echo '<img src="$full_url/images/filename.jpg" width=' . $info[0] . '" "' . $info[1] . '" alt="whatever">';
I had to use https so you could see the code, can't wait until they fix that stupid little quirk on this board . . . I threw in the mod_rewrite bit as an example as it's common for a little rewriting to be going on in WordPress. Even if it's not, the above principles should help you.