Risultati della ricerca

  1. Y

    php extra-lento su hosting linux

    Ciao ragazzi, Ho messo un software php (che fondamentalmente legge e scrive su file di testo) su server Linux (Aruba Spa), ed è diventato di una lentezza mostruosa, praticamente piantatissimo. Ad esempio per effettuare il login, dove il software solo legge la password da un file di testo e...
  2. Y

    Performance html/php vs php/html

    Salve ragazzi, Quali dei due metodi e' eseguito piu' rapidamente? <tag attributo="<?php echo FunzionePhp($foo); ?>"> Bla bla bla <?php echo AltraFunzionePhp($pippo); ?>. </tag> <div>Adesso e' <?php echo Time(); ?>, ciao <?php echo $fooNome; ?>.</div> oppure echo '<tag...
  3. Y

    [PHP] The session is lost

    Hi! Please, a little help to solve this problem. The scenario is complex, but in the essence it is: 1. content of first-file.php <?php session_start(); $_SESSION['s_Foo'] = "pippo"; // this is only a twisted way of producing the header('location: second-file.php'), because unfortunately often I...
  4. Y

    scrivere file in ascii

    Scrivendo un nuovo file tramite php, automaticamente si ottiene l'encoding utf-8 se il testo in input conteneva un qualche carattere non-ascii. Necessito che il file creato/scritto dal php sia in formato ascii (perche' si tratta di un robots.txt). Nell'istruzione fwrite($puntatore...