Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 12
  1. #1
    Utente di HTML.it
    Registrato dal
    May 2007
    Messaggi
    1,802

    errore uscito all improvviso

    salve ragazzi mi appare un errore quando linco il link di dove e il files cheserve ad inviare l email e a inserire i dati nel db l errore chemi esce e il seguente
    cosa puo essere il problema ?
    Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in D:\Inetpub\vhosts\marikwebdesigner.com\httpdocs\x\ mess.PHP on line 56
    posto lo script

    Codice PHP:
    <?php
    include_once("include/config.php");

    $adminaddress "info@marikwebdesigner.com";
    $siteaddress ="http://www.marikwebdesigner.com";
    $sitename "marikwebdesigner";

    error_reporting E_WARNING | ~ E_NOTICE ) ; 
    $CONFIG['expire'] = 60;
    $CONFIG['regexpire'] = 24//in ore

    $conn = @mysql_connect($CONFIG['host'], $CONFIG['user'], $CONFIG['pass']) or die("&error= Impossibile stabilire una connessione");
    @
    mysql_select_db($CONFIG['dbname']) or die("&error= Errore nel DB");


    $CONFIG['check_table'] = array(
    "name" => "check_global",
    "email" => "check_global"
    );
    function 
    check_email($value)
    {
    global 
    $CONFIG;

    $value trim($value);

    if ((
    $value == ""))
    {
    echo 
    "&error= Il campo non può essere lasciato vuoto";
    }
    else{
    $query = @mysql_query("SELECT id FROM mailing WHERE email='$value'")or die("&error= Errore nella query");


    if (@
    mysql_num_rows($query) != 0) return "&mess= Email già utilizzata";
    else return
    "OK";
    }
    }
    //--------------
    define('AUTH_LOGGED'99);
    define('AUTH_NOT_LOGGED'100);

    define('AUTH_USE_COOKIE'101);
    define('AUTH_USE_LINK'103);
    define('AUTH_INVALID_PARAMS'104);
    define('AUTH_LOGEDD_IN'105);
    define('AUTH_FAILED'106);

    define('REG_ERRORS'107);
    define('REG_SUCCESS'108);
    define('REG_FAILED'109);



    //No need to change anything below ...
    // Gets the date and time from your server
    $date date('Y-m-d H:i:s'); 


    // Gets the IP Address
    if ($_SERVER['REMOTE_ADDR'] == "")
    {
    $ip "no ip";
    }
    else
    {
    $ip gethostbyaddr($_SERVER['REMOTE_ADDR']);
    }

    // Gets the POST Headers - the Flash variables
    $action $_REQUEST['action'] ;
    $name $_REQUEST['name'] ;
    $email $_REQUEST['email'] ;
    //Process the form data!
    // and send the information collected in the Flash form to Your nominated email address

    if ($action == "send")
    {
    //Innanzitutto controlliamo la var.le name:
    $controllo check_email($email);

    if (
    $controllo != "OK")
    {
    echo 
    $controllo;

    //Qui potresti anche far visualizzare una cosa del genere:
    //echo "&mess=
    <A HREF=\"http://www.marikweb.com/homeita/\">Ritorna alla registrazione</A>";
    }
    else
    {
    //Ora inseriamo i dati nel DB.
    //Ovviamente devi creare una tabella in cui inserire i dati ke passi con il post.


    $link_db mysql_connect($CONFIG['host'],$CONFIG['user'],$CONFIG['pass']);
    mysql_select_db($CONFIG['dbname']);
    $sql_insert "INSERT INTO mailing (name,email,date,ip) VALUES ('$name','$email','".date('Y-m-d H:i:s')."','".$_SERVER['REMOTE_ADDR']."')"


    if (
    mysql_query($sql_insert))
    {
    echo 
    "&mess=  OK RIGA INSERITA  ";
    }
    else
    {
    die(
    mysql_error());
    }

    mysql_close($link_db);

    //A questo punto inviamo l'e-mail
    mail ("$adminaddress","informazioni",
    "L'utente: $name si è iscritto alla MailingList
    ------------------------------
    Name Utente: 
    $name
    EmailUtente: 
    $email \n
    ------------------------------

    Logged Info :
    ------------------------------
    Using: 
    {$_SERVER['HTTP_USER_AGENT']}
    Hostname: 
    $ip
    IP address: 
    {$_SERVER['REMOTE_ADDR']}
    Date/Time: 
    $date","FROM:$email) ;
     
    //This sends a confirmation to your visitor
    mail ("$email","Re:",
    "Salve $name,\n
    Per confermare l'iscizione alla Newsletter Le basta cliccare sul link sottostante 
    $siteaddress/homeita/mailinglist/conferma.php?email=$email&name=$name

    Saluti dallo Staff di 
    $sitename     
    $siteaddress","FROM:$adminaddress") ;

    //Confirmation is sent back to the Flash form that the process is complete
    $sendresult "Thank you. You will receive a confirmation email shortly.";
    $send_answer "answer=";
    $send_answer .= rawurlencode($sendresult);
    echo 
    $send_answer;   
           
    }
    }
    //

    ?>

  2. #2
    prova a settare il timezone nel php.ini, poi restarta il server http

    codice:
    [Date]
    ; Defines the default timezone used by the date functions
    date.timezone = Europe/Rome

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  3. #3
    Utente di HTML.it
    Registrato dal
    May 2007
    Messaggi
    1,802
    le faccio online le prove non in locale

  4. #4
    Originariamente inviato da rocco.mod
    le faccio online le prove non in locale
    avranno aggiornato il php dimenticandosi di allineare il php.ini.


    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  5. #5
    Utente di HTML.it
    Registrato dal
    May 2007
    Messaggi
    1,802
    e cosa devo dire al mio hosting?

  6. #6
    Utente di HTML.it
    Registrato dal
    May 2007
    Messaggi
    1,802
    una domanda io questo script lo devo fare interaggire con flash tene intendi di actionscript? acenno il problema io dal form in flash inserisco nome e email invio al php e il php invia a flash che l emeil e stata inserita pero mi carrica piu di quello che deve caricare mi carica tutto questo perche??
    Codice PHP:
     OK RIGA INSERITA  

    [b]Strict Standards[/b]:  date() [[url='function.date']function.date[/url]]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in [b]D:\Inetpub\vhosts\marikwebdesigner.com\httpdocs\x\mess.PHP[/b] on line [b]123[/b]



    [b]Strict Standards[/b]:  mail() [[url='
    function.mail']function.mail[/url]]: It is not safe to rely on the system's timezone settingsPlease use the date.timezone settingthe TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warningyou most likely misspelled the timezone identifierWe selected 'Europe/Paris' for '2.0/DST' instead in [b]D:\Inetpub\vhosts\marikwebdesigner.com\httpdocs\x\mess.PHP[/bon line [b]123[/b]



    [
    b]Strict Standards[/b]:  mail() [[url='function.mail']function.mail[/url]]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in [b]D:\Inetpub\vhosts\marikwebdesigner.com\httpdocs\x\mess.PHP[/b] on line [b]131[/b]

    answer=Thank you. You will receive a confirmation email shortly. 

  7. #7
    non ne so nulla di actionscript, ma quella segnalazione e' generata dal php che vorrebbe essere settato nel php.ini.... altro non saprei che dirti.

    Chiedi se hanno cambiato la versione del php e se hanno aggiornato il date.timezone nel php.ini

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  8. #8
    Utente di HTML.it
    Registrato dal
    May 2007
    Messaggi
    1,802
    sai una cosa io lo stesso script lo uso e mi funziona

  9. #9
    Originariamente inviato da rocco.mod
    sai una cosa io lo stesso script lo uso e mi funziona
    e quindi???? nessun problema.

    Il silenzio è spesso la cosa migliore. Pensa ... è gratis.

  10. #10
    Utente di HTML.it
    Registrato dal
    May 2007
    Messaggi
    1,802
    no nessun problema va io ho scritto al mio hosting ma
    ancora non mi anno dato rispost

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.