Welcome Guest, Not a member yet? Register   Sign In
Secure file downloads from "logged in" members area
#11

[eluser]jay2003[/eluser]
is there a way to determine the "memory_limit" to see whether I need to use the alternative method mentioned (thanks zoopstud)?

Thanks

Jason
#12

[eluser]zoopstud[/eluser]
In the php.ini file :

Code:
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 128M
#13

[eluser]jay2003[/eluser]
Thanks - i'm on shared hosting so will ask my host.

Appreciate all your help guys.

Jason
#14

[eluser]Stefan Hueg[/eluser]
Code:
ini_get('memory_limit');

But it's a shorthand-version (like 16M), not the integer value

else
Code:
phpinfo();
#15

[eluser]jay2003[/eluser]
So I did

Code:
ini_get('memory_limit');

and got 128m so does that mean im ok up to files 100mb or so before needing the other script?

Is this likely to cause performance issues on the server?

Sorry for all the questions i am new to PHP (used to code ASP a few years back).

Cheers

Jason
#16

[eluser]Stefan Hueg[/eluser]
128M is just a approximate value, as there is other overhead such of your PHP files itsef, the framework and classes etc.

It will have a performance impact.




Theme © iAndrew 2016 - Forum software by © MyBB