any file size limit in <PARAM name="***" value="***"> ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lvcha.gouqizi

    any file size limit in <PARAM name="***" value="***"> ?

    I embed an applet in my php script which has a parameter providing an
    input file for the jar. Does this file has size limit?

    The code is as follows:
    <APPLET ARCHIVE="myappl et.jar" WIDTH=372 HEIGHT=360 VSPACE=0 HSPACE=0
    ALIGN=middle>

    <?php echo "<PARAM NAME=\"data\" VALUE=\"myfile. \">";?>

    when "myfile" is beyond 15M, my applet cannot load sucessfully, but
    while this file is limited like 5M or 7M, it works well.

    Does anybody know is the reason caused by php script limit, applet
    mechanism, or by different browser?

    Thanks.


    -lvcha

  • ZeldorBlat

    #2
    Re: any file size limit in &lt;PARAM name=&quot;***& quot; value=&quot;*** &quot;&gt; ?

    Check out the memory_limit directive in php.ini, which is the maximum
    amount of memory a script may consume during execution. I think it
    defaults to 8 MB.

    Comment

    • lvcha.gouqizi

      #3
      Re: any file size limit in &lt;PARAM name=&quot;***& quot; value=&quot;*** &quot;&gt; ?

      yes, I checked the php.ini, it's 8M. But it is strange that when I load
      a 10M file, it still works. Doesn't the php script load file into
      memory and then can work? Is the file located on the client when applet
      is running?

      Thanks!
      lvcha

      Comment

      • ZeldorBlat

        #4
        Re: any file size limit in &lt;PARAM name=&quot;***& quot; value=&quot;*** &quot;&gt; ?

        Now that I think about it, I fairly sure the applet gets downloaded to
        the client and executed there. In php.ini, look at max_execution_t ime,
        which is the maximum amount of time a script will be allowed to execute
        (defaults to 60 seconds). It could be that it times out because of the
        time it takes to download the file.

        Of course I'm just guessing here, though.

        Comment

        • lvcha.gouqizi

          #5
          Re: any file size limit in &lt;PARAM name=&quot;***& quot; value=&quot;*** &quot;&gt; ?

          Thanks ZeldorBlat. My max_execution_t ime is set to 30, but I'm not sure
          it's for minutes or seconds.

          Comment

          • ZeldorBlat

            #6
            Re: any file size limit in &lt;PARAM name=&quot;***& quot; value=&quot;*** &quot;&gt; ?

            It's seconds.

            Comment

            Working...