Problm uploading files (Trough ftp)

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

User avatar
releasedj
Forum Contributor
Posts: 105
Joined: Tue Jun 17, 2003 6:35 am

Post by releasedj »

User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Post by mikusan »

.htaccess
php_value upload_max_filesize 8000000
User avatar
releasedj
Forum Contributor
Posts: 105
Joined: Tue Jun 17, 2003 6:35 am

Post by releasedj »

You may be able to change it using a .htaccess file, if so, in you .htaccess file put:

Code: Select all

php_value upload_max_filesize "20M"
http://www.php.net/function.ini-set
User avatar
releasedj
Forum Contributor
Posts: 105
Joined: Tue Jun 17, 2003 6:35 am

Post by releasedj »

Oh, sorry. Did it work?
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Post by mikusan »

LOL using a modem waiting for 5 megs to clear out, script hasn't timed out yet... while i wait, do you know some javascript that determines how much of it you have uploaded?
User avatar
releasedj
Forum Contributor
Posts: 105
Joined: Tue Jun 17, 2003 6:35 am

Post by releasedj »

That isn't possible.

Javascript can't even access the cntents of the file box for security reasons.

There was talk a couple of weeks back of someone building functionality into PHP to be able to track the amount a file has uploaded, but it's a way of being put into the distro.
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Post by mikusan »

Could you point me to that article?
User avatar
releasedj
Forum Contributor
Posts: 105
Joined: Tue Jun 17, 2003 6:35 am

Post by releasedj »

Here's a link of the post to the php internals list:

http://www.zend.com/lists/php-dev/200306/msg00075.html
Post Reply