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 problem


  1. JamieSkella
    Member

    The files via the installed form seem to upload just fine. However, all files are prefixed with this:

    <b>Warning</b>: set_time_limit(): Cannot set time limit in safe mode in <b>/home/wdpromotftp/www/machform/download.php</b> on line <b>132</b>

    So if a text document is uploaded, you can still open it, but that's at the start of the document. Unfortunately, when a picture or other file is uploaded, it's corrupted. Opening said picture file in notepad also reveals that prefixing all of the random characters that would make up a picture.

    The form itself is here: http://wdpromotions.com.au/competition-entry

    Any assistance would be greatly appreciated.

    Posted 17 years ago #
  2. yuniar

    It looks like your PHP is running under safe mode, thus some function is disabled.
    Try this, edit your download.php file, search around line 132 for this code:

    set_time_limit(0);

    remove the above code.

    Let me know how it goes.


    MachForm Founder

    Posted 17 years ago #
  3. JamieSkella
    Member

    Hi Yuniar,

    Just letting you know that this appears to have worked a treat! No more problems here.

    Thank you so much for your prompt response and resolution.

    Posted 17 years ago #

RSS feed for this topic

Reply