Visualizzazione dei risultati da 1 a 2 su 2

Discussione: file_exists

  1. #1

    file_exists

    Perchè questo in locale funziona

    if (file_exists ('c:/Programmi/Apache Group/Apache/test/images/foto_atleti_st1/'.$stringa.'.jpg') == false)
    $stringa = "immagine_non_disponibile";

    e questo on line no?????

    if (file_exists ('http://www.xxxxxx.com/images/foto_atleti_st1/'.$stringa.'.jpg') == false)
    $stringa = "immagine_non_disponibile";

    Ho provato anche con

    ('http://ftp.xxxxxx.com/images/foto_atleti_st1/'.$stringa.'.jpg') ==
    e
    ('ftp.xxxxxx.com/images/foto_atleti_st1/'.$stringa.'.jpg') ==
    e
    ('www.xxxxxx.com/images/foto_atleti_st1/'.$stringa.'.jpg') ==

    sò che procedere per tentativi non è il massimo ma....

    Grazie Riccardo

  2. #2
    Moderatore di Server Apache L'avatar di marketto
    Registrato dal
    Sep 2001
    Messaggi
    5,858
    la funzione file_exists non supporta URL wrappers, se non con php 5.0
    http://it.php.net/file_exists
    think simple think ringo

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.