[eluser]Unknown[/eluser]
So im running on Linux Enterprise using PHP4. My issue is that i cannot upload files via the ftp built-in library. For some reason i keep getting:
An Error Was Encountered
Unable to locate the source file. Please check your path.
Heres my code:
Code:
$image = $_FILES['image']['name'];
$image_local = $_FILES['image']['tmp_name'];
//debug
echo "Local path to img: " . $image_local . "/" . $image ."<br />";
$this->ftp->connect($config);
$this->ftp->upload($image_local . '/' . $image, '/public_html/' . $image, 'ascii', 0775);
$this->ftp->close();
echo "Successfully uploaded everything! Good job. ;)";
echo anchor('acontrol', 'Upload More->');
the debug path i created pumps out the path and filename just fine, but still wont upload it.
Any ideas?
Thanks!