ãã¬ãŒã ã¯ãŒã¯ã«æ £ãããšããç§ãæåã«èŠãŠããã®ã¯ãã®æ©èœã§ã¯ãªãããããæäŸããæ¢è£œã®ãœãªã¥ãŒã·ã§ã³ã§ãã ç¹ã«ãJS / CSSãã¡ã€ã«ãããŒãã«ç°¡åã«ã¢ã»ã³ãã«ããã¯ã©ã€ã¢ã³ãã®æé©åã®æšå¥šäºé ïŒYSlow / Google PageSpeedïŒã«åŸã£ãŠãäžãããæ©èœã DjangoïŒå®éã«ã¯ã€ã³ã¹ãã¬ãŒã·ã§ã³ãåããïŒã§ãããç§ãèŠãå®è£ ãèŠãªãã£ãã®ã§ãKohana v.3ã®ããã«äœ¿ããã¢ãžã¥ãŒã«ãšããŠæ±ºå®ããããšã«ããŸããã
ãããã£ãŠãã¢ãžã¥ãŒã«ã®éçºåã«é 眮ãããåºæ¬çãªããŒãº/ãŠã£ãã·ã¥ãªã¹ãã«ã€ããŠèª¬æããŸãã
1ïŒã€ã³ã©ã€ã³CSS / JSã1ã€ãã€äœæãã
2ïŒããŒãžã³ãŒãã«æ¿å ¥ããããäžæã®ååã®ãã¡ã€ã«ãçæããŠãã£ã¹ã¯ã«æžã蟌ãããšã«ããããã€ã³ã1ãä»äžããæ©èœã
3ïŒ1ã€ã®ãã«ãã§å€éšCSS / JSãã¡ã€ã«ãã¢ã»ã³ãã«ããæ©èœ
4ïŒãã€ã³ã3ããã®1ã€ãŸãã¯å¥ã®ãã«ããæ¥ç¶ãããæ¡ä»¶ãããã³ãã®ä»ã®å€éšãã¡ã€ã«ãæå®ããæ©èœïŒ
<ïŒ-[IE 7ã®å Žå]>ïŒ
5ïŒéçãå¥ã®ãã¡ã€ã³ã«ç§»åããæ©èœãäž»ãªããšã¯ãåãç©çãµãŒããŒäžã«ããããšã§ãã
6ïŒCDNã䜿çšãã
7ïŒCSS / JSã®æå°åã
8ïŒæãéèŠãªïŒMETHODãããã«ãããåé åžå¯èœãªã¢ãžã¥ãŒã«ã«éçïŒããã³éåžžã¯CSS / JSã ãã§ãªããããšãã°ç»åãïŒãå«ããããšãã§ããŸãã çŸåšã®æ¹æ³ãªã®ã§ãã¢ãžã¥ãŒã«æ©èœèªäœãã¢ãžã¥ãŒã«/ã«è»¢éããã³æ¥ç¶ãããéçãä»»æã®å ŽæDOCUMENT_ROOTã«ã³ããŒãããããåææ¡ä»¶ã¯ã¢ãžã¥ãŒã«ãDOCUMENT_ROOTã«ããããšã§ãã
9ïŒã«ãŒãã£ã³ã°ãšç«¶åããªãããã«éçãªURLãç°¡åã«å€æŽããæ©èœã¯ãããšãã°ãã¹ã¿ã€ã«ã·ãŒãã䜿çšããŠå®éã«æ¢åã®ãã£ã¬ã¯ããªãäœæãããšãã«ãã/ css /ããšããURLã«CSSã»ã¯ã·ã§ã³ãäœæãããå Žåã¯åœ¹ã«ç«ã¡ãŸããã
ã€ãŸã å°æ¥çã«äœããã®åæã«è³ããããã«åŸãå¿ èŠããããŸãã
èæ¡ããããã®ã®å€ãã¯ãå®éã«æ©èœããã¢ãžã¥ãŒã«ã§å ·äœåãããŸããã
ã¢ãžã¥ãŒã«ãžã®ãªã³ã¯ãäžããã ãã§ãªããã¢ãžã¥ãŒã«ã®åäœã瀺ãããã«ãåçŽãªã¿ã¹ã¯ããã®åã«çœ®ããŠã¿ãŸãã
1ïŒ css-framework.ruãããŒã¹ãšããŠ
2ïŒãkohana-static-filesãã¢ãžã¥ãŒã«ã«åºã¥ããŠcss-framework.ru/demo/css-framework-layout.htmlã®äŸãå®è£ ããŠã¿ãŠãã ããã
ç§ã¯ãããè©Šããæãå€ãã®äººã ã«èå³ãããã®ã§ãã¢ãžã¥ãŒã«ããŒããããããã€ããæ¹æ³ãæããŸããäŸãã°ãçµéšè±å¯ãªkokhanovodyãç§ãèš±ããŠãããŸãã
ãããè¡ãã«ã¯ãKohana v.3ã®ææ°ããŒãžã§ã³ãããŠã³ããŒãããŸãã
DOCUMENT_ROOTã®äžã«ã·ã¹ãã ãã¢ããªã±ãŒã·ã§ã³ãã¢ãžã¥ãŒã«ãã£ã¬ã¯ããªã転éããããã«å¿ããŠãindex.phpã®ãã¹ãå€æŽããŸãã
<? php
$application = '../application';
$modules = '../modules';
$system = '../system';
* This source code was highlighted with Source Code Highlighter .
次ã«ã github.com / aberdnikov / kohana-static-filesããææ°ããŒãžã§ã³ãéžæããã³ã³ãã³ããã¢ãžã¥ãŒã«ã«ã³ããŒããŸãã
ãã¡ã€ã«application / bootstrapper.phpã§ã¢ãžã¥ãŒã«ãæ¥ç¶ããŸã
<? php
Kohana::modules ( array (
// 'auth' = > MODPATH.'auth', // Basic authentication
// 'cache' = > MODPATH.'cache', // Caching with multiple backends
// 'codebench' = > MODPATH.'codebench', // Benchmarking tool
// 'database' = > MODPATH.'database', // Database access
// 'image' = > MODPATH.'image', // Image manipulation
// 'orm' = > MODPATH.'orm', // Object Relationship Mapping
// 'oauth' = > MODPATH.'oauth', // OAuth authentication
// 'pagination' = > MODPATH.'pagination', // Paging of results
// 'unittest' = > MODPATH.'unittest', // Unit testing
// 'userguide' = > MODPATH.'userguide', // User guide and API documentation
' kohana-static-files' = > MODPATH.' kohana-static-files ', // Static Files (JS/CSS/pictures)
));
? >
* This source code was highlighted with Source Code Highlighter .
ã¢ãžã¥ãŒã«ãkohana-static-filesãã®åæåãã¡ã€ã«ã§ãã¢ãžã¥ãŒã«Kohana :: find_fileïŒïŒã«åŸã£ãŠã/!/static/style.cssããžã®æåã®åŒã³åºãã§èŠã€ããã¢ãžã¥ãŒã«ã®ã«ãŒãã£ã³ã°ãèŠå®ããŸãã
-æåã®ã¢ããªã±ãŒã·ã§ã³/éçãã¡ã€ã«/ style.css
-ãã®åŸãmodules / {module_name} /static-files/style.cssïŒ{module_name}ã¯bootstrapper.phpã®æ¥ç¶é åºã§æ¥ç¶ãããã¢ãžã¥ãŒã«ã®å埩ã§ãïŒ
-ãããŠãã·ã¹ãã /éçãã¡ã€ã«/ style.cssã§ã®ã¿ã
ãããã£ãŠãã¯ã©ã¹ããã¥ãŒãæ§æãªã©ã®ãã€ãã£ããã£ã¬ã¯ããªã®é£ã«ãæ°ããçš®é¡ã®ãéçãã¡ã€ã«ããã£ã¬ã¯ããªã衚瀺ãããŠããããšã«æ°ã¥ããŸãããããã«éçãã¡ã€ã«ãè¿œå ããŸãã ãããã¯ã®åé ã®ãã©ã°ã©ã9ãŠã£ãã·ã¥ãªã¹ãã«ã€ããŠæãåºããŸãã çµå±ã®ãšãããèšè¿°ãããã¢ãžã¥ãŒã«ã䜿çšããŠç¹å®ã®ãµã€ãã®ç¹å®ã®ææè ãéžæããéçãã¡ã€ã«ã®ãã£ã¬ã¯ããªã¯ããããŸããã
å¥çŽçªå·1
ãã®ããããã¡ã€ã«ãcssf-base.cssãã§ã¯ãURLãå«ãè¡ãæ¢ããŠç·šéãã絶察URLãšçžå¯ŸURLã眮ãæããŸãããŸãã¯ãå é ãèªå眮æã{staticfiles_url}ãã®ãµãã¹ããªã³ã°ã§ãã¿ã€ãã®ã¹ããªã³ã°ãã
.corners-2 em.tlã.corners-2 em.trã.corners-2 em.blã.corners-2 em.br {å¹ ïŒ4px; é«ãïŒ4px; background-imageïŒurlïŒ../ i / corners / corners-2.pngïŒ; }
ã²ããããªãã
.corners-2 em.tlã.corners-2 em.trã.corners-2 em.blã.corners-2 em.br {å¹ ïŒ4px; é«ãïŒ4px; background-imageïŒurlïŒ{staticfiles_url} i / corners / corners-2.pngïŒ; }
ãã®åŸ
urlïŒ{staticfiles_url} i / corners / corners-2.pngïŒ;
ã®ãããªãã®ã«ãªããŸã
urlïŒhttp://static.site.ru/!/static/i/corners/corners-2.pngïŒ;
å¥çŽçªå·2
éçãã¡ã€ã«ã®ååã®ç«¶åãåé¿ããã«ã¯ã次ã®ååã«åŸã£ãŠé 眮ããå¿ èŠããããŸãã
1ïŒã¢ãžã¥ãŒã«ã®å Žåãã¢ãžã¥ãŒã«ã®ååãšäžèŽããååã®ãã£ã¬ã¯ããªã«ããããé 眮ããå¿ èŠããããŸãããã¥ãŒã¹ã¢ãžã¥ãŒã«ã¹ã¿ã€ã«ãã¡ã€ã«ã®çµæã®URLã¯æ¬¡ã®ããã«ãªããŸãã{staticfiles_url} news / style.css
ãããã£ãŠããã¡ã€ã«ã·ã¹ãã å ã®ãã®ãã¡ã€ã«ã¯ãããšãã°æ¬¡ã®å Žæã«ãããŸãã
MODDIR.'news / static-files / style.css '
2ïŒçŸåšã®ãµã€ãã®ãã¶ã€ã³ã§ã¯ããµããã£ã¬ã¯ããªãªãã§éçå€æ°ãé 眮ããå¿ èŠããããŸããããšãã°ããµã€ãã®ãã¶ã€ã³ã®ã¡ã€ã³ã¹ã¿ã€ã«ã·ãŒãã«ã¯URLããããŸã
{staticfiles_url} /style.css
ãããŠããã®ãã¹ã¯æ¬¡ã®ããã«ãªããŸãã
APPDIRã ' éçãã¡ã€ã«/ style.css '
次ã«é²ã¿ãŸãïŒ
Kokhanãã¥ãŒã䜿çšã§ããããã«ããããã«ãController_Templateããç¶æ¿ããããŒã¹ã³ã³ãããŒã©ãŒConrtoller_Welcomeãå€æŽããŸãã
ãããŒã®ä»£ããã«
public function action_index()
{
$this- > request- > response = 'hello, world!';
}
* This source code was highlighted with Source Code Highlighter .
ã¿ã¹ã¯ã解決ããããã«å¿ èŠãªãã¹ãŠãè¿œå ããŸããã³ãŒãã¯èª¬æãªãã§æ確ã§ãã
public function action_index() {
StaticCss::instance()- > addCss(Kohana::config('staticfiles.url').'news/style.css');
StaticCss::instance()- > addCssStatic('news/style.css');
StaticCss::instance()- > addCssStatic('css/cssf-base.css');
StaticCss::instance()- > addCssStatic('css/cssf-ie6.css', 'lte IE 6');
StaticCss::instance()- > addCssStatic('css/cssf-ie7.css', 'IE 7');
StaticJs::instance()- > addJsStatic('js/common.js');
StaticCss::instance()- > addCssInline('
.lb-1 .corners { background: #818181; }
.lb-2 .corners { background: #9a9a9a; }
.lb-3 .corners { background: #b4b4b4; }
.lb-4 .corners { background: #dadada; }
');
StaticJs::instance()- > addJsInline('CornersInit();');
StaticJs::instance()- > addJsOnload('alert(123)');
}
* This source code was highlighted with Source Code Highlighter .
addJsStaticãšaddJsã®åœ¢åŒã®ã¡ãœããã®éãã説æããã ãã§ãã
ãããã¯æ¬è³ªçã«åãã§ãæåã®ã¡ãœããèªäœã«ã©ãããŒãå«ãŸããŠãããæ§æã®ãã¬ãã£ãã¯ã¹ãURLã®å é ã«è¿œå ããŸãã ãã¥ãŒã¹{staticfiles_url} news / style.cssã®ã¹ã¿ã€ã«ã·ãŒããã¡ã€ã«ã䜿çšããäŸ
次ã®ãããããå®è¡ã§ããŸãã
StaticCss::instance()- > addCss(Kohana::config('staticfiles.url').'news/style.css');
* This source code was highlighted with Source Code Highlighter .
ããç°¡åãªæ¹æ³ã§
StaticCss::instance()- > addCssStatic('news/style.css');
* This source code was highlighted with Source Code Highlighter .
ãŸããonloadã€ãã³ãäžã«å®è¡ãããã¹ã¯ãªããã®äžéšã®ã¢ã»ã³ããªã«æ³šæãåèµ·ããããšæããŸãã jQueryã¯ã¢ãžã¥ãŒã«ã§ã¡ã€ã³ã®JSãã¬ãŒã ã¯ãŒã¯ãšããŠåãå ¥ãããããããåŒã³åºããããšã
StaticJs::instance()- > addJsOnload('alert(123)');
* This source code was highlighted with Source Code Highlighter .
ãã©ãŒã ã®æ§é ãçæãããŸãïŒ
< script language ="JavaScript" type ="text/javascript" >
jQuery( document ).ready(
function (){
alert(123)
}
);
</ script >
* This source code was highlighted with Source Code Highlighter .
ã€ãŸã ã©ãããŒïŒãjQueryïŒããã¥ã¡ã³ãïŒ.readyãïŒãäœæããããããã©ã«ãã§jQueryãæ¥ç¶ãããããå¿ èŠã¯ãããŸãããaddJsOnloadãåããŠè¿œå ãããšãjQueryãæ¥ç¶ãããŸããKohana_StaticJsã¯ã©ã¹ã«ã¯ç¹å¥ãªneedJqueryïŒïŒã¡ãœããããããŸãã ãã¡ãããã€ã³ã¿ãŒãããã«ã¢ã¯ã»ã¹ããã«ã€ã³ãã©ãããã§ã¢ãžã¥ãŒã«ã䜿çšããå Žåã¯ãStaticJsã®needJqueryïŒïŒã¡ãœãããåå®çŸ©ããŠããã£ã¹ã¯ãããã¡ã€ã«ãã€ã³ã¯ã«ãŒãããŸãã
ãããŠä»ãç§ãã¡ã¯éšåã®ã¢ãžã¥ãŒã«æ§æã«æ³šæãåããŸã
'js' = > array(
//
'min' = > true,
// (external, inline, onload)
'build' = > false,
),
'css' = > array(
//
'min' = > true,
// (external, inline)
'build' = > true,
),
* This source code was highlighted with Source Code Highlighter .
ãã®å Žæã§ã¯ãã³ã³ãã³ãã¿ã€ãïŒJS / CSSïŒãã¿ã€ãïŒå€éšãã€ã³ã©ã€ã³ããªã³ããŒãïŒãæ¡ä»¶ïŒ
<ïŒ-[IE 7ã®å Žå]>ïŒã
æå°åïŒã³ã¡ã³ããäœåãªã¹ããŒã¹ãæ¹è¡ã®åé€ïŒã
å¥çŽçªå·3
æ¥ç¶ãã¡ã€ã«ã®åã®URLã«ãµãã¹ããªã³ã°ã.minããããå Žå-ãã§ã«å§çž®ãããŠãããšèŠãªãããå§çž®ãªãã·ã§ã³ãæå¹ã«ãªã£ãŠããå Žåã§ãããã®ãã¡ã€ã«ã¯ç¡èŠããããã«ãããã«ããããªãã·ã§ã³ãæå¹ã«ãªã£ãŠããå Žåã ãã®åŸããçŸç¶ã®ãŸãŸãã®ãã«ãã«é©åã«è¿œå ãããŸãã
'path' = > realpath(DOCROOT),
* This source code was highlighted with Source Code Highlighter .
ããã¯ãéçãã¡ã€ã³ã®DOCUMENT_ROOTãã£ã¬ã¯ããªã§ããããã©ã«ãã§ã¯ãåããã¡ã€ã³ã§ãã
//
'url' = > '/!/static/',
//
'cache' = > '/!/cache/',
* This source code was highlighted with Source Code Highlighter .
ããã§ãæå笊ã®ååšã«ã€ããŠã³ã¡ã³ãããããšæããŸããããã¯ããŠã£ãã·ã¥ãªã¹ãã®ãã©ã°ã©ã9ãçŽäºããã³ããããšã®æŠãã«ã€ããŠãŸãã«åœãŠã¯ãŸããŸãã
'host' = > 'http://'.$_SERVER['HTTP_HOST'],
* This source code was highlighted with Source Code Highlighter .
ããã¯ãå®éã«ã¯ãéçãé åžããããã¡ã€ã³ã§ãããŠãŒã¹ã±ãŒã¹ïŒ
1ïŒ ""-ãªã³ã¯ã¯æ¬¡ã®ããã«ãªããŸãïŒ "/pic.jpg"
2ïŒã ya.ru ã-ãªã³ã¯ã¯æ¬¡ã®ããã«ãªããŸããã ya.ru/pic.jpg ã
* Coral CDNã䜿çšããã«ã¯
*çŸåšã®ãã¡ã€ã³ã®ååã«ã.nyud.netããšããæ¥å°ŸèŸãè¿œå ããstatic
*ããšãã°ããã¡ã€ã³ãgoogle.comãã«å¯ŸããŠãã¹ããgoogle.com.nyud.netããèšå®ããŸã
*詳现ã¯ãã¡ãïŒ habrahabr.ru/blogs/i_recommend/82739 3ïŒâ ya.ru.nyud.net â-ãªã³ã¯ã¯æ¬¡ã®ããã«ãªããŸãïŒâ ya.ru.nyud.net/pic.jpg â
æ¢ã«çæãããå¿çã§èªåä¿®æ£ã䜿çšã§ããããã«ãã³ã³ãããŒã©ãŒã®afterã¡ãœããããããã«å€æŽããŸãã
public function after() {
parent::after();
$this- > request- > response = str_replace('{statifiles_url}',
STATICFILES_URL,
$this- > request- > response);
}
* This source code was highlighted with Source Code Highlighter .
ããŠãæåŸã«ããã¬ãŒã³ããŒã·ã§ã³ããã€ã¹ã«ã€ããŠèª¬æããŸãïŒè¡šç€ºïŒ
YSlow / GooglePageSpeedãæšå¥šããããã«ããããã»ã¯ã·ã§ã³ã«CSSãæ¿å ¥ããŸã
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > <br> < html xmlns ="http://www.w3.org/1999/xhtml" > <br> < head profile ="http://gmpg.org/xfn/11" > <br> < title > css-framework / layout-box </ title > <br> < meta http-equiv ="Content-Type" content ="text/html; charset=UTF-8" /> <br> < meta http-equiv ="imagetoolbar" content ="no" /> <br> < link rel ="icon" href ="{statifiles_url}favicon.ico" type ="image/x-icon" /> <br> < link rel ="shortcut icon" href ="{statifiles_url}favicon.ico" type ="image/x-icon" /> <br> <? php echo StaticCss::instance () - > getCssAll(); ? > <br> </ head > <br> <br> * This source code was highlighted with Source Code Highlighter .
ãããŠãéããåã«ãJS insertsãåŒã³åºããŸã
<? php echo StaticJs::instance () - > getJsAll(); ? > <br> </ body > <br> </ html > <br><br> * This source code was highlighted with Source Code Highlighter .
ç§ã®æèŠã§ã¯ãã¢ãžã¥ãŒã«ã¯ã¿ã¹ã¯ã«å¯ŸåŠããŸããïŒ
-HTTPãªã¯ãšã¹ãã®æ°ãæžãããŸããã
-CDNã¯ãªãã·ã§ã³ã§æ¥ç¶ãããŠããŸãã
-ããŒãžã®äžéšã«CSSãæ¿å ¥ãããŸãã
-JSã¯ããŒãžã®æåŸã«æ¿å ¥ãããŸãã
-å¿ èŠãªãã¡ã€ã«ã®ã¿ãæ¥ç¶ãããŸãïŒåå¥ã«ããŸãã¯ãã«ãã«ããïŒïŒå°ããªæ¬ ç¹ããããŸã-ãã¹ãŠã®ãŠãŒã¹ã±ãŒã¹ã«å¯ŸããŠåå¥ã®ãã«ããäœæãããŸãïŒã
-ã€ã³ã©ã€ã³ã¹ã¿ã€ã«ãšã¹ã¯ãªããããã©ã°ã€ã³ãã¡ã€ã«ã«ããããšãã§ããŸãã
-ã¹ã¯ãªãããšã¹ã¿ã€ã«ã®éè€ããæ¥ç¶ã¯é€å€ãããŸãã
ããã§ãæå®ãããéçïŒgzipãETagsãExpiresïŒã®æ£ããããããŒãé 眮ããããã«ãnginxãåŒã³åºãå¿ èŠããããŸãã
ããã§ã¢ãžã¥ãŒã«ãããã¯ã¢ãã/ãã©ãŒã¯ã§ããããšãããäžåºŠæãåºããŸãïŒ
github.com/aberdnikov/kohana-static-files
念ã®ãããã¢ãžã¥ãŒã«ã®æäœã®çµæãšããŠäœãèµ·ãã£ããã瀺ããŸãïŒæ°Žå¹³ã¹ã¯ããŒã«ãªãã§HTMLã衚瀺ããããã«æåã§æ¹è¡ã®ã¿ãå ¥åããŸããïŒ
<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > <br> < html xmlns ="http://www.w3.org/1999/xhtml" > <br> < head profile ="http://gmpg.org/xfn/11" > <br> < title > css-framework / layout-box </ title > <br> < meta http-equiv ="Content-Type" content ="text/html; charset=UTF-8" /> <br> < meta http-equiv ="imagetoolbar" content ="no" /> <br> < link rel ="icon" href ="http://static.site.ru/!/static/favicon.ico" type ="image/x-icon" /> <br> < link rel ="shortcut icon" <br> href ="http://static.site.ru/!/static/favicon.ico" <br> type ="image/x-icon" /> <br> < link rel ="stylesheet" <br> href ="http://static.site.ru/!/cache/css/3/7/3741c0ac0c2f8409beea116d6f4d6922.css" <br> media ="all" type ="text/css" /> <br> <!--[lte IE 6]><link rel="stylesheet" <br> href="http://static.site.ru/!/cache/css/lte-ie-6/1/6/161456642f5cfc18e731472d29293b28.css" <br> media="all" type="text/css" /><![endif]--> <br> <!--[IE 7]><link rel="stylesheet" <br> href="http://static.site.ru/!/cache/css/ie-7/c/b/cb4a089038b23dd1bfc5d0dfbfd35a68.css" <br> media="all" type="text/css" /><![endif]--> <br> < link rel ="stylesheet" <br> href ="http://static.site.ru/!/cache/css/inline/e/c/ec905aaa7ee63d90a646593b7e665936.css" <br> media ="all" type ="text/css" /> <br> </ head > <br> < body > <br> ... [skip html code] ...<br> < script language ="JavaScript" <br> type ="text/javascript" <br> src ="http://static.site.ru/!/cache/js/8/e/8e022d3b6bcba59dcba5c586d408f7b2.js" ></ script > <br> <script language= "JavaScript" <br> type= "text/javascript" <br> src= "http://static.site.ru/!/cache/js/inline/b/2/b2044b150de0ef43233d3491d060a5f6.js" ></script><br> <script language= "JavaScript" <br> type= "text/javascript" <br> src= "http://static.site.ru/!/cache/js/onload/1/5/15fb097828dd52d44bf36e77a96144b6.js" > </ script > <br> </ body > <br> </ html > <br> <br> * This source code was highlighted with Source Code Highlighter .
PSïŒéçãé åžããããã®ãŠãŒã¶ãŒã¬ã€ãã¢ãžã¥ãŒã«ã®ã¢ã€ãã¢ãšã®äž»ãªéãã¯ãè€éãªãã«ããæåã®èŠæ±ã§åå¥ã®èŠæ±ãšããŠããŒãžã³ãŒãããåŒã³åºãããåã«ããã«çæãããåçŽãªéçãæåã«HTTPçµç±ã§ã¢ã¯ã»ã¹å¯èœãªãã£ã¬ã¯ããªã«ã³ããŒãããããšã§ããªã¯ãšã¹ãããããŠããã¯æ¢ã«ãŠã§ããµãŒããŒã«ãã£ãŠäžããããŠããŸãããPHPãéããŠã§ã¯ãããŸããã
ã€ãŸã ãããã€ã¯æåã®ãªã¯ãšã¹ãã§è¡ãããŸãã
æ¬ ç¹ã®ãã¡ããã«ãã®ååãæ¥ç¶ããããã¡ã€ã«ã®ååããååŸãããããïŒããã§ãªãå Žåã¯ã¢ãžã¥ãŒã«ã®é床ã«å€§ãã圱é¿ããïŒããã«ãåãã³ã³ãã³ãã«åºã¥ããŠååŸãããã€ã³ã©ã€ã³ã¹ã¿ã€ã«/ã¹ã¯ãªããã®å Žåã«ã®ã¿ããã«ãã®äœæå ã®ãã¡ã€ã«ãžã®å€æŽãèªåçã«æ€åºããããšã¯äžå¯èœã§ãã
ãããã£ãŠãæŽæ°ãããšãã¯ããã«ããšãã£ãã·ã¥ãå«ã/ïŒ/ãã£ã¬ã¯ããªã匷å¶çµäºããŸãã
èšç»ã«ã¯ãéçïŒã¢ã»ã³ããªãå¿ èŠãšããªãïŒã®èªåå±éã®ããã®ã¡ãœããã®è¿œå ãšãè² è·ã倧ãããªãåã«ãã£ãã·ã¥ããŠã©ãŒã ã¢ããããããã®ã¢ããã€ã¹ãå«ãŸããŸãã