hallo ich habe folgende index.php welche mir nur eine leere weisse seite oeffnet
dieser script hat mit XAMPP funktioniert jetzt habe ich einen apache server 2.4 mit PHP 5.3.20 und er macht laut auskunft den folgenden error
exif_read_data() function not found
der jenige der den script geschrieben hat meinte ich muss meinen server umbauen, aber vielleicht brauche ich nur ein php functions update, oder es hat sich beim script ein kleiner fehler eingeschlichen?
hab leidder keine Ahnung
danke vorab
peter
so sieht der script aus:
dieser script hat mit XAMPP funktioniert jetzt habe ich einen apache server 2.4 mit PHP 5.3.20 und er macht laut auskunft den folgenden error
exif_read_data() function not found
der jenige der den script geschrieben hat meinte ich muss meinen server umbauen, aber vielleicht brauche ich nur ein php functions update, oder es hat sich beim script ein kleiner fehler eingeschlichen?
hab leidder keine Ahnung
danke vorab
peter
so sieht der script aus:
PHP-Code:
<?php
/*-------------------------------------------------------+
| Webcam Script
| Copyright © 2014 AK | Webdesign // Arne Kolisch
| http://www.ak-webdesign.net
+--------------------------------------------------------+
| Title: Stand Alone sreambox
| Filename: getimg.php
| Author: Arne Kolisch
| Homepage: www.ak-webdesign.net
+--------------------------------------------------------+
| This program is released as non free software and
| can't be redistributed and/or modified.
| The Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
// Einstellungen
$imgPath = '';
$imgFile = 'See-CAM.jpg';
$logoPath = '';
$logoFile = 'yingyang.png';
## AB HIER BITTE NICHTS MEHR ÄNDERN!!!! ##
$imgInfo = getimagesize($imgPath . $imgFile);
$logoInfo = getimagesize($logoPath . $logoFile);
// Datum und Uhrzeit
$exif = exif_read_data($imgPath . $imgFile);
$weekdays = array('Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="60">
<title>Webcam Anzeige</title>
<style type="text/css">
@font-face {
font-family: 'OCRASTD';
src: url('OCRASTD.otf');
font-weight: normal;
font-style: normal;
}
body,td,th {
font-family: 'OCRASTD', Verdana, Geneva, sans-serif;
font-size: 12px;
color: #FFF;
}
html,body {
background-color: #000;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
height:100%;
}
a:link {
color: #F93;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #F93;
}
a:hover {
text-decoration: underline;
color: #F90;
}
a:active {
text-decoration: none;
color: #F90;
}
#main {
height:100%;
position:relative;
}
#img {
position:absolute;
top:50%;
left:50%;
width:<?= $imgInfo[0];?>px;
height:<?= $imgInfo[1];?>px;
margin-left:-<?= $imgInfo[0]/2;?>px;
margin-top:-<?= $imgInfo[1]/2;?>px;
}
#title, #time, #logo {
position:absolute;
}
#title {
top:0px;
left:40%;
padding:10px 20px;
background:rgba(0,0,0,0.6);
font-size:20px;
}
#logo {
bottom:0px;
right:0px;
}
#logo img {
height:120px;
}
#time {
top:0px;
right:0px;
padding:10px 20px;
background:rgba(0,0,0,0.6);
font-size:20px;
}
</style>
</head>
<body>
<div id="main">
</div>
<div id="img">
<img src="<?= $imgPath . $imgFile; ?>"/>
<div id="title">See Suppan</div>
<div id="time"><?= $weekdays[date('w',$exif['FileDateTime'])]; ?> <?= date('d.m.Y',$exif['FileDateTime']); ?> <?= date('H:i',$exif['FileDateTime']); ?></div>
<div id="logo"><img src="<?= $logoPath . $logoFile; ?>"/></div>
</div>
</div>
</body>
</html>
Kommentar