471,624 Members | 1,948 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,624 software developers and data experts.

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:

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


Jul 17 '05 #1
5 2230
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
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?


Jul 17 '05 #3
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
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
It's seconds.

Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Bhavin | last post: by
7 posts views Thread by Tim Slattery | last post: by
1 post views Thread by XIAOLAOHU | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.