I want to write using fwrite and upload the file without using File Field or Browse option. Actually I want to upload static file after writing it useing fwrite and as soon as it gets uploaded it should be savedt o the database.I want code for this:
1)
Write a file
2)
Upload the same file(static one)
3)
Save it to Database