Jump to content

writing xml using php and then reading it


mikefrederick

Recommended Posts

I am writing an xml file using php. The top of the file starts sets a database connection and then specifies the content type as xml. This is fine...and I have been able to write the entire file as xml. But in a different file I need to urlencode the contents of the file. I tried using urlencode(file_get_contents($file)) but the actual php lines within the xml file are showing up, I just want the xml document as it would be shown a browser. How shoud I do this?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.