php sql ์ธ์ ์ ์๋ฐฉ - magic_quote_gpc Sets the magic_quotes state for GPC (Get/Post/Cookie) operations. When magic_quotes are on, all ' (single-quote), " (double quote), \ (backslash) and NUL's are escaped with a backslash automatically. ์ด๊ฒ์ ์๋์ผ๋ก addslashes() ๋ฅผ ํ๋ ์ต์ ์ ๋๋ค.ํ์ง๋ง sql ๋ฌธ๋ฒ์ ์์ ํ ๋ง์ง ์์ต๋๋ค.๋ฌผ๋ก \ ๋ก escape ํ๋ ๋ฌธ๋ฒ์ ์ง์ํด ์ฃผ๊ธด ํฉ๋๋ค๋ง, ์๋์ ๋ฌธ๋ฒ์ ์๋๋๋ค.๊ฒ๋ค๊ฐ ; ๋ escape ์ํค์ง ์์ผ๋ ์ฌ์ํ ์ค์๋ก ํฐ ๋ณด์๊ตฌ๋ฉ์ด ๋ฐ์ํ ์ ์์ต๋๋ค. - *_escape..
์~ ์ผ๋ฅธ ์ ์ฉํด์ผ๊ฒ ๋ค. ํธ๋์ญ์ ์ฝ๋ ์ ์ฉํ๊ณ ์์ธ์ฒ๋ฆฌํ๊ณ ๋ก๊ทธ๋ ์๊ณ ์์ ํ๋ชจ๋์ ๋ค์ด๊ฐ์ผ ํ๋ค. ์๋๋ db transaction ์ํ์ด๋ค. try { // First of all, let's begin a transaction $db->beginTransaction(); // A set of queries; if one fails, an exception should be thrown $db->query('first query'); $db->query('second query'); $db->query('third query'); // If we arrive here, it means that no exception was thrown // i.e. no query has failed, and we..
FCKEditor doesn't work in IE10 //IE10 in fckeditor.js > method : FCKeditor_IsCompatibleBrowser find this >> var sBrowserVersion = navigator.appVersion.match(/MSIE (...)/)[1] ; and replace with >> var sBrowserVersion = navigator.appVersion.match(/MSIE ([\d.]+)/)[1] ; in fckeditorcode_ie.js find e.scopeName!='HTML' and change if condition to if(FCKBrowserInfo.IsIE&& e.scopeName && e.scopeName!='HT..
1. ์ฝ๋์ด๊ทธ๋์ดํฐ ์ค์นํด๋์ .htaccess ๋ฅผ ๋ง๋ ๋ค. ํ์ผ๋ด์ฉ์ ์๋์ ๊ฐ๋ค. RewriteEngine On RewriteBase / RewriteCond $1 !^(index\.php|images|asset) RewriteCond %[REQUEST_FILENAME] !-f RewriteCond %[REQUEST_FILENAME] !-d RewriteRule ^(.*)$ index.php/$1 [L][์ถ์ฒ] [CodeIgniter] index.php ์ ๊ฑฐํ๊ธฐ|์์ฑ์ ๋ํ ๋ฆฌ ์์์ 4๋ฒ์งธ์ค ์ ๊ท์์๋ ์ฝ๋์ด๊ทธ๋์ดํฐ url ํจํด์ด ์๋ ์ผ๋ฐ url ํ์ ํจํด /includes ๋๋ /images ๋ก ์ ๊ทผ์ด ๊ฐ๋ฅํ๊ฒ ํด์ฃผ๋ค. Rewrite๋ฅผ ์ ์ธํด์ผํ ํด๋๋ฅผ ์ถ๊ฐํ๋ค.
class LogingEvent { const Run = 0; const RunDevilRun = 1; public function getConstants($type) { $x = $type; $fooClass = new ReflectionClass ( 'LogingEvent'); $constants = $fooClass->getConstants(); $constName = null; foreach ( $constants as $name => $value ) { if ( $value == $x ) { $constName = $name; break; } } return $constName; }}์)$aaa = LogEvent::getConstants( LogEven..
error_log(var_export($doc, true));
์ฟผ๋ฆฌ ๋๋ฒ๊ทธ์ฉ...
- Total
- Today
- Yesterday
- Ajax
- ๊ธฐํ
- ๋ฉ๋ฐฐํ
- ์๋ฐ์คํฌ๋ฆฝํธ
- 8๋ง์ผ
- EL
- ์น์์ด์ ์
- ์นด๋ฐ์จ๋ผ์ธ
- JSON
- JSTL
- JavaScript
- asp
- jQuery
- Servlet
- ์๋ฆฌ
- ์๋ธ๋ฆฟ
- ์์์ฌ์ด๋
- JS
- I Don't Care
- php
- JSP
- ๊ฒฝ์ ์ฉ์ด
- ์ธํจ์ด
- ๋ด๋๋ด์ฐ
- ๋์ค
- ๋ณต๊ทผ์ด๋
- Java
- MySQL
- 2ne1
- ํจ์
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |