> -----Original Message-----
> Let me explain more fully:
> I call a script like this:
>
> <img src="image.php?file=file_name_here.jpg">
>
> The script figures out if the image named in $_GET['file'] is portrait
> or landscape, and creates a thumbnail of the same orientation. I would
> like to get the x and y values of the image out of this script somehow,
> so that I can specify the height and width attributes. However, calling
>
> imagecreatefromjpeg("image.php?file=file_name_here.jpg">
>
> returns an error that it can't open the stream.
That function needs the full path to the image. The full path can be a URL
or it can be a file path. If you want it to access a URL, the URL needs to
be fully formed - ie. Including the http://.
-Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php