sha256
sha256

Reputation: 3099

simplexml_load_file() error happening in only localhost/xampp

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.

Upvotes: 0

Views: 1187

Answers (1)

Ben Poulson
Ben Poulson

Reputation: 3505

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?

Upvotes: 1

Related Questions