Quantcast
Channel: Topic Tag: xml | WordPress.org
Viewing all articles
Browse latest Browse all 3201

FebzPD on "load custom xml file to be used in wordpress page"

$
0
0

I tried both like this:

$percorso=get_stylesheet_directory_uri();
	$percorso.="porva.xml";
	$xml=simplexml_load_file($percorso) or die("Error: Cannot create object");

and like this:

$percorso=get_stylesheet_directory();
	$percorso.="porva.xml";
	$xml=simplexml_load_file($percorso) or die("Error: Cannot create object");

Still returns the "Error:..." string in both cases.


Viewing all articles
Browse latest Browse all 3201

Trending Articles