<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>DoIT 科技論壇 - PHP</title>
    <link>https://forum.doit.net.tw/forum.php?mod=forumdisplay&amp;fid=9</link>
    <description>Latest 20 threads of PHP</description>
    <copyright>Copyright(C) DoIT 科技論壇</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Wed, 06 May 2026 12:30:18 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://forum.doit.net.tw/static/image/common/logo_88_31.gif</url>
      <title>DoIT 科技論壇</title>
      <link>https://forum.doit.net.tw/</link>
    </image>
    <item>
      <title>IIS PHP 8</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=265</link>
      <description><![CDATA[;IS 下的 FastCGI 支援模擬呼叫方用戶端之安全性權杖的能力。 這可讓 IIS 定義要求執行的安全性內容。

date.timezone = \&quot;Asia/Taipei\&quot;

fastcgi.impersonate = 1

cgi.force_redirect = 0

;這可讓 PHP 遵循 CGI 規格存取實際路徑資訊。 IIS FastCGI 實作需要這個延伸 ...]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Tue, 25 Nov 2025 06:31:37 +0000</pubDate>
    </item>
    <item>
      <title>PHPStorm 快捷键大全（Win/Linux/Mac）</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=255</link>
      <description><![CDATA[Mac 符號符號解釋⌘Command⇧Shift⌃ControlEnter/Return⌥Option / Alt編輯Win / LinuxMac註釋使用頻率Ctrl + Space⌃Space代碼自動完成（一般與輸入法衝突）★☆☆☆☆Ctrl + Shift + Enter⌘ ⇧&amp;nbsp;智能完善代碼（如:if ()）★☆☆☆☆Ctrl + P⌘P方法參數提示，顯 ...]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Tue, 14 Jan 2025 08:57:44 +0000</pubDate>
    </item>
    <item>
      <title>CSS的大於(&gt;)、加號(+)、取代符號(~)</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=225</link>
      <description><![CDATA[有時我們會在CSS裡看到「&amp;gt;」、「+」、「~」這些符號的使用，它們到底有甚麼功用呢？各有甚麼不同呢？以下讓我們來簡單介紹一下。大於符號(&amp;gt;)大於(&amp;gt;)就是選取底下直接的子元素。以大於符號(.box &amp;gt; p)和空格(.box p)來做比較，先看以下例子：&amp;nbsp;CSS使用空格的情況.box  ...]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 22 Jun 2023 04:09:31 +0000</pubDate>
    </item>
    <item>
      <title>PHP通過ip地址取得所在國家</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=99</link>
      <description><![CDATA[function getLocationInfoByIp(){
    $client = @$_SERVER[\'HTTP_CLIENT_IP\'];
    $forward = @$_SERVER[\'HTTP_X_FORWARDED_FOR\'];
    $remote = @$_SERVER[\'REMOTE_ADDR\'];
    $result = array(\'country\'=&gt;\'\', \'city\'=&gt;\'\');
    if(filter_var($clie]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:27:10 +0000</pubDate>
    </item>
    <item>
      <title>How to Convert PHP Array to JavaScript Array</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=98</link>
      <description><![CDATA[https://www.codexworld.com/how-to/convert-php-array-to-javascript-array/How to Convert PHP Array to JavaScript ArrayBy: CodexWorldLast Updated:&amp;nbsp;Jun 23, 2017ShareTweetPHP array can be used in JavaScript, whatever the array is a single or multidi ...]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:26:26 +0000</pubDate>
    </item>
    <item>
      <title>PDO Debug</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=97</link>
      <description><![CDATA[$sth-&gt;debugDumpParam();
var_export($sth-&gt;errorInfo());]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:26:01 +0000</pubDate>
    </item>
    <item>
      <title>PHPExcel - 無法儲存或開啟 excel 檔的問題</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=96</link>
      <description><![CDATA[檔案前方會多幾行空白


ob_end_clean();]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:25:26 +0000</pubDate>
    </item>
    <item>
      <title>[PHP] pathinfo()輕鬆取檔案副檔名、檔案名稱、根目錄相對路...</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=95</link>
      <description><![CDATA[pathinfo()
可輕鬆取檔案名稱、副檔名、根目錄相對路徑、資料夾名

用法一
pathinfo($path, PATHINFO_EXTENSION);

// 參數 (選用)
PATHINFO_DIRNAME   //完整路徑
PATHINFO_BASENAME  //完整檔名
PATHINFO_EXTENSION //副檔名
PATHINFO_FILENAME  //檔名
用法二
$path_ ...]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:24:54 +0000</pubDate>
    </item>
    <item>
      <title>PHP 顯示錯誤</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=94</link>
      <description><![CDATA[ini_set(\'display_errors\',\'1\');
error_reporting(E_ALL);]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:24:25 +0000</pubDate>
    </item>
    <item>
      <title>html_entity_decode — 函數把 HTML 實體轉換為字符</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=93</link>
      <description><![CDATA[瀏覽器輸出：

John &amp; \'Adams\'
John &amp; \'Adams\'
John &amp; \'Adams\'

如果在瀏覽器中查看源代碼，會看到這些 HTML：



John &amp; &amp;#039;Adams&amp;#039;
John &amp; \'Adams\'
John &amp; &amp;#039;Adams&amp;#039;]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:24:02 +0000</pubDate>
    </item>
    <item>
      <title>cors</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=92</link>
      <description><![CDATA[header(\&quot;Access-Control-Allow-Origin: *\&quot;);
  header(\&quot;Access-Control-Allow-Methods: *\&quot;);
  header(\&quot;Access-Control-Allow-Headers: Origin, Methods, Content-Type\&quot;);
Access-Control-Allow-Origin : 允許的域名，代表全部
Access-Control-Allow-Methods : 允許跨域 ...]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:23:40 +0000</pubDate>
    </item>
    <item>
      <title>PHPMailer</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=91</link>
      <description><![CDATA[]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:23:07 +0000</pubDate>
    </item>
    <item>
      <title>使用STRTOTIME做日期及時間加減計算</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=90</link>
      <description><![CDATA[]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:22:43 +0000</pubDate>
    </item>
    <item>
      <title>PHP session_set_cookie_params 会话函数</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=89</link>
      <description><![CDATA[定义和用法session_set_cookie_params&amp;nbsp;- 设置会话 cookie 参数版本支持PHP4PHP5PHP7支持支持支持7.3.0 增加 options 参数， 可以通过传入一个关联数组对各个选项进行设置。 同时，通过使用这个参数还可以对 SameSite cookie 进行设置。7.2.0 成功时返回 TRUE，  ...]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:22:19 +0000</pubDate>
    </item>
    <item>
      <title>長文字</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=88</link>
      <description><![CDATA[$xx=]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:21:55 +0000</pubDate>
    </item>
    <item>
      <title>Composer 安裝</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=87</link>
      <description><![CDATA[php -r \&quot;copy(\'https://getcomposer.org/installer\', \'composer-setup.php\');\&quot;
php -r \&quot;if (hash_file(\'sha384\', \'composer-setup.php\') === \'55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae\') { echo \']]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:21:01 +0000</pubDate>
    </item>
    <item>
      <title>CSRF ckfinder 檔案上傳錯誤</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=86</link>
      <description><![CDATA[\\ckfinder\\config.php$config[\'csrfProtection\'] = true;修改為$config[\'csrfProtection\'] = false;或者var finder;

CKFinder.start({
    onInit: function(instance) {
        // Save finder instance to use it later
        finder = instance;
    }
});
]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:20:21 +0000</pubDate>
    </item>
    <item>
      <title>PHP 省略長字串</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=85</link>
      <description><![CDATA[用 PHP 來列出數據庫中的一些資料，這些字串有長有短，放在同一個列表中，會使得列表時闊時窄，不太好看。還好的是，我們並不是要準確地知道這些字串的全部內容，大約查看一下便可。這情況下，最自然的做法，便是把字串一律限於特定的長度內，過長的字串，以尾綴 ...  ...]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:19:51 +0000</pubDate>
    </item>
    <item>
      <title>PhpSpreadsheet DataType</title>
      <link>https://forum.doit.net.tw/forum.php?mod=viewthread&amp;tid=84</link>
      <description><![CDATA[https://phpoffice.github.io/PhpSpreadsheet/classes/PhpOffice-PhpSpreadsheet-Cell-DataType.html]]></description>
      <category>PHP</category>
      <author>Anderson</author>
      <pubDate>Thu, 25 May 2023 02:19:27 +0000</pubDate>
    </item>
  </channel>
</rss>