Je n'ai jamais fait de boucle avant donc j'ai besoin d'aide.cURL: de PHP à BASH
php:
<?php
$ch = curl_init();
$data = array(
'uptype'=>'file',
'file'=>'@'.$argv[1],
);
curl_setopt($ch, CURLOPT_URL, 'http://my_site_ex/up.php');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_exec($ch);
curl_close($ch);
?>
comment faire le même script BASH?
merci ça marche^_^ – flienteen