By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,905 Members | 902 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,905 IT Pros & Developers. It's quick & easy.

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

P: n/a
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="myapplet.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

Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
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.

Jul 17 '05 #2

P: n/a
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

Jul 17 '05 #3

P: n/a
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.

Jul 17 '05 #4

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

Jul 17 '05 #5

P: n/a
It's seconds.

Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.