[eluser]marcogmonteiro[/eluser]
Hi there,
here's my problem:
I'm building something like a filemanager. But the Filemaganer is in one place and the files will be stored in another.
I've been reading the documentation on how to accomplish this. And I'm using the FTP Class...
List files and folders from external ftp = Done
my problem is on the uploading part.
The documentation says:
Code:
$this->ftp->upload('/local/path/to/myfile.html', '/public_html/myfile.html', 'ascii', 0775);
but how can I get the local path since php is a server side language?
My 1st thought was to try the $_FILES array and check for that path but no luck. That only gives me the tmp path and if I try to upload that it returns an error:
An Error Was Encountered
Unable to upload the specified file. Please check your path.
is there a solution for this?
thanks in advance...