Difference between revisions of "6240: mobil og trådløs system"

From Teknologisk videncenter
Jump to: navigation, search
(Links )
Line 1: Line 1:
= Klasse 6240   =
+
= Klasse 6240    =
  
 +
== PHP SimpleXML ==
 +
<pre>    /* Her hentes XML filens indhold ind i en variabel */
 +
    $xmlIndholdet = file_get_contents("http link til data");
 +
    /* Her instancieres XML indholdet */
 +
    $xmlObject = new SimpleXMLElement( $variable_til_indhold );
 +
 +
 +
foreach($data_object-&gt;datacontainer as $item)
 +
    {
 +
 +
echo "datapunkt: ".$item-&gt;datapunktet."&lt;/br&gt;";
 +
    }
 +
 +
 +
</pre>
 
== Links&nbsp;  ==
 
== Links&nbsp;  ==
  
Line 17: Line 32:
 
Begynder introduktion til php&nbsp;: http://phpartikler.dk/index.php  
 
Begynder introduktion til php&nbsp;: http://phpartikler.dk/index.php  
  
SimpleXML: http://www.php.net/manual/en/simplexml.examples-basic.php
+
SimpleXML: http://www.php.net/manual/en/simplexml.examples-basic.php  
  
 
[[Category:Wireless]]
 
[[Category:Wireless]]

Revision as of 09:39, 27 September 2011

Klasse 6240  

PHP SimpleXML

    /* Her hentes XML filens indhold ind i en variabel */
    $xmlIndholdet = file_get_contents("http link til data");
    /* Her instancieres XML indholdet */
    $xmlObject = new SimpleXMLElement( $variable_til_indhold );
	
	
	foreach($data_object->datacontainer as $item)
    {

	echo "datapunkt: ".$item->datapunktet."</br>";
    }


Links 

WAMP server : http://www.wampserver.com/en/

XHTML: http://www.developershome.com/wap/xhtmlmp/xhtml_mp_tutorial.asp?page=introduction

XHTML MP : http://www.developershome.com/wap/xhtmlmp/xhtml_mp_tutorial.asp?page=introduction

XLS: http://www.w3schools.com/xsl/default.asp

Android Emulator : http://www.4shared.com/get/-7oe9aMn/Android_Emulator_15_PC.html

OpenWave Simulator: http://programa.nii.com/en/en/technologies/wml/simulator7

Begynder introduktion til php : http://phpartikler.dk/index.php

SimpleXML: http://www.php.net/manual/en/simplexml.examples-basic.php