IIS7 and getimagesize() problem


Posted on 16th Feb 2014 07:03 pm by admin

I have just discovered after hrs of trying to fix a problem where it's coming from. It's to do with the php function getimagesize() and path names.

When using these two different sets of code:

Did you know?Explore Trending and Topic pages for more stories like this.
Code: <?php
list($width, $height, $type, $attr) = getimagesize("store_closed.gif");
echo "<img src="store_closed.gif" $attr alt="getimagesize() example" />";
?>

Code: <?php
list($width,$height,$type,$attr)=getimagesize("C:inetpubwwwroothifisquad.comstore_closed.gif");
echo $width;
echo $height;
echo $type;
echo $attr;
?>
However when I try and use this function with a path like this: http://www.myname.com/store_closed.gif
the page errors.

I'm running this system on a Win2008 IIS7 server, is there a setting to enable the above style of path or am I missing something else?
No comments posted yet

Your Answer:

Login to answer
202 Like 6 Dislike
Previous forums Next forums
Other forums

How to assign JS screen.width to ASP.Net variable
I've got this ASP.net routine that gets the cookie value of the screen width, but now I need to chan

Values disappear from my array :( HELP!
hey all, I have a lil mysql/php/apache script that queries a database
and pulls put 5 integers.

How to add advertisment on top of videos
Hello,
I was told that i should find the answer for this problem in this forums.
I searched a

Form a inline view based on the results of the previous query?
Hi Experts,
Can we form a inline view on the results of a previous query (another inline view)?

how to use two buttons with php
hi i have one form. there are three fields which are to be filled by the user. and then there are tw

TCP Sending Unsigned Char...
Hi...

I want to send over tcp/ip some data, i have the data in hexadecimal, and when i tr

Problem with an browser game.
Hello,i just joined that great forum and i got php prob,its kinda freaky...anyway i got browser game

Echo multiple lines of html code
Hi guys,

I would like to know if there is a way to echo multiple lines of html codes.

How do I know when getBounds Method is ready to be called.
I have an application that changes out stylesheets client side. Once I change stylesheet the browse

Strange cookie problem. setcookie dependant on where user was directed from?
Hello,

I have a website that sets a cookie when a user visits the website. The cookie holds a

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash