2016 年 第 26 週 Facebook 同步週報 (5 篇)

本篇文章更新時間:2019/02/16
如有資訊過時或語誤之處,歡迎使用 Contact 功能通知。
一介資男的 LINE 社群開站囉!歡迎入群聊聊~
如果本站內容對你有幫助,歡迎使用 BFX Pay 加密貨幣新台幣 贊助支持。


本文引用圖文皆取自[來信]告知。

1.

If you use PHP to upload images to your web server, it's normally necessary to set permissions on the upload folder to allow all users global access (read, write, and execute or 777 on *nix systems). This is the least secure setting, leaving it vulnerable to attack by malicious users. However, you c...(圖片描述:If you use PHP to upload image...)

檔案( )有時候需要使用 做代理控管時,會需要開檔讀檔跟對應瀏覽器顯示,文章可參考:

http://foundationphp.com/tutorials/image_proxy.php

但針對圖檔的話,#PHP 官方文件的 getimagesize 這方法範例寫得比較精簡!

http://php.net/manual/en/function.getimagesize.php

2016-06-22 17:29:48 發佈 | 內文分享連結

2.

Have you recently started using WordPress for your client's project and want to further impress your client with better packaging? This article will focus on packagi(圖片描述:Have you recently started usin...)

#客製化後台 的詳細介紹文

http://code.tutsplus.com/tutorials/customizing-wordpress-for-your-clients--wp-21513

2016-06-21 06:51:41 發佈 | 內文分享連結

3.

I have a project in which I have to change the mode of files with chmod to 777 while developing, but which should not change in the main repo. Git picks up on chmod -R 777 . and marks all files as(圖片描述:I have a project in which I ha...)

時被帶入權限設定( )是很討厭的(Windows 下沒差)

常常搞的會有檔案被亂入或是無法被改變。

http://stackoverflow.com/questions/1580596/how-do-i-make-git-ignore-file-mode-chmod-changes

2016-06-21 06:38:54 發佈 | 內文分享連結

4.

移除 中 HTML 加入 generator 標籤時使用的方法

Example 中的範例還滿關鍵的,物件導向設計中在 Class 中設定的方法可以使用

global $my_class;
remove_action( 'the_content', array( $my_class, 'class_filter_function' ) );

這段移除

https://codex.wordpress.org/Function_Reference/remove_action

反之加入 generator 的方法參考這篇:

http://wordpress.stackexchange.com/questions/189981/how-to-set-a-different-value-in-the-generator-meta-tag

2016-06-21 06:29:35 發佈 | 內文分享連結

5.

Easily create your own WordPress Settings page according to WP standards. Fill in two steps and get your personal code!(圖片描述:Easily create your own WordPre...)

產生 後台設定頁面的配置產生器(

http://wpsettingsapi.jeroensormani.com/

2016-06-21 06:16:44 發佈 | 內文分享連結

以上資訊由 FB轉發機器人V2.0 彙整發佈。


Share:

作者: Chun

資訊愛好人士。主張「人人都該為了偷懶而進步」。期許自己成為斜槓到變進度條 100% 的年輕人。[///////////____36%_________]

文章
Filter
Apply Filters
Mastodon