Hello I have a script that reads all files from a directory and stores the filenames in an array. It works fine but when the files are a lot, let's say more than 1000, the page simply hangs up and nothing appears with a "the page cannot be displayed" message.
Is there any way to avoid this?
Thank you very much for your help
JP

    first try changing a few things.
    at the top of your script put:

    ini_set("max_execution_time", 0);
    ini_set("memory_limit", "64M");

    if you are running on iis, there is a script timeout setting in the internet service manager, i cant remember exactly where it is though.

      Still have no luck, can I increase that memory limit? I'm running the website on a remote Apache Server.

      thanks
      JP

        Write a Reply...