Forum Moderators: coopster
I can (and have) use PHP to create properly formatted XML pages and what I want to do now is be able to include a XML file from one server to another using PHP. I don't want to parse the file, I want to keep the <markers></markers> and the rest of the XML tags.
I tried using the include statement but that only gives me
parse error, unexpected T_STRING in http://www.example.com/xmlfile.php on line 1.
Does anyone know how I can do this?
parse error, unexpected T_STRING in http://www.example.com/xmlfile.php on line 1
It seems like this error that you are receiving is due to an error regarding the placement and/or use of quotation marks and/or apostrophies. Make sure everything is properly written on line 1.
Sorry for the lack of help.
Good luck
eelix
I get the parse error. If I use single quotes instead, I still get the error, I don't see where the error is.
Instead of using include(), try using fopen().
Examples on how to use remote files are here [us2.php.net...]
Good luck :)
eelix
Any ideas?