PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old September 3rd, 2002, 09:04 AM
Ninja Ninja is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 Ninja User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Upload file size problem

Hi, can anybody help me?
I have this simple code to upload file. But I can upload only file about 6 mb. How to upload greater files? If I uploaded greater file, browser wrote that page cannot be displayed (as the site doesn't exist).
I tried modify php.ini -> upload_max_filesize = 20M (standard was 2M I mean), but nothing happens (
Thanks for all replyes, Ninja

code:

select_file.php

<form action="upload.php" method="post" enctype="multipart/form-data">
Send file: <input type="File" name="soubor"><br>
<input type="Submit"><br>
</form>

upload.php

<?
if (copy($soubor, "uploaded_file.ext")) {
echo "Operation succesfull";
}
else {
echo "Operation failed";
}
unlink($soubor);
?>

Reply With Quote
  #2  
Old September 3rd, 2002, 09:59 AM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: Upload file size problem

it could be that your script is running over its max execution time. try changing that in your php.ini file and see what happens

Reply With Quote
  #3  
Old September 4th, 2002, 01:45 AM
zombie zombie is offline
Codewalkers Intermediate (1500 - 1999 posts)
 
Join Date: Apr 2007
Location: serbia
Posts: 1,876 zombie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
RE: Upload file size problem

it can also be that memory maximum is reached... i think it is also default to 8mb

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Upload file size problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway