uploading in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
karteek
Forum Newbie
Posts: 2
Joined: Thu Jun 26, 2003 9:38 am

uploading in PHP

Post by karteek »

Hi,
I am not able to upload files greater than 500KB.What should I do?
I changed the necessay things in php.inc file.But I did not get it.

I am getting the following error:-

ERROR
The requested URL could not be retrieved

--------------------------------------------------------------------------------

While trying to retrieve the URL: http://172.16.2.25/~karteek/upload.php

The following error was encountered:

Write Error
The system returned:

(32) Broken pipeAn error condition occurred while writing to the network. Please retry your request.

Your cache administrator is root.


What should I do?I need to upload files of 5 MB in size?
User avatar
daven
Forum Contributor
Posts: 332
Joined: Tue Dec 17, 2002 1:29 pm
Location: Gaithersburg, MD
Contact:

Post by daven »

This sounds more like a routing/apache problem than an upload problem. It seems like there is broken access to your files. Can you get to anything else in that directory?

Just to rehash uplaoding stuff:
Make sure you have upload_max_filesize & post_max_size set to something appropriate (ex: 6000000). Also ensure that your form is like so:
<form name="name" action="action" method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="$value">
Post Reply