如何在CLI(Mac OSX)上查找我当前版本的Chrome?

时间:2017-02-14 20:37:16

标签: google-chrome command-line-interface

有没有办法从Mac OSX上的命令行访问我当前版本的Chrome浏览器?

例如,我想输入类似google-chrome --version的内容来接收我的版本号作为输出。

1 个答案:

答案 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; ?> 应该有效