any file size limit in ?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

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:

<?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?



Re: any file size limit in ?

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.

Re: any file size limit in ?

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?


Re: any file size limit in ?

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_time,
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.

Re: any file size limit in ?

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

Re: any file size limit in ?

It's seconds.

Site Timeline