Ankündigung

Einklappen
Keine Ankündigung bisher.

index.php weisse leere seite

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • index.php weisse leere seite

    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:

    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>

  • #2
    Dann schreib in die oberste Zeile (nach <?php) mal:
    PHP-Code:
    error_reporting(E_ALL); 
    und zeig was dabei rauskommt.

    Möglicherweise stört sich dein Server an
    PHP-Code:
    <?=
    , was auf manchen Systemen (ich glaube wenn short_open_tags = off eingestellt ist) nicht funktioniert.
    Dafür müsstest du dann die lange Variante
    PHP-Code:
    <?php echo '...'?>
    nutzen.
    War der Beitrag hilfreich? Dann Bedank dich mit einem klick auf .

    Kommentar


    • #3
      Lass dir mal die phpinfo() ausgeben, und lese dich hier ein, http://www.php.net/manual/de/book.exif.php

      Kommentar


      • #4
        danke mal vorerst
        hab folgendes eingefügt
        PHP-Code:
        error_reporting(E_ALL);  
        ini_set ('display_errors''On'); 
        und raus kamm dabei dieser error report

        Fatal error: Call to undefined function exif_read_data() in C:\zpanel\hostdata\admincam\public_html\webcam_doe sntexist_com\cam\ulrichsweg\cam1\index.php on line 33

        und line 33 ist diese zeile
        PHP-Code:
        $exif exif_read_data($imgPath $imgFile); 

        Kommentar


        • #5
          Zitat von pit2014 Beitrag anzeigen
          Fatal error: Call to undefined function exif_read_data() in C:\zpanel\hostdata\admincam\public_html\webcam_doe sntexist_com\cam\ulrichsweg\cam1\index.php on line 33
          Zitat von the-basti Beitrag anzeigen
          Lass dir mal die phpinfo() ausgeben, und lese dich hier ein, http://www.php.net/manual/de/book.exif.php
          Das ist bei dir vermutlich nicht installiert, jedenfalls "kennt/findet" PHP die von dir aufgerufenen Funktion nicht (Call to undefined function exif_read_data() ).

          LG
          The string "()()" is not palindrom but the String "())(" is.

          Debugging: Finde DEINE Fehler selbst! | Gegen Probleme beim E-Mail-Versand | Sicheres Passwort-Hashing | Includes niemals ohne __DIR__
          PHP.de Wissenssammlung | Kein Support per PN

          Kommentar


          • #6
            ja schaut so aus als das noch nicht installiert ist!

            hab jetzt in der php.ini
            folgendes gefunden:

            Code:
            ;;;;;;;;;;;;;;;;;;;;;;
            ; Dynamic Extensions ;
            ;;;;;;;;;;;;;;;;;;;;;;
            
            ; If you wish to have an extension loaded automatically, use the following
            ; syntax:
            ;
            ;   extension=modulename.extension
            ;
            ; For example, on Windows:
            ;
            ;   extension=msql.dll
            ;
            ; ... or under UNIX:
            ;
            ;   extension=msql.so
            ;
            ; ... or with a path:
            ;
            ;   extension=/path/to/extension/msql.so
            ;
            ; If you only provide the name of the extension, PHP will look for it in its
            ; default extension directory.
            ;
            ; Windows Extensions
            ; Note that ODBC support is built in, so no dll is needed for it.
            ; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
            ; extension folders as well as the separate PECL DLL download (PHP 5).
            ; Be sure to appropriately set the extension_dir directive.
            ;
            
            extension_dir = "C:/zpanel/bin/php/ext"
            
            ;extension=php_bz2.dll
            extension=php_curl.dll
            ;extension=php_fileinfo.dll
            extension=php_gd2.dll
            ;extension=php_gettext.dll
            ;extension=php_gmp.dll
            ;extension=php_intl.dll
            extension=php_imap.dll
            ;extension=php_interbase.dll
            ;extension=php_ldap.dll
            extension=php_mbstring.dll
            ;extension=php_exif.dll      ; Must be after mbstring as it depends on it
            extension=php_mysql.dll
            extension=php_mysqli.dll
            ;extension=php_oci8.dll      ; Use with Oracle 10gR2 Instant Client
            ;extension=php_oci8_11g.dll  ; Use with Oracle 11g Instant Client
            extension=php_openssl.dll
            ;extension=php_pdo_firebird.dll
            ;extension=php_pdo_mssql.dll
            extension=php_pdo_mysql.dll
            ;extension=php_pdo_oci.dll
            ;extension=php_pdo_odbc.dll
            extension=php_pdo_pgsql.dll
            ;extension=php_pdo_sqlite.dll
            extension=php_pgsql.dll
            ;extension=php_pspell.dll
            ;extension=php_shmop.dll
            ;extension=php_snmp.dll
            extension=php_soap.dll
            ;extension=php_sockets.dll
            ;extension=php_sqlite.dll
            ;extension=php_sqlite3.dll
            ;extension=php_sybase_ct.dll
            ;extension=php_tidy.dll
            extension=php_xmlrpc.dll
            extension=php_xsl.dll
            ;extension=php_zip.dll
            extension=php_suhosin.dll
            extension=php_com_dotnet.dll
            die php_exif.dll ist hinter der mbstring

            wie aktivier ich die nun? einfach den ";" weglassen und appache neustarten?

            glg Peter

            Kommentar


            • #7
              Zitat von pit2014 Beitrag anzeigen
              wie aktivier ich die nun? einfach den ";" weglassen und appache neustarten?

              Genau!

              Kommentar


              • #8
                merci es funktioniert
                super board hier
                glg aus graz

                Kommentar

                Lädt...
                X