碎片

  • PHPMailer: 550 Bad HELO - Host impersonating domain name ### 懶人包 在原本的 ```php $mail->Host = $smtpHost; ``` 下面再加入一行 ```php $mail->Hostname = $smtpHost; ``` ### 事源及解決方法...

  • https://developer.mozilla.org/en-US/docs/Web/HTML/Link_types/noopener https://mathiasbynens.github.io/rel-noopener/ https://pjchender.blogspot.com/2020/05/relnoreferrer-targetblank.html

  • https://stackoverflow.com/questions/12928360/how-can-i-disable-mod-security-in-htaccess-file `.htaccess` 最底加入 ```bash SecFilterEngine Off SecFilterScanPOST Off ```

  • JS file ```js function getPage(action,rel_id,detail) { const js_message_show = document.getElementById("js_message"); var person_id = getCookie('person_id'); const data = { os:getOS(...

  • https://rapidapi.com eg: weatherapi https://rapidapi.com/weatherapi/api/weatherapi-com/

  • 經navigator.userAgent 進行match updated. ```js function getBowser() { if ((navigator.userAgent.indexOf("Opera") || navigator.userAgent.indexOf('OPR')) != -1) { alert('Opera'); } else if (navigato...

  • https://delftstack.com/zh-tw/howto/javascript/get-ip-address-javascript/

  • https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch

  • https://www.stackhawk.com/blog/laravel-cors/#which-version-of-laravel-do-you-use

  • https://www.scratchcode.io/best-ways-to-define-global-variable-in-laravel/

  • ```html Toggle Contents... ```

  • ```html onclick="return confirm('Are you sure ?'); ``` demo ```html 清空內容 ```

  • https://stackoverflow.com/questions/21066428/php-foreach-every-100-times-sleep-then-continue

  • ```php // Remove unwanted HTML comments function remove_html_comments($content = '') { return preg_replace('//', '', $content); } ```

  • mediawiki Zh conversion https://taichunmin.idv.tw/blog/2014-09-25-mediawiki-zh-conversion.html OPENCC https://blog.vvtitan.com/2019/05/php%E5%AE%89%E8%A3%9Dopencc4php%E6%93%B4%E5%B1%95%E8%AE%93%E7%...

  • Side panel slideout with AlpineJS and TailwindCSS https://codepen.io/KevinBatdorf/pen/ZEQJZMe

  • Table of Content with tailwindcss + scrollspyJS ```html Toc Test .content_box{ min-height:280px; } What is HTML balabla bala bala What i...

  • ```html order deny,allow deny from all # whitelist XXXX's IP address allow from 123.123.123.123 ```

  • ```php $a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow"); $a2=array("e"=>"red","f"=>"green","g"=>"blue"); $result=array_diff($a1,$a2); print_r($result); //return "d"=>"yellow" ```

  • ```shell composer create-project laravel/laravel sme01 cd sme01 valet link ``` install Laravel successfully **git submit** ```shell npm install -D tailwindcss postcss autoprefixer npm install -D...