HomeMediacenter/php/movie.php

25 lines
516 B
PHP
Raw Normal View History

2020-03-31 09:44:52 +00:00
<?php
2020-03-31 17:22:08 +00:00
$servername = "192.168.0.177";
$username = "myuser";
$password = "1qayxsw2";
// Create connection
$conn = new mysqli($servername, $username, $password);
// Check connection
if (isset($_POST['action'])) {
$action = $_POST['action'];
switch ($action) {
case "getMovies":
echo('{"data":[{"url":"./vid.mp4"}]}');
break;
}
} else {
if ($conn->connect_error) {
echo('{"data":"error"}');
// die("Connection failed: " . $conn->connect_error);
}
2020-03-31 09:44:52 +00:00
}