Hi Balaji,

>       I am trying to upload a file from remote machine.
>       Could you please help out me.

Two things:

> upload.html
> -------------
> <form action='upload.php' method='post' enctype='multipart/form-data'>

This also needs to have a maximum file size specified:


> upload.php
> ----------------

In this script, you'll want to copy $file to "/path/to/copy/to/filename".
This doesn't seem to be what you're doing in the script you sent us,
you overwrote $file with a new variable, $path - thus, losing the name
of the temp file PHP copied the uploaded data into.

Take care that you use the appropriate security measures to protect
yourself against exploits here.


Jason Murray
Web Developer, Melbourne IT
"Work now, freak later!"

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to