EX: /var/www/include/abc.php
取得檔案名稱與路徑 /var/www/include/abc.php
__FILE__;
取得檔案名稱 test.php
basename(__FILE__);
取得檔案名稱與路徑 /var/www/include/abc.php
__FILE__;
取得檔案名稱 test.php
basename(__FILE__);
執行PHP出現以下錯誤訊息
Allowed memory size of xxx bytes exhausted ......
修改php.ini
找到memory_limit = 8M 改為 32M