File "sauvegarde.php"

Full Path: /home/analogde/www/RaspBerry/Dev/Raspberry/sauvegarde.php
File size: 336 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

	$val = $_GET["status"];
	
	$fp = fopen ("status.txt", "r+");
	ftruncate($fp,0);
	fputs ($fp, $val);
	fclose ($fp);
	echo "1";

// Passing value from PHP script to Python script	
//	 $tmp = exec("python testscriptphp.py .$item");
//    echo $tmp;

//file = open('newfile.txt', 'r')
//print file.readline():
//file.close();

?>