How to upload file and data using curl in php

How to upload file and data using curl in php