Hi,
I programming python application for Symbian OS. And i have question how upload the for example screenshot on the phone to Chevereto
Example:
Like this?
or how?
THX
I have PHP script that works here is it:
<?php
// read the incoming image data handed over from Python S60 phone
$data = file_get_contents('php://input');
// create a filename based om time and a random number
$nick = strtr($_GET['nick'], '/\\.:\0', '_____');
//$file = strtr($_GET['file'], '/\\.:\0', '_____');
$timestamp = time();
$filename = $nick.'_'.$timestamp.'.jpg';
// $filename = $_FILES["file"]["name"];
// write the file to the server into the directory named beijing
$filepathname = "images/$filename";
$handle = fopen($filepathname, 'wb');
fputs($handle, $data, strlen($data));
fclose($handle);
// return the filename
echo " ".$filename;
?>
How this using to upload via Chevereto
Thank you
I programming python application for Symbian OS. And i have question how upload the for example screenshot on the phone to Chevereto
Example:
Like this?
Code:
web.com/engine?some data
THX
I have PHP script that works here is it:
<?php
// read the incoming image data handed over from Python S60 phone
$data = file_get_contents('php://input');
// create a filename based om time and a random number
$nick = strtr($_GET['nick'], '/\\.:\0', '_____');
//$file = strtr($_GET['file'], '/\\.:\0', '_____');
$timestamp = time();
$filename = $nick.'_'.$timestamp.'.jpg';
// $filename = $_FILES["file"]["name"];
// write the file to the server into the directory named beijing
$filepathname = "images/$filename";
$handle = fopen($filepathname, 'wb');
fputs($handle, $data, strlen($data));
fclose($handle);
// return the filename
echo " ".$filename;
?>
How this using to upload via Chevereto
Thank you