0

I've been getting an error in a PHP script:

simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity

the problem is I get this error only when I run the script in localhost (XAMPP), when I run it in my site everything becomes fine.

So I can't test the code in localhost.

hakre
  • 193,403
  • 52
  • 435
  • 836
sha256
  • 3,029
  • 1
  • 27
  • 32
  • http://stackoverflow.com/questions/1307275/simplexml-error-handling-php – Muhammad Zeeshan Jun 29 '12 at 06:30
  • No, that doesn't solve, but yes thanks for the link. might be useful in future. I think the problem is in 'port' since it working fine in hosting server :) – sha256 Jun 29 '12 at 06:38

1 Answers1

1

I got this when I tried and open XML files on a HTTPS website before, turned out I was lacking SSL.

Are you using the SSL enabled XAMPP release?

Ben Poulson
  • 3,368
  • 2
  • 17
  • 26
  • No.. But I tested in my hosting server, And it's working fine there and I don't have SSL in that server, but Still working :S – sha256 Jun 29 '12 at 09:55
  • No, but the webserver still needs SSL enabled to connect to HTTPS resources. Even if you're not using HTTPS on your site. That's the point I was getting at. – Ben Poulson Jun 29 '12 at 14:43