應該跟設定有關,預設是一定要有吧\r~倉木麻衣~ 寫:PHP允許省略最後一行敍述的;吉川拓也 寫:但是之前也沒有那個 ; 怎麼就可以正常運作@@
記憶中有些程式語言也有相同的特性, 像是Delphi及Pascal
我自己寫 PHP (非phpBB)時如果忘了加上都會有錯\r
~Mac
版主: 版主管理群
代碼: 選擇全部
<?php
$mypwd = '654321';
phpinfo();
if ($mypwd == '12345')
echo "123456";
else
echo "654321"
?>代碼: 選擇全部
<?php
$mypwd = '654321';
phpinfo();
if ($mypwd == '12345')
{
echo "123456";
}
else
{
echo "654321"
}
?>結論, 這個2.0.19update修改了不少bug的地方,也方便了一些不太懂裝外掛, 但需要安佺的保險外掛, 雖然內部的不一定安全, 但是最少還是進步啊[Fix] corrected index on session keys table under MS SQL
[Fix] added session keys table to backup
這個2.0.18在php2h.com不能backup
[Fix] delete session keys entries when deleting user
這個很方便=___=不用再煩著進去\r
[Fix] changes to support MySQL 5.0
[Fix] changes to some of the admin files to improve efficiency and remove a potential error condition when building the menu
方便吧?
[Fix] change truncation of username length in usercp_register.php - BFUK
這個好像方便了, 不用裝外掛什麼的- -
[Fix] incorrect path to avatars in admin_users.php (Bug #667)
[Fix] fixed get_userdata to support correct sql escaping (non-mysql dbs) - jarnaez
[Fix] fixed captcha for those not having the zlib extension enabled
[Change] Placed version information above who is online in admin panel for better visual presence
這個裝了以後看看真的美觀了點嗎?????
[Sec] fixed XSS issue (only valid for Internet Explorer) within the url bbcode
這個前幾天有人發貼說bbcode失效, 也經常發生有的code不能使用\r
[Sec] fixed XSS issue (only valid for Internet Explorer) if html tags are allowed and enabled
以後就方便點有html- -
[Sec] added configurable maximum login attempts to prevent dictionary attacks
這個就是說以前要裝外掛, 幾次不成功登入就自動停止一會登入 方便了點@@
如果是要開發外掛的話並且提交到 phpBB MODDB,phpBB.com 會要求使用大括號~倉木麻衣~ 寫:如果寫成這樣就會報錯\r不過, 還是建議不要偷懶, 免的有些什麼怪事產生代碼: 選擇全部
<?php $mypwd = '654321'; phpinfo(); if ($mypwd == '12345') { echo "123456"; } else { echo "654321" } ?>