sir pannels
02-27-2007, 03:03 PM
Yo all,
I could not decide if this goes here or XML forum, as it may be a php config issue. Please move if you think its wrong place.
Anyways I have the below, creates a new dom document and loads in some xml ...
<?
print "this gets displayed";
$dom = new DomDocument();
$dom->load("http://localhost/file.xml");
print "this does not get displayed";
?>
The file is in the specified location.
This does not work. Funny thing is no error, just kills the script. Anything before the new DomDocument(); gets processed but anything after it does.. as it the code breaks the script.. but no actual errors or php warnings.
It is Suse 10.1 and PHP 5.1.2. The 'dom' works on there for javascript. Is it the same one it uses or different? or did i miss understand?
If anyone can tell me where to look to resolve this it be much apperciated.
Warm Regards,
Sir P
I could not decide if this goes here or XML forum, as it may be a php config issue. Please move if you think its wrong place.
Anyways I have the below, creates a new dom document and loads in some xml ...
<?
print "this gets displayed";
$dom = new DomDocument();
$dom->load("http://localhost/file.xml");
print "this does not get displayed";
?>
The file is in the specified location.
This does not work. Funny thing is no error, just kills the script. Anything before the new DomDocument(); gets processed but anything after it does.. as it the code breaks the script.. but no actual errors or php warnings.
It is Suse 10.1 and PHP 5.1.2. The 'dom' works on there for javascript. Is it the same one it uses or different? or did i miss understand?
If anyone can tell me where to look to resolve this it be much apperciated.
Warm Regards,
Sir P