I want to insert files into mysql from php function.
The files that need to be uploaded are already present on the server, so I don\'t want to use the upload form.
$_FILES is solely for handling files uploaded to the script by the client. You should be able to insert the file contents using file_get_contents() or fopen()/fread() without further ado.