note 77700 added to ref.xml

From: Date: Sun, 09 Sep 2007 15:22:03 +0000
Subject: note 77700 added to ref.xml
Groups: php.notes 
Request: Send a blank email to php-notes+get-130335@lists.php.net to get a copy of this message
The problem I had was I needed to generate xml on the screen for users to actually see and copy to a file. I'm generating the xml manually from a php file and the browser kept interpreting the xml...not very helpful. This is how you get around it: <? $file = file_get_contents("http://fileurl/xml.php?whatever=$whatever"); print nl2br(htmlentities($file)); ?> Prints all my xml quite nicely. ---- Server IP: 66.207.199.35 Probable Submitter: 68.147.110.13 ---- Manual Page -- http://www.php.net/manual/en/ref.xml.php Edit -- https://master.php.net/note/edit/77700 Del: integrated -- https://master.php.net/note/delete/77700/integrated Del: useless -- https://master.php.net/note/delete/77700/useless Del: bad code -- https://master.php.net/note/delete/77700/bad+code Del: spam -- https://master.php.net/note/delete/77700/spam Del: non-english -- https://master.php.net/note/delete/77700/non-english Del: in docs -- https://master.php.net/note/delete/77700/in+docs Del: other reasons-- https://master.php.net/note/delete/77700 Reject -- https://master.php.net/note/reject/77700 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130335) next »