File "send.php"

Full path: /www/ansys/qgis/000_nasu/send.php
File size: 506 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Back

<?php
$url = 'http://penta-02.ptgw.net/ansys/qgis/000_nasu/output.php';
//$data =array();
$data = file_get_contents('20170120135603.jpg');

$data = http_build_query($data, "", "&");

$header = array(
"Content-Type: application/x-www-form-urlencoded",
"Content-Length: ".strlen($data)
);

$options =array(
   'http' =>array(
      'method' => 'POST',
      'header' => implode("\r\n", $header),
      'content' => $data
   )
);

$contents =file_get_contents($url, false, stream_context_create($options));
?>

PHP File Manager