PHP/Apache error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cole007
    New Member
    • Nov 2006
    • 2

    PHP/Apache error

    Hi all,
    Posted this query on the PHP zone but as it might be a server issue thought I would also check here to see if anyone could help me out.
    Am trying to work with remote images in PHP but get the following message:
    Warning: getimagesize() [function.getima gesize]: php_network_get addresses: getaddrinfo failed: No such host is known. in C:\Apache\Apach e2\htdocs\map\i mage.php on line 4
    Warning: getimagesize(ht tp://www.coflein.gov .uk/wales_thumbnail s/CD2003_645_013. jpg) [function.getima gesize]: failed to open stream: No error in C:\Apache\Apach e2\htdocs\map\i mage.php on line 4
    [PHP]$imageSize = getimagesize($i mgUrl);[/PHP]
    $imgUrl being the location of the image. Am running Apache 2.0 with PHP 5.04 locally on a WinXP box.
    My prime suspects are:
    • It is a problem with the Apache server configuration
    • It is a firewall issue
    • Result of running Apache locally

    Apologies for my ignorance and thanks in advance for any response,

    Cole
  • cassbiz
    New Member
    • Oct 2006
    • 202

    #2
    Wouldn't you need to have the following?


    Code:
    $_GET($imgUrl)

    Comment

    • Colloid Snake
      New Member
      • Nov 2006
      • 144

      #3
      Are you able to ping the box?

      ping *serverIPaddres s*

      Are there other boxes on the same subnet for which the function works on?

      I would check those out - make sure you are able to actually reach the box you want with the function you want.

      Comment

      • scottreckard
        New Member
        • Jan 2007
        • 3

        #4
        I would consider a issue with security settings on the web server. Contact your admin first.

        Comment

        Working...