Visualizzazione risultati 1 fino 2 di 2

Discussione: PHP Scandir And Include Scripts

  1. #1
    Guest

    Unhappy PHP Scandir And Include Scripts

    My current website uses the PHP scandir function to read the contents of a sub-directory and then includes each one of the files found by the scandir function into the main page.

    The code has been tested using XAMPP (Apache based) web server locally and the code works fine. However, when the code is uploaded to your web hosting server, it does not include an files as if the scandir function did not find any files. I have checked and the proper sub-folder does include the desired file. I have even tried changing the scnadir reference from relative to an absolute path but still no results. The PHP scandir function does not seem to return any errors (like it did on other hosting sites that did not support the scandir function).

    Is PHP scandir() and PHP include supported?

  2. #2
    L'avatar di Gianluca
    Gianluca non è connesso Amministratore
    Data registrazione
    15-02-2001
    Messaggi
    18,035

    Predefinito

    Yes, it is supported, you may insert

    error_reporting(E_ALL);

    At the beginning of your script in order to display every warning. Please use the English forum http://forum.en.altervista.org
    Gianluca

Tags for this Thread

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •