troubleshooting Question

php xml file doesnt display (simplexml_load_file)

Avatar of javiermorquecho
javiermorquechoFlag for Mexico asked on
PHPXML
10 Comments2 Solutions732 ViewsLast Modified:
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
$ord=rand(1000,100000);
$file = 'http://ad.doubleclick.net/adx/xxx/xxx;dcmt=text/xml;sz=###x###;ord='.$ord;

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

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

Open in new window

ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros