¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
£¨1£©$this->uri->segment()µÚ¶þ¸ö²ÎÊýÑ¡Ïî
ûÈç¹ûsegmentûÓÐĬÈÏÖµ£¬µÚ¶þ¸ö²ÎÊýÔÊÐíÄã´«ÈëĬÈÏÖµ£º
$param = $this->uri->segment(3, 'laurence');£¨2£©ÈκÎÀà¿â¶¼¿ÉÒÔÓÐÅäÖÃÎļþ
¾¡¿ÉÄܽ«ÄãµÄÅäÖÃÐÅÏ¢·Åµ½¿ØÖÆÆ÷Ö®Í⣬ÔÚCIÖÐÕâÑù×öºÜ·½±ã£¬Ö»ÒªÔÚapplication/configÖм佨Á¢ºÍÄãÀà¿âͬÃûµÄÅäÖÃÎļþ¼´¿É£¬ÈçʹÓÃemailÀà¿â,ÔÚapplication/config/email.php
$config['protocol'] = 'smtp'; $config['smtp_host'] = 'smtp.163.com'; $config['smtp_user'] = 'username'; $config['smtp_pass'] = 'password'; $config['smtp_port'] = '25';
Èç¹ûÅäÖÃÎļþ²»´æÔÚ£¬µÚÈý¸ö²ÎÊý¿ÉÒÔÒÖÖÆ´íÎóÐÅÏ¢£º
$this->config->load('blog_settings', FALSE, TRUE);
£¨3£©Ê¹ÓÃremove_invisible_characters()¹ýÂ˲»¿É¼û×Ö·û
µ±Äã²»ÐèÒªxss¹ýÂ˵Äʱºò£¬¿ÉÄÜ»áʹÓÃÕâ¸öº¯Êýremove_invisible_characters()£¬Õâ¸öº¯Êý·ÀÖ¹²åÈë¿Õ×Ö·ûµÄASCII×Ö·û£¬ÈçJava\0script
£¨4£©Ê¹ÓÃCodeigniterÊÊÅäÆ÷
Ïêϸ½Ì³Ì¼ûÊֲ᣺
£¨5£©Ê¹ÓõÚÈý¸ö²ÎÊý£¬ÊÓͼ¿ÉÒÔÖ±½Ó×÷Ϊ²ÎÊý·µ»Ø
µ±ÄãÔÚ´´½¨PDF»ò¹¹¼þÏÂÔØʹ¿ÉÄܺÜÓÐÓãº
$page = $this->load->view('view', $data, TRUE);
$pdf = build_pdf($page);
// OR
$this->load->helper('download');
$view_data = $this->load->view('xml_template', $data, TRUE);
force_download($data['page_title'].'.xml', $view_data);
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ