What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-10 01:04:18
user1263019 how to upload a file using php curl
<?php // Helper function courtesy of https://github.com/guzzle/guzzle/blob/3a0787217e6c0246b457e637ddd33332efea1d2a/src/Guzzle/Http/Message/PostFile.php#L90 function getCurlValue($filename, $contentType, $postname) { // PHP 5.5 introduced a CurlF... Add solution -
PHP 2021-11-03 20:13:16
php upload file via curl
if (function_exists('curl_file_create')) { // php 5.5+ $cFile = curl_file_create($file_name_with_full_path); } else { // $cFile = '@' . realpath($file_name_with_full_path); } $post = array('extra_info' => '123456','file_contents'=> $cFile); $ch... Add solution -
Other 2021-08-29 18:50:02
curl upload file
if (function_exists('curl_file_create')) { // php 5.5+ $cFile = curl_file_create($file_name_with_full_path); } else { // $cFile = '@' . realpath($file_name_with_full_path); } $post = array('extra_info' => '123456','file_contents'=> $cFile); $ch... Add solution
Best helpers
Ranking is empty