Thread: getimagesize:

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    23
    Rep Power
    0
    I want to open a new window, with the same size as the image. I use the following code:

    if ($row[4]!="")
    {
    $size = GetImageSize("/shop/images/$row[4]");
    echo "<a href="javascript:void(null)" onclick="window.open('show.php3?name=$row[4]','','toolbar=no, status=no $size[3]')">
    <img src="/shop/images/$row[4]"></a>";
    }

    The image appears (so it's on this location), but first I get the following error:

    Warning: Unable to open /shop/images/menudot.gif in c:mywebshopview.php3 on line 31

    Warning: No such index in string in c:mywebshopview.php3 on line 32

    Line 31, is the line starting with $size= get........
    Anybody an idea about what's wrong?

    Thnx
    Dave
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    31
    Rep Power
    15
    Try:
    $size = GetImageSize("images/$row[4]");

Similar Threads

  1. Timeout getimagesize
    By Rostor in forum PHP Development
    Replies: 4
    Last Post: January 6th, 2004, 08:04 AM
  2. problem with getimagesize()
    By Parallel in forum PHP Development
    Replies: 1
    Last Post: November 9th, 2003, 05:22 PM
  3. Problems with getimagesize
    By dennisb in forum PHP Development
    Replies: 4
    Last Post: July 8th, 2003, 03:48 PM
  4. GetImageSize() behind a firewall??
    By metalcrypt in forum PHP Development
    Replies: 0
    Last Post: October 9th, 2002, 04:00 PM
  5. GetImageSize() vs. MySQL Query for image height/width
    By L0stPack3t in forum PHP Development
    Replies: 16
    Last Post: December 23rd, 2001, 01:27 AM

IMN logo majestic logo threadwatch logo seochat tools logo