fix of curl and import for php 5.5

http://stackoverflow.com/questions/17032990/can-anyone-give-me-an-example-for-phps-curlfile-class