On Thursday 07 February 2002 05:02, Steven Jarvis wrote:
> I've read the manual, and I'm still stuck, partially due to the manual
> itself. This is the first time I've dealt with this particular issue
> (parsing IPTC info from JPEGs).
> The example provided in the manual entry on GetImageSize:
> <?php
>      $size = GetImageSize ("testimg.jpg",&$info);
>      if (isset ($info["APP13"])) {
>          $iptc = iptcparse ($info["APP13"]);
>          var_dump ($iptc);
>      }
> ?>
> Gives me the following error on php 4.0.6:
> Warning: Call-time pass-by-reference has been deprecated - argument
> passed by value; If you would like to pass it by reference, modify the
> declaration of getimagesize(). If you would like to enable call-time
> pass-by-reference, you can set allow_call_time_pass_reference to true in
> your INI file. However, future versions may not support this any longer.

What this error is saying is that you cannot use &$info ie:

 GetImageSize ("testimg.jpg",&$info);

> I don't understand what I need to pass to getImageSize in order to
> extract the IPTC info.

You can try:

 GetImageSize ("testimg.jpg", $info);

> Can someone point me in the right direction with this?

If the above doesn't work, then you probably have to change your php.ini as 
per error message.

For more info on pass-by-reference see the chapter "References Explained" > 
"Passing by Reference".

Jason Wong -> Gremlins Associates -> www.gremlins.com.hk

We gave you an atomic bomb, what do you want, mermaids?
                -- I. I. Rabi to the Atomic Energy Commission

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to