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

    Leggere txt esterno al server

    Come posso leggere un txt esterno al server? Con fopen non funziona.
    Posso usare es. simple_xml come quando parso l'xml?

    Grazie

  2. #2
    Puoi provare con:

    Codice PHP:
    file_get_contents(); 

  3. #3
    Mi restituisce questi errori
    codice:
    Warning: file_get_contents(http://www.sito.it/file.txt) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found
    codice:
    Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration

  4. #4
    up

  5. #5
    up

  6. #6
    Mi pare che "Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration" dica qual'è il problema.
    Non so se ti sarà di aiuto ma prova con questo:
    http://www.bin-co.com/php/scripts/load/

  7. #7
    Grazie risolto

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.