摘要:
<script language="JavaScript"> if (window != top) top.location.href = location.href; </script> 阅读全文
摘要:
function fileShow($dir){ $handle = opendir($dir); // 打开目录句柄 while ($file = readdir($handle)) { // 返回目录句柄中的条目 if ($file !== '..' && $file !== '.') { $f 阅读全文
摘要:
$phar = new PharData('leixuesong.tar.gz'); //解压后的路径 数组或者字符串指定解压解压的文件,null为全部解压 是否覆盖 $phar->extractTo('./tmp', null, true); 阅读全文
摘要:
public function index() { $str = '/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB 阅读全文
摘要:
//gps转wgs $a=12012.452136 public static function gps2Wgs($a) { return floor($a / 100) + fmod($a, 100) / 60; } 阅读全文
摘要:
$url='www.test.com?name=a&age=1'; $res=parse_url($url); parse_str($res['query'],$res);var_dump($res); { "status": 200, "message": "操作成功", "result": { 阅读全文
摘要:
public function index() { if(Request::isPost()){ if(password_verify('123456','$2y$10$1/UPLaqLTJ3RNjTCfgb6.ewfbRDSyINdNOan8uI/WOuMymbY5cNbm')){ return 阅读全文
摘要:
git fetch --all && git reset --hard origin/master && git pull强制推送到远程仓库,且覆盖远程代码库 git push -f --set-upstream origin master:master 阅读全文