mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
24 lines
557 B
Plaintext
24 lines
557 B
Plaintext
<?php
|
|
//Username
|
|
$user='user';
|
|
|
|
//Passwort
|
|
$pass='password';
|
|
|
|
//URL zum RDF
|
|
$url = 'https://cis.technikum-wien.at/rdf/student.rdf.php?studiengang_kz=227&semester=1&studiensemester_kurzbz=WS2008&typ=student';
|
|
|
|
|
|
$auth = base64_encode($user.':'.$pass);
|
|
$header = array("Authorization: Basic $auth");
|
|
$opts = array( 'http' => array ('method'=>'GET', 'header'=>$header));
|
|
$ctx = stream_context_create($opts);
|
|
|
|
//RDF holen
|
|
$xml = file_get_contents($url,false,$ctx);
|
|
|
|
//Weiterverarbeitung mit SimpleXML etc
|
|
//...
|
|
|
|
echo htmlentities($xml);
|
|
?> |