note 28940 added to function.file
| From: | tim at diligence dot com | Date: | Tue, 28 Jan 2003 18:35:44 +0000 |
| Subject: | note 28940 added to function.file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-42943@lists.php.net to get a copy of this message | ||
file and readfile exhibit bizzarre behavior when dealing with some XML tags (php4.2.2).
Try this.
Create a file called test.xml with the following.
<?xml version="1.0" ?>
<Address>someaddress</Address>
Then call either
readfile("./test.xml");
or
print implode("",file("./test.xml)) ;
What you will get is
<?xml version="1.0" ?>
<Address>someaddress</address>
Notice the lowercase </address>
For some reason it converts the uppercase </Address> to a lowercase </address>
--
http://www.php.net/manual/en/function.file.php
http://master.php.net/manage/user-notes.php?action=edit+28940
http://master.php.net/manage/user-notes.php?action=delete+28940
http://master.php.net/manage/user-notes.php?action=reject+28940