php file uploader howto # apt-get install apache2 # apt-get install php5 # ln -s /hostdirectory /var/www # chmod 777 /hostdirectory uploader.html host directory:
Please choose a file:
Create the uploader.php file in the host directory: The line $target = "./" sets the upload location (in this case where uploader.php resides). Edit php.ini to increase upload file size: # vi /etc/php5/apache2/php.ini upload_max_filesize = 5G # The maximum uploaded file size. memory_limit = -1 # To have no memory limit, set to -1. post_max_size = 10G # Set to a value larger than upload_max_filesize. # /usr/sbin/apache2ctl restart