Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 01-12-2009, 12:47 PM php remote upload
Junior Talker

Posts: 2
Trades: 0
I'm receiving error Out of memory (allocated 14417920) (tried to allocate 12058945 bytes)
I setup the memory and limit but nothing is changed.

I'm uploading or transferring files remotely via my server,
How can I set the maximum size of remote uploads?

Last edited by firaset; 01-12-2009 at 01:57 PM..
firaset is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-12-2009, 01:32 PM Re: php remote upload
Andy Pugh's Avatar
Extreme Talker

Posts: 203
Name: Andy
Location: N.Ireland
Trades: 0
Just include the following condition in your query making sure to define it.

PHP Code:
if ($uploaded_size 1000000

echo 
"Error, this file is too big"
__________________

Please login or register to view this content. Registration is FREE
Andy Pugh is offline
Reply With Quote
View Public Profile
 
Old 01-14-2009, 02:23 AM Re: php remote upload
anderswc's Avatar
Super Talker

Posts: 132
Name: Will Anderson
Location: Terre Haute, IN
Trades: 0
You can also try increasing the PHP memory (if you have the rights to do so).

php.ini:

memory_limit = 12M

php:

ini_set('memory_limit', '12M');

.htaccess

php_value memory_limit 12M

replace the value with whatever you actually want the memory limit to be. Give it a try and if it doesn't work, you can't change the php memory. You'll have to just limit the file upload size.
__________________
Will Anderson

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
anderswc is offline
Reply With Quote
View Public Profile Visit anderswc's homepage!
 
Reply     « Reply to php remote upload
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14568 seconds with 12 queries