網頁

2016年11月24日 星期四

如何確認目前使用的php.ini位置

年紀大了真的要做記錄,mac上的php更新太多,有時都搞不清楚是用哪個,最快的方式是直接在php檔上寫入,再直接看路徑。

<?php $inipath = php_ini_loaded_file();
echo $inipath;

其實主要是想改上傳檔案大小,這邊再記錄一下更動php上傳檔案的大小

參考網址:
How to know which php.ini is used?
更動php上傳檔案的大小

2016年6月30日 星期四

ASP.NET HTTP error 500.21

新接個案子,來試試.net。拿到案子原本的程式後,好不容易弄出個deploy檔,匯入後一直回應"HTTP 錯誤 500.21 - Internal Server Error ",看不出來哪有問題,該裝都裝了,看了2012-08-06 置頂文章 【ASP.NET】HTTP 錯誤 500.21 - Internal Server Error 錯誤碼0x8007000d這篇後,使用wpilauncher.exe重裝"iis:.NET擴充性4.5"及"IIS: ASP.NET 4.5",重開機後就ok了

這邊記錄一下 =__=


參考網址:
2012-08-06 置頂文章 【ASP.NET】HTTP 錯誤 500.21 - Internal Server Error 錯誤碼0x8007000d

2016年5月24日 星期二

修正laravel中Prepared statement needs to be re-prepared

最近一個案子將對方的整個DB匯出,重新匯入自己的DB後,啟動網站一直出現底下訊息
General error: 1615 Prepared statement needs to be re-prepared

看起來跟msyql本身的設定有關,在.my.cnf下加入底下設定,重新啟動即可

table_open_cache_instances=2 #http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_table_open_cache_instances
table_open_cache=16384       #http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_table_open_cache
table_definition_cache=16384 #http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_table_definition_cache
tmp_table_size=64M           #http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_tmp_table_size
join_buffer_size=512k        #http://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_join_buffer_size

參考網址:
http://bugs.mysql.com/bug.php?id=42041
The Abstracts of My Brain
MySQL優化(mysql ERROR 1040 (00000): Too many connections)

2016年5月5日 星期四

iOS APP要求送審要能支援IPv6

發現iOS要求送審要能支援IPv6 @@

https://developer.apple.com/news/?id=05042016a

2016年4月26日 星期二

CSS學習筆記-控制斷行

最近遇到一個在<a>中的內容要斷行的需求,印象中以前是不行的,查了下才知道,其實可以針對擺<p>、<div>或<li>下的<a>,對其內容斷行,<p>、<div>或<li>加入word-break: break-all即可,如下設定:


<p style="word-break: break-all;"><a href="http://www.google.com">Google</a><p>

參考網址:
CSS: Line Wrap Tutorial
CSS 語法,文字換行,強迫不換行。