Slighlty off topic - Sorry. FM file manager PHP and uploads

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
sminc
-


Joined: 20 Aug 2003
Posts: 8

PostPosted: Thu Oct 16, 2003 10:43 am    Post subject: Slighlty off topic - Sorry. FM file manager PHP and uploads Reply with quote

Hi,

I have installed PHP 4.3.2 which works fine
I have installed SFM (PHP based) simple file manager. http://sourceforge.net/projects/onedotoh

The file manager works fine with downloads, deletes etc but I have found the following two problems.

1) The create directory function doesnt work.
2) Uploads of any files bigger than 1Mbyte fail with 'the file is too big' errors

Both of these problems are probably due to bugs in FM but I just wanted to check if anyone knew of issues with FM and Abyss.

1) Does FM need something not implemented by Abyss in order for the directory create to work.

2) Is there some paramater somewhere in Abyss that limits uploads to roughly 1Meg. I have played with FM and set it to allow file sizes bigger but even when I edit the PHP and delete the size check code the upload still fails. The only difference is with the code enabled I get an error and no upload. With the size check code removed the upload just fails with no error.



As I said I doubt very much if these are issues with Abyss but help from anyone else that has run into similar problems would be great.
Back to top View user's profile Send private message
crazymazey
-


Joined: 22 Sep 2003
Posts: 35

PostPosted: Thu Oct 16, 2003 4:27 pm    Post subject: I had the same problem Reply with quote

i had the same problem using a php file manager script

i could'nt get an answer of anyone
so i changed to using an ftp server

i use GuildFTPd

its easy to config and you can set the limits asigned to a folder and everything else you need.

i got a php script of someone in these forums that you can see at this address.
http://crazymazey.kicks-ass.org/fileupload

it dosent upload over about 1mb try it and see if you get the same error as me
also you can download guildftpd.exe from there as i cant remember were i got it from

if you have any trouble setting it up or would like the upload script visit my forums at crazymazeys link below ..as it is not a abyss product.
_________________
Back to top View user's profile Send private message Send e-mail Visit poster's website
sminc
-


Joined: 20 Aug 2003
Posts: 8

PostPosted: Thu Oct 16, 2003 5:33 pm    Post subject: Reply with quote

Thanks crazy.

I downloaded and installed the file manager from mtnpeak.net

It works great except it also fails on uploads bigger than 1Meg so thats two completely independent PHP scripts for uloading both failing with the same problem.

So is this a PHP problem or an Abyss problem ?

Anyone have any thoughts.

PS. I can use an FTP server but I really dont want to because of the number of ports I have to open in my firewall.
Back to top View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Thu Oct 16, 2003 5:42 pm    Post subject: Reply with quote

Check your php.ini file and look for this:
Code:
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = C:\PHP\uploadtemp  ; temporary directory for HTTP uploaded files (will use system default if not specified)

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

Make sure file uploads are on and set the maximum size.
Back to top View user's profile Send private message Visit poster's website
sminc
-


Joined: 20 Aug 2003
Posts: 8

PostPosted: Fri Oct 17, 2003 8:27 am    Post subject: Reply with quote

awesome.

I increased the limit n php.ini and it got me most of the way there.
I also increased some of the timeouts and other parameters which seemed to help a lot too.

Many thanks
Back to top View user's profile Send private message
crazymazey
-


Joined: 22 Sep 2003
Posts: 35

PostPosted: Fri Oct 17, 2003 12:19 pm    Post subject: what other settings did you change Reply with quote

i had already change the settings shown above which other settings di you change in the php.ini file
_________________
Back to top View user's profile Send private message Send e-mail Visit poster's website
sminc
-


Joined: 20 Aug 2003
Posts: 8

PostPosted: Fri Oct 17, 2003 6:09 pm    Post subject: Reply with quote

I made a few changes to the settings in PHP.INI and within Abyss. I'm not sure which/if any made the difference but I doubt they are causing any harm.

The changes I made are as follows:

PHP.INI

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 300 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 80M ; Maximum amount of memory a script may consume (8MB)

; Maximum size of POST data that PHP will accept.
post_max_size = 800M

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Maximum allowed size for uploaded files.
upload_max_filesize = 2000M

; Default timeout for socket based streams (seconds)
default_socket_timeout = 60


In Abyss:

In Server Config/Advanced/Server parameters I changed the Timeout value from 10 to 60 seconds.

As I say I'm not sure which changes were critical as I havent played much but with the above settings I have successfully uploaded a 200Meg file from fone PC to Abyss via a LAN. I will be testing more 'true to life' stuff via my ADSL link soon.
Back to top View user's profile Send private message
sminc
-


Joined: 20 Aug 2003
Posts: 8

PostPosted: Fri Oct 17, 2003 11:03 pm    Post subject: Reply with quote

I have just found this java based web file manager

http://www.geocities.com/RainForest/Canopy/3452/fmweb.html

only played with it a little so far but it looks very nice.
as I already have java installed for a streaming audio server I will be switching over to fmweb for my file manager stuff.

have a look and see what you think.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group