Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Kennt sich denn niemand mit XML per Php aus?

Empfohlene Antworten

Veröffentlicht

Hab bloss eine simple Frage!

Kann ich mit der Standard-Xml-Erweiterung im Php nur parsen oder auch xml-Dateien selbst erstellen?

  • 3 Jahre später...

Aloha,

via PHP ist sowohl das verarbeiten (parsen) als auch das erstellen von XML

Dateien möglich.

Hier einmal ein Beispeil, wie man mit PHP XML Seiten erstellt :

Quelle O'reilly Programmieren mit PHP Kapitel 11 XML


<?php header('Content-Type: text/xml');
echo '<?xml version="1.0" encoding="ISO-8859-1" ?>'
?>
<!DOCTYPE rss PUBLIC '-//Netscape Communications//DTD RSS 0.91//EN'
'http://my.netscape.com/publish/formats/rss-0.91.dtd'>
<rss version="0.91">
<channel>
<?php
// news items to produce RDF for
$items = array(
array('title' => 'Man Bites Dog',
'link' => 'http://www.example.com/dog.php',
'desc' => 'Ironic turnaround!'),
array('title' => 'Medical Breakthrough!',
'link' => 'http://www.example.com/doc.php',
'desc' => 'Doctors announced a cure for me today.')
);

foreach($items as $item) {
echo("<item>\n");
echo " <title>{$item['title']}</title>\n";
echo " <link>{$item['link']}</link>\n";
echo " <description>{$item['desc']}</description>\n";
echo " <language>en-us</language>\n";
echo("</item>\n");
}
?>
</channel>
</rss>
[/php]

Ich will ja nicht meckern, aber habt ihr schon mal auf's Datum von dem ersten Post geschaut :floet:

Hat da jemand diesen Link unbedacht verwendet? ;)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.