026 月 2020 by Bryce No Comments 讓Laravel識別Proxy Pass Reverse取得正確的URL Laravel 這陣子執行一個專案,其中VM使用Docker並架設多個Container,外層VM本體使用Apache(80 Port)並使用VirtualHost的技術,然後對針每個Container的連線Port作Proxy Pass。 (閱讀全文...) Read More
0511 月 2019 by Bryce No Comments [PHP] Google Automl Tables API 取得dataset GOOGLE, PHP 最近gooogle api在取得response時,都會回傳一大包object,有時連手冊都沒有寫怎麼接這個object。 (閱讀全文...) Read More
253 月 2019 by Bryce No Comments Ubuntu 16.04 + php 7.3 修正 /libraries/plugin_interface.lib.php#532 PHP 今天在phpmyadmin上發生一件事,是匯入檔案時一直發生提醒 Warning in ./libraries/plugin_interface.lib.php#532 count(): Parameter must be an array or an obj... Read More
174 月 2018 by Bryce No Comments Laravel 網址無法正常顯示 Laravel 在ubuntu 16.04 建置好一個laravel專案,除了首頁可正常運作外,其他皆失效? (閱讀全文...) Read More
093 月 2018 by Bryce No Comments Ubuntu 16.04 LTS 搭建Apache, MariaDB PHP7 (LAMP)、phpMyAdmin vps Ubuntu 16.04 LTS Xenial Xerus官方自帶PHP7,所以我們就不需要再藉助第三方PPA來安裝PHP7了。這篇介紹Ubuntu 16.04 LTS如何安裝Apache, MariaDB和PHP7及phpMyAdmin。 (閱讀全文...) Read More
153 月 2017 by Bryce No Comments 如何理解Laravel 的IoC容器 Paper 學習laravel快一年了,到現在才去研究laravel 的核心'容器IOC' 這些概念。 寫項目的時候有大概看看關於IOC 文章, 但是沒有深入理解,只是有個概念歐趕著寫代碼,雖然code也寫的很菜… 這幾天花了點時間研究了一下laravel 的核心'服務容... Read More
239 月 2016 by Bryce No Comments Laravel 5 如何查看的所有資料庫請求 Laravel Laravel 有一套特別靈活的資料庫操作方案,這邊介紹一個簡單的方法來獲取到所有的SQL 語句 (閱讀全文...) Read More
147 月 2016 by Bryce No Comments static變數、public變數、private變數、protected變數的使用方法-PHP PHP PHP的物件有4種定義變數的可用範圍 這些定義方法分別是 static 、 public 、 private 、 protected 而使用範圍由大到小剛好也是 static(靜態變數) > public(公有變數) > protected >... Read More
093 月 2016 by Bryce No Comments 避免 SQL Injection MySQL 什麼是SQL注入 SQL注入攻擊(SQL Injection),簡稱注入攻擊,是Web開發中最常見的一種安全漏洞。可以用它來從資料庫獲取敏感資訊,或者利用資料庫的特性執行添加用戶,導出文件等一系列惡意操作,甚至有可能獲取資料庫乃至系統用戶最高權限。 而造成SQ... Read More