/    Sign up×
Community /Pin to ProfileBookmark

readfile error

I just change my server i have a dedicated server but now my site show this error:

Warning: readfile(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/intercam/public_html/ens/includes/derechan.php on line 6

the line in question has:
<? readfile(“http://www.intercampusweb.com/interamigos/clasificados.php“) ?>

my php is not running on safe mode, anyone knows how can this work as it did on my other server?


——————-

Look how in this server works great (images not showing ’cause are no longer on that location but script works fine).

[url]http://66.225.237.219/~intercam/ens/includes/oldserver.php[/url]

now same code on the new one:
(shows the errors after like 25 seconds)
[url]http://intercampusweb.com/ens/includes/newserver.php[/url]

The code for same files is here:
[url]http://intercampusweb.com/ens/includes/code.txt[/url]

as you can see the error is just that this command not working:

<? readfile(“http://www.intercampusweb.com/interamigos/clasificados.php“) ?>

<? readfile(“http://www.intercampusweb.com/interamigos/includepic.php“) ?>

<?
readfile(“http://www.intercampusweb.com/interamigos/miembros.php“)
?>

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJun 21.2005 — My first guess would be that allow_url_fopen is not set to true in your php.ini file.
Copy linkTweet thisAlerts:
@notaguruauthorJun 22.2005 — Problem is that when i restart my server the DNS/Name Server (BIND) process does not start so i need to go in my whm panel and under services restart it manually... any fix?
×

Success!

Help @notaguru spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...