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

Login Control?!
I have a Web Site that uses the login control also I have set the destinationurl to the page I want

Relative path
I have a absolute path to an image - like so: C:/Program Files/Apache Software Foundation/Apache2.2/

Changes to hosting company's server has affected web contact form
I started a thread a couple of months ago about the contact forms on my client's website. Basically

Opening Multiple Files/Links in Order.
I want to open links in order/one-by-one and check each for a specific string.

Example:
I

How to kill asynchronous postback / current postback?
Hi,here is my problem:I have a web site with many pages of which some may take time to process resul

FTP issues
Hi all,


I am currently facing some serious problems with a script and really need some ad

phpmailer class & pop.gmail.com?
Code: <?php
$mail->IsSMTP();
$mail->Host = "pop.gmail.com";

storing video files into mysql in php
hi

i have my video files in my folder ,
i have to store the path of the videos into db an

want to add a break after a certain amount of characters
i was wondering how to add a break in a blog post after a certain amount of characters... any idea o

Get dump of MySQL DB from Live Site
I'm after an easy, but secure way of generating and importing a MySQL dump from a remote server.

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