PHP´Â ÆÄ½º ¿À·ù¸¦: ±¸¹® ¿À·ù, ÀÇ¿Ü $end
PHP 5¿¡¼´Â, µÚ¿¡ ¿À´Â °ú½ÇÀº ¾ÆÆÄÄ¡ ¿À·ù ±â·Ï¿¡ ÀÖ´Â °ú½Ç ÀÔÀå ¶Ç´Â °£´ÜÇÏ°Ô PHP À¥ ÆäÀÌÁö¿¡ Àü½Ã·Î ºñ·Ï php_info¸¦ °¡Áø php ¿øº»¿¡ ºÎ¸£´Â °ÍÀÌ () ¿ÏÀüÇÏ°Ô ÀÛµ¿ÇÏ°í ¼º°øÀûÀ¸·Î PHP À±°û¿¡ Á¤º¸¸¦ µ¹·Áº¸³»´õ¶óµµ, ³ªÅ¸³´Ù ÀÏÁö¸ð¸¥´Ù:
ÆÄ½º ¿À·ù¸¦: ±¸¹® ¿À·ù, ÀÇ¿Ü $end¿¡¼ ..... ¼±¿¡ scripts.php¡¦
°ú½ÇÀº PHP ¿øº» ÄÚµù¿¡ ÀÖ´Â ¾ø´Â ²¿ºÎ¶óÁø ºÎ·ù¿¡ ÀÇÇØ ÀÏÀ¸Å°´Â ¿øÀÎÀÌ µÇ¾î ÀÏÁö¸ð¸¥´Ù. ÀÇ ¿·¿¡, ±×°ÍÀº Æ´ÀÌ ¹æ¹ý ¼±¾ð ¾È¿¡ ÀÖÀ¸¸é ¾Ê´Â ÇÑ PHP¿¡¼ °Í°ú °°ÀÌ, Ŭ·¡½º Á¤Àǰ¡ º¹¼ö ÆÄÀÏ, ¶Ç´Â ´Ù¼ö PHP ±¸È¹À¸·Î °¥¶óÁ³´Ù¿Í ¹èºÎÇØ ÀÏ ¼ö ¾ø´Ù, ¶ÇÇÑ Å¬·¡½º Á¤ÀÇ¿¡ ÀÖ´Â PHP ÄÚµù¿¡¼ ½Ç¼ö·Î ÀÏÀ¸Å°´Â ¿øÀÎÀÌ µÇ¾î ÀÏÁö¸ð¸¥´Ù.
±×·¯³ª ´õ ÀϹÝÀûÀ¸·Î, °ú½ÇÀº PHP¿¡ ÀÖ´Â °£°á ¿·ÁÀÖ´Â ²¿¸®Ç¥ÀÇ »ç¿ë¿¡ ¼ö½Ã·Î ±âÀÎÇÑ´Ù, instead of full tag,
¿·ÁÀÖ´Â ²¿¸®Ç¥¸¦ ª°Ô ÀÌ¿ëÇϱâ À§ÇÏ¿©´Â, ±×°ÍÀº PHP.INI¿¡¼ °¡´ÉÇÏ°Ô µÇ¾î¾ß ÇÑ´Ù. PHP.INI¿¡ ÀÖ´Â short_open_tag¸¦ ã°í, À§¿¡¿¡ °¡Ä¡¸¦ ¹Ù²Ù½Ê½Ã¿À. ¼±Àº ¼±À» ºÁ¾ß ÇÑ´Ù:
short_open_tag = À§¿¡
Áß¿äÇÑ: À̰ÍÀº º¸Àå ¾øÀÌ "ÀÖ´Â ±×´ë·Î" Á¦°øµÇ´Â ±â°è ¹ø¿ª ÆäÀÌÁöÀÌ´Ù. ±â°è¹ø¿ªÀº ÀÌÇØÇϱ⠰ï¶õÇÒÁöµµ ¸ð¸¥´Ù. Âü°íÇϽʽÿÀ ¿ø·¡ ¿µ±¹ ±â»ç °¡´ÉÇÑ ¾ðÁ¦µçÁö.
°øÀ¯ÇÏ°í °øÇåÇϰųª ±â¼úÁö¿øÀ» ¾ò°í¿¡ µµ¿ì½Ê½Ã¿À ³ªÀÇ µðÁöÅÐ »ýȰ °ø°³Åä·Ð.
°ü·Ã ±â»ç
- WPDB Á¾·ù¿¡ ÀÖ´Â WordPress MySQL SQL Áú¹® °ú½Ç
- WordPress¿Í MagpieRSS¿¡ ÀÖ´Â gmmktime °ú½Ç
- Ä¡¸íÀû ¿À·ù°¡ PHP¿¡ ÀÇÇÏ¿© ±â¾ï ¿ë·® Exchausted¿¡°Ô ÁÖ¾îÁ³´Ù
- Apache2, PHP5 ¹× MySQL4 - ºÎ 3¸¦ °¡Áø Windows XP¿¡ ÀÖ´Â À¥ ¼¹ö¸¦ ¼³Ä¡ÇϽʽÿÀ
- ÁÖ¹®À» ¹Þ¾Æ¼ ¸¸µå´Â ¹æ¹ý, WordPress µ¥ÀÌÅͺ£À̽º Á¢¼Ó °ú½Ç ÆäÀÌÁö¸¦ º¯°æÇϰųª ¹Ù²Ù½Ê½Ã¿À
- PHP¿¡ ÀÖ´Â ÄÚ¸àÆ® ±×¸®°í ÄÚ¸àÆ® ±¸È¹
- Oracle µ¥ÀÌŸº£À̽º ¼öÀÔǰ °ú½Ç 3113/3114
- Oracle ORA-14074´Â »õ·Î¿î ºÐÇÒ ½ÇÆÐ °ú½ÇÀ» âÁ¶Çϰųª Ãß°¡ÇÑ´Ù
- Oracle EXP-00091 °ú½Ç °æ¿ìÀÇ ¼öÃâ µ¥ÀÌŸº£À̽º
- ½ÇÆÐµÈ ¾ÆÆÄÄ¡ HTTPD¸¦ ½ÃÀÛÇÏ´Â °ÍÀº ¿ ¼ö ¾ø°Å³ª ¶§¹®¿¡, mod_log_bytes ¶Ç´Â mod_bandwidth ÆÄÀÏ mod_bwlimited

































May 14th, 2006 23:30
thanks a lot,
short_open_tag = On solved that problem for me
August 22nd, 2006 22:49
Thanks for this post¡¦saved me a lot of time!
December 20th, 2006 04:57
I saw your posting and made the change to the php.ini file and I¡¯m still getting the error the is being run with Fedora Core 5 with MySql 5.
Can someone please help
0)
{
while ($row = mysql_fetch_assoc($result))
{
print $row(¡¯cust_id¡¯) . ¡®-¡¯ . $row(¡¯cust_url_desc¡¯) ;
}
}
else
{
echo ¡®No rows found!¡¯;
}
mysql_free_result($result);
mysql_close($connection);
?>
February 5th, 2007 07:41
Hello. I have a problem with a PHP file that shows the ¡°PHP Parse Error: syntax error, unexpected $end¡± error and I followed the instructions in this page and corrected the php.ini from OFF to ON.
Now, the file don¡¯t give any feedback when I open it. It only gives me a blank page and no info! O_o
It¡¯s strange¡¦ Can you help me please? Thanks.
March 29th, 2007 22:29
This might be due to a missing quote also
August 30th, 2007 19:39
Thanks a ton, I¡¯ve been trying to figure this out for the last few hours.
September 15th, 2007 20:20
thhanx a lot short_open_tag = On solved my problem. ypu are helpful
September 30th, 2007 12:07
wow! thanks for your useful guidance¡¦
October 23rd, 2007 18:52
Very useful, thanks. I just upgraded to openSuse 10.3 from 10.2 which had reset my php.ini.
February 27th, 2008 20:22
Thanks for your time, But for me Its really didfficult to find a missing curly bracket.
Is there any easiest way to findout with MISSING CURLY BRACKET. Any editor can do it for us.
Please Help.
Rana
March 8th, 2008 14:27
syntax error, unexpected $end in C:\wamp\www\login.php on line 49
March 17th, 2008 00:32
Thank you,
Been searching for ages for solution to this.
short_open_tag = On solved that problem for me.
Finally I can open templates
May 10th, 2008 14:10
Thank you very much ¡¦..