Hallo!
How do output data from another PHP file "1.php" (file is with XML construction).
"1.php" code:
<meteodata time="2010-07-21">
<data id="temp">23.35</data>
<data id="humid">72.14</data>
</meteodata>
On file "2.php" should be a lines what print the data of "temp" and "humid"
echo "<a href=\"http://.../1.php" </a>";
How do output data from another PHP file?
Moderator: General Moderators
Re: How do output data from another PHP file?
Code: Select all
echo file_get_contents('1.php');Re: How do output data from another PHP file?
Thanks.
But how can I get only data, if example data id="temp"
But how can I get only data, if example data id="temp"