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

Check Digits and extracting digits
I think I can figure out the code for this but I am having a very hard time getting past the first s

I am stumped
OK. Here is what I am trying to do. I have the conditions set, and if the conditions are met, I want

Filtering Tables
Hello Thanks for any help any one can give Im very new to PHP..

I need to pull data for clien

Sharing PHP Sessions Across Domains
I am in the process of writing a script to share a php session across various domains I have.
The

How to Detect it is public_html or httpdocs?
How to check whether it is cPanel or Plesk?

If it found public_html perform <?php incl

Sending UDP Raw socket
I truly need help on this. I am trying to write a test program that simulate a network environment

Allegro crashes when running load_bitmap. Why?
I can not get Allegro to load any BMP images. Here is a section of test code. The picture is in the

php email checker
I am having alot of trouble finding info on how to do these email things. I need to do the following

Displaying Column Names
I have a question regarding the ability to show the column names from my table/query.
What I'm lo

Character increment
Hi,

I am facing a scenario like above,but in my case i want to show up like Col A,Col B etc..

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