PDA

View Full Version : php include problem


kunle
02-18-2005, 06:24 PM
Hello everyone:

I have a PHP include script on my vbulletin board. But many times, we get the following error: What is going on?



Warning: Unknown(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /global.php(389) : eval()'d code on line 2



Warning: Unknown(http://www.nigeriavillagesquare1.com/articles1.php): failed to open stream: Success in /global.php(389) : eval()'d code on line 2

My Board is: http://www.nigeriavillagesquare.com/board/

can anyone help please?

kunle
02-22-2005, 10:02 PM
anyone?

sabret00the
02-23-2005, 08:17 AM
you might wanna post your php_includes template

kunle
02-27-2005, 02:45 AM
here it is:


ob_start();
include('http://www.nigeriavillagesquare1.com/articles1.php');
$your_code = ob_get_contents();
ob_end_clean();

Guest190829
02-27-2005, 03:10 AM
here it is:


ob_start();
include('http://www.nigeriavillagesquare1.com/articles1.php');
$your_code = ob_get_contents();
ob_end_clean();


Try


ob_start();
include('/articles1.php');
$your_code = ob_get_contents();
ob_end_clean();

kunle
02-27-2005, 02:26 PM
Try


ob_start();
include('/articles1.php');
$your_code = ob_get_contents();
ob_end_clean();


Danny

The problem is that articles1.php s on a different URL (http://www.nigeriavillagesquare1.com) whereas my board is on http://www.nigeriavillagesquare.com.

Could that be the cause of the problem?