Avatar of javiermorquecho
Flag for Mexico

asked on 

php xml file doesnt display (simplexml_load_file)

Hi EE!

I try to read a doubleclick.com process that give a XML response. The problem, in development read the XML and shows me the info, but in production doesnt. I added a file_exist function and show me "no exist"

I attach the code.

Thnx a lot
$file = 'http://ad.doubleclick.net/adx/xxx/xxx;dcmt=text/xml;sz=###x###;ord='.$ord;

if (file_exists($file)) {
	echo "exist";
	echo "no exist";

$ads = simplexml_load_file($file);
$small_img = $ads->small_img;

Open in new window


Avatar of undefined
Last Comment

8/22/2022 - Mon