fopen is giving errors any thing I could replace it with.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sanny

    fopen is giving errors any thing I could replace it with.

    My website gets a PHP error as below.

    main(): php_network_get addresses: getaddrinfo failed: Name or service
    not known in ....

    And after an hour or two Everything becomes OK automatically. Please
    let
    me know why above errors comes sometimes.

    I use a php function fopen() to reuse other webpages at different
    places. This error does not come always but sometimes randomly. And my
    error_log gets completely full of this error daily.

    Any one knows how to rectify this problem. Is there any alternative I
    should try.

    I use fopen() function a lot to reduce the file sizes.

    Thanks
    Sanny.

  • Gordon Burditt

    #2
    Re: fopen is giving errors any thing I could replace it with.

    >main(): php_network_get addresses: getaddrinfo failed: Name or service[color=blue]
    >not known in ....
    >
    >And after an hour or two Everything becomes OK automatically. Please
    >let
    >me know why above errors comes sometimes.[/color]

    Your network connectivity and/or DNS servers suck. Or perhaps
    it's the DNS servers for the target machine that suck.

    Gordon L. Burditt

    Comment

    Working...