This commit is contained in:
Nixo
2014-08-08 16:13:31 +02:00
parent e4c41cdf3f
commit 93463ecd38
9 changed files with 200 additions and 66 deletions

21
save.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
if(isset($_POST['thisUrl']))
{
$string = $_POST['thisUrl'];
$file = file_get_contents('videos.json');
$data = json_decode($file);
unset($file);//prevent memory leaks for large json.
//insert data here
if($data[0] == $string)
{