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

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

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...)

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

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...)

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

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...)

#Git 在 #commit 時被帶入權限設定( #permission )是很討厭的(Windows 下沒差)

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

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

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

4.

移除 #WordPress 中 HTML #meta 被 #Plugin 加入 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...)

產生 #WordPress 後台設定頁面的配置產生器( #Settings #Generator )

http://wpsettingsapi.jeroensormani.com/

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

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

Facebook 外掛功能


Share:

作者: Chun

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