This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

File Download


  1. philipsylvester
    Member

    I need to upload and download word files. All is working well until it comes to downloading them. I get a the following message:

    <b>Warning</b>: set_time_limit() has been disabled for security reasons in <b>/home/fhlinux147/r/registration.outlookunlimited.com/user/htdocs/login/download.php</b> on line <b>132</b>

    And the word files come out as nonsense.
    I have no way of altering the php.ini files on my host's server, so is there a workaround for this?

    Posted 16 years ago #
  2. yuniar

    Hmm.. set_time_limit() is being used to prevent timeouts when you download large files.
    Since some hosting would terminate your script after certain amount of time.

    If your hosting disabled that function, then you can simply remove it from your download.php file.

    Search around line 132 and you'll find this line:

    set_time_limit(0);

    simply remove that line.


    MachForm Founder

    Posted 16 years ago #
  3. philipsylvester
    Member

    I'm sure I tried that already and it didn't work, but I've just upgraded to version 2 and removed the same line and all seems to be working fine.
    Cheers, yuniar!

    Posted 16 years ago #

RSS feed for this topic

Reply