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:

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

Lack of simpleXML Documentation
What is up with this.

Look at: http://www.php.net/manual/en/function.simplexml-load-file.php<

2 decima places & How to reload my page
Hello There,

How do i put full-stop (.) after second figure from behind? ie if i have 123456

turning an array into a string then poping it into a db
Hi im just wondering how you get a requested array into a single string then pop it into the db so f

Hyperlink in PHP to MySQL record
Hello,

I am having trouble as i am new to php. I have connected to the database and I have di

Get value from Select menu
Hi!

Have tried to find the solution on the web. Don't know if there is an easy one. A descrip

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

insert/update functions for mysql, what do you think?
I am working on two really simple functions that automatically generate (and execute) insert and upd

Question about ShowWindow()
Hello....

I'm struggling with sumpin, and I hope y'all can help.

I've got a CFormView

redirect standard error and assert (how to?)
How do you redirect standard error and assert?

---

(Why? I am creating an web app and

Displaying a clickable playername
I am going wrong somewhere with the mysql_query, can someone please put me straight?

$playern

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