Visualizzazione dei risultati da 1 a 4 su 4
  1. #1

    Contatore che non frunziona in Internet

    Allroa, premetto che in locale funziona alla perfezione, poi lo vado a mettere in internet e mi da questo errore:
    codice:
    Call to undefined function: file_get_contents()
    questo è il codice che ripeto, in locale funziona ma non su internet:
    Codice PHP:
    <?

    $TextFile 
    "ezcounter.txt";
    $Count trim(file_get_contents($TextFile));

    // Read old entries
    $FP fopen($TextFile"r");
    $Count=fgets($FP4096);
    fclose ($FP);

    settype($Count"integer");
    $Count++;

    if (
    $FP fopen ($TextFile"w")){
      
    fwrite ($FP$Count);
      
    fclose ($FP);
    }
    ?>
    Il mio sito: CIONCO.ALTERVISTA.ORG
    Lloyd Bank$
    I roll with the gangstas don't get fly with your mouth
    The wrong punchline'll have niggas inside of your house

  2. #2
    Moderatore di Server Apache L'avatar di marketto
    Registrato dal
    Sep 2001
    Messaggi
    5,858
    file_get_contents() funziona con versioni di php >= 4.3.0, molto probabilmente sul server è presenta una versione precedente.
    think simple think ringo

  3. #3
    è possibile che il server che ospita il mio sito abbia una vecchia versione di php e che quindi non vada?
    Il mio sito: CIONCO.ALTERVISTA.ORG
    Lloyd Bank$
    I roll with the gangstas don't get fly with your mouth
    The wrong punchline'll have niggas inside of your house

  4. #4
    ah ok, scusa ma stavamo scrivendo contemporaneamente...allora provo con un altro contatore...
    Il mio sito: CIONCO.ALTERVISTA.ORG
    Lloyd Bank$
    I roll with the gangstas don't get fly with your mouth
    The wrong punchline'll have niggas inside of your house

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.