Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<?php
if(isset($_GET['id'])) {
// you may have to modify login information for your database server:
@MYSQL_CONNECT("", "", "")
@mysql_select_db("");
$query = "select pfad, filetype from swf where id=$id";
$result = @MYSQL_QUERY($query);
$data = @MYSQL_RESULT($result,0,"pfad");
$type = @MYSQL_RESULT($result,0,"filetype");
var_dump($data);
var_dump($type);
exit;
Header( "Content-type: $type");
readfile($data);exit();
};
?>
<?php
if(isset($_GET['id'])) {
@MYSQL_CONNECT("", "", "")
@mysql_select_db("");
$query = "select pfad, filetype from swf where id=$id";
$result = @MYSQL_QUERY($query);
$data = @MYSQL_RESULT($result,0,"pfad");
$type = @MYSQL_RESULT($result,0,"filetype");
Header( "Content-type: image/jpeg");
readfile("http://www.domain.de/test.jpg");exit();
};
?>
<?php
error_reporting(E_ALL);
if(isset($_GET['id'])) {
// you may have to modify login information for your database server:
@MYSQL_CONNECT("", "", "")
@mysql_select_db("");
$query = "select pfad, filetype from swf where id=$id";
$result = @MYSQL_QUERY($query);
while( $row = mysql_fetch_assoc($result) ){
var_dump($row);
echo "<br />";
}
exit;
Header( "Content-type: $type");
readfile($data);exit();
};
?>
$data = @MYSQL_RESULT($result,0,"pfad");
$type = @MYSQL_RESULT($result,0,"filetype");
var_dump($data, $type);
$query = "select pfad, filetype from swf where id=$id";
while( $row = mysql_fetch_assoc($result) ){