Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7

Thread: getimagesize()

  1. #1
    New Coder
    Join Date
    Oct 2006
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    getimagesize()

    Ever since we had our php.ini file hardended, we're received the following error when we try the getimagesize() command:

    Code:
    Warning: getimagesize(Array) [function.getimagesize]: failed to open stream: No such file or directory
    What could cause this?

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,493
    Thanks
    8
    Thanked 1,089 Times in 1,080 Posts
    What does this word mean: hardended ?

  • #3
    New Coder
    Join Date
    Oct 2006
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    We had hacking issues is phpbb and the company has a security service in which they made some common changes to php.ini. I'm not sure exactly...

  • #4
    Regular Coder
    Join Date
    Mar 2006
    Location
    Nigeria
    Posts
    192
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In addition to the file path, did you passed an array of image into too? Confirm to be sure you passed in the right path to the image file. If that doesnt work and u passed an array of image info, post the function line and let's see what its like.

  • #5
    New Coder
    Join Date
    Oct 2006
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The image is being uploaded through a form then GetImageSize() is used to check it which is when we get the error:

    FORM:
    PHP Code:
    <form action="index.php" method=post enctype="multipart/form-data">
    Image:  <input type=file name='image1'>
    <
    input type=submit value="Submit">
    </
    form
    AFTER FORM IS SUBMITTED:
    PHP Code:
    $imgsize GetImageSize($image1); 

  • #6
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,046
    Thanks
    19
    Thanked 42 Times in 42 Posts
    PHP Code:
    $image1 $_POST['IMAGE']; 
    //?? this required still? 

  • #7
    New Coder
    Join Date
    Oct 2006
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I just gave that a try, and it got rid of the original error:

    Warning: getimagesize(Array) [function.getimagesize]: failed to open stream: No such file or directory

    BUT, it doesn't upload the file as it's supposed to and still shows this error:

    Warning: unlink() [function.unlink]: No such file or directory
    (Notice the arrow is now gone from the ().


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •