I just migrated to a new server and magic parser was not working.
What are the requirements necessary to run magic parser.
Does it work with the latest version of php?
Any php configurations I need turned on?
thanks
Hi,
I have this same problem, it works fine on my testpage running on my own server but when I´m moving the page to the webhotel where it schould be and it´s just showing a blank page. I have checked that URL wrappers are enabled, I have also tried to run the XML file both locally and from an external server.
I have the get error message strings in the php file, but it is still just showing a blank page.
Any other ideas or tips I could try?
Hi bilenberg,
When you say that it doesn't work even when using the XML locally (I assume you mean that you have just passed the filename rather than a URL to MagicParser_parse) that would indicate something other than an access issue - possibly a character encoding incompatibility.
To test if that is the case I will email you a "cleansing" version of Magic Parser that removes any encoding errors before parsing which should help...
Cheers,
David.
--
MagicParser.com
Thanx,
this solved my problem... This script is great, and the support hava also been fantastic.
Now I´m just stuck with the fact that the XML file is ISO 8859-1 and I need to run it on Joomla!-site that is UTF-8... Any idea on where to find good info abt phputf-8 encoding?
I got it working!
Found the answer here in this forum, just running it through a separate .php file:
<?php
header("Content-Type: text/xml; charset=utf-8");
$xml = file_get_contents("{link saved}");
$xml = utf8_encode($xml);
print $xml;
exit();
?>
Thx for all the help!
Hi,
There's nothing specific required, and the script is compatible across all versions of PHP, however it may be that you are attempting to parse a URL directly, and URL wrappers are not enabled which enable you to fopen() a URL - more info here:
http://uk2.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen
That should be all it is...
Cheers,
David.