Fw: [PHP-DB] Quick question

From: Date: Fri, 09 Dec 2005 12:26:09 +0000
Subject: Fw: [PHP-DB] Quick question
Groups: php.db 
Request: Send a blank email to php-db+get-40828@lists.php.net to get a copy of this message
---oOo--- Allowing users to execute CGI scripts in any directory should only be considered if: ... a.. You have no users, and nobody ever visits your server. ... Extracted Quote: Security Tips - Apache HTTP Server ---oOo--- ------oOo---------------oOo------ Julien Bonastre [The_RadiX] The-Spectrum Network CEO ABN: 64 235 749 494 julien@the-spectrum.org www.the-spectrum.org ------oOo---------------oOo------ ----- Original Message ----- From: "Julien Bonastre" <julien@the-spectrum.org> To: <amol@hatwar.org> Sent: Friday, December 09, 2005 10:25 PM Subject: Re: [PHP-DB] Quick question
Got a quick fix, If you are planning on doing this upload more often than once a decade I suggest: a) move closer to your host you are uploading to, I mean close enough to run a fibre optic strand to it. b) reconsider your data storage and how much or what you need to be on the host c) in parallel with response (a), move the host to where you are, host from business front or home whichever applies, find suitable ISP that will accomodate these needs, that way minimal transfer resources are required over a LAN.. ---oOo--- Allowing users to execute CGI scripts in any directory should only be considered if: ... a.. You have no users, and nobody ever visits your server. ... Extracted Quote: Security Tips - Apache HTTP Server ---oOo--- ------oOo---------------oOo------ Julien Bonastre [The_RadiX] The-Spectrum Network CEO ABN: 64 235 749 494 julien@the-spectrum.org www.the-spectrum.org ------oOo---------------oOo------ ----- Original Message ----- From: "Amol Hatwar" <amol@hatwar.org> To: "Chris Payne" <chris@artistwd.com>; <php-db@lists.php.net> Sent: Friday, December 09, 2005 9:27 AM Subject: Re: [PHP-DB] Quick question
** Comments Inline ** *chop*
Basically I need to be able to upload 1gig files via FTP which is based on
Whoa! Did I read ONE GIG? By FTP I understand *the* File Transfer Protocol. How is it based on PHP?
PHP, when the file uploads successfully it then adds the info to a mysql database so that the administration program can control the programs uploaded, but I can't upload any large files only small ones.
On FTP? Or from a PHP generated Web page?
Any help would REALLY be appreciated as this is quite urgent and I've searched the net for examples but couldn't find what I needed.
For this answer I am assuming that you want to stick One Gig-o-files using a PHP script. Let me know if this isn't the case. There are two things to consider here: 1. The PHP script time-out (usually 30 secs) and the max-upload (2 MB) 2. The Apache Process recycle-time (look for settings in httpd.conf) You can try playing around with these values. However, it is not good for your scripts,Apache and PHP to stay in memory for such a long time (till your huge file gets uploaded). They simply aren't designed to do that. They are designed to just serve the requested page and shut up. I'd suggest you use some different mechanism like SCP (if you don't want to touch FTP) or rsync over SSH if you'd like the thing run unattended. Regards, ah -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.db (#40828) next »