有没有办法从Mac OSX上的命令行访问我当前版本的Chrome浏览器?
例如,我想输入类似google-chrome --version
的内容来接收我的版本号作为输出。
答案 0 :(得分:1)
<?php
// init
include_once 'db.php'; // connects to db
// gets each keyword
$resultVariable = json_decode($_REQUEST[interests]); // get values to search (orginial: json file)
// sets query
$formatedVariable = "SELECT id,name FROM users WHERE city = '$_REQUEST[city]' AND interests LIKE '%".implode("%' OR interests LIKE '%", $resultVariable)."%'"; // create a search condition for every keyword
$sql = $conn->prepare($formatedVariable); // search from the query
$sql->execute(); // execute query
$array = $sql->fetchAll(); // response
print_r(json_encode($array));
$conn = null;
?>
应该有效