Hello...
I'm looking to create a page that will allow me to browse my hard-drive and upload an image to a certain directory on my web server. However, my PHP doesn't have the FTP_* functions enabled, and I don't control the server. Is there any work-around this?
Thanks for your help in advance! Dave
Hi David, The answer to your problem is pretty simple. Use copy() function (available under the section file system functions in PHP Help Manual) to copy the file to the specified location in the server.You will have to givee write permissions to that directory in the server. Hope this solves you problem!!!
Cheers!!
use file upload functions
thanks! I'll look into it 🙂
use this code to upload
$fp=fopen("help.html","w+");
if (!$fp) { echo "<p>Unable to open remote file for writing.\n"; exit; } else { fputs($fp,"$res\n");
echo "<br>$j.File is created :-<b>help$j.html</b>"; fclose($fp); }
well is ur problem solved
Thanks for your reply... I have already solved this problem though...
Thank you anyway 🙂