PHP ¼¸¸ö·¾¶º¯Êý
//
dirname()
// Returns directory name component of path
basename()
// Returns filename component of path
pathinfo()
// Returns information about a file path;
// pathinfo() returns an associative array containing information about path .
parse_url()
// Parse a URL and return its components;
// This function parses a URL and returns an associative array
// containing any of the various components of the URL that are present.
realpath()
// Returns canonicalized absolute pathname;
// realpath() expands all symbolic links and resolves references to '/./', '/../' and
// extra '/' characters in the input path . and return the canonicalized absolute pathname.
http_build_query()
// Generate URL-encoded query string;
// Generates a URL-encoded query string
// from the associative (or indexed) array provided.
http_build_url()
// Build an URL
Ïà¹ØÎĵµ£º
תÌù×Ô: http://hi.baidu.com/isnono/blog/item/3c94ea11a54a0fc7a7ef3f94.html
¾³£ÔÚCSDNµÄPHPÂÛ̳ÉÏ¿´µ½ÓÐÅóÓÑÎÊ´¦ÀíÔÚÏßÓû§µÄÎÊÌâ,ÎÒд¹ýÀàËÆµÄ´úÂë,¾ÍÄóöÀ´Ï׳óÁË,ÓеãÀ¬»ø,»ù±¾ÉÏʵÏÖÁ˹¦ÄÜ, ͬÊÇÒ²Äܹ»À©Õ¹£¬±ÈÈçͬʱֻÔÊÐíÒ»¸öÕʺÅÔÚÏߵȡ£
/*
³ÌÐòÓÃ;£º¼ì²âÔÚÏßÓû§
³ÌÐò×÷Õߣºheiyeluren
д×÷ʱ¼ä ......
//Ï뿴ʲôµç×ÓÊ飬ÏÈÈ¥ÐÂÀ˶ÁÊéËÑË÷£¬È»ºóÌîÈë¶ÔÓ¦µÄ²ÎÊý¼´¿É
//http://vip.book.sina.com.cn/
//µç×ÓÊé²ÎÊý
$array_book[0] = 38884; //С˵id
$array_book[1] = 22172; //ÕÂ½ÚÆðʼid
$array_book[2] = 32533; //Õ½ڽáÊøid
$array_book[3] = 'ÖйúÌØÖÖ²¿¶Ó ......
1 °²×°MySQL5
ÓÃÏÂÁÐÃüÁî°²×°MySQL£º
yum install mysql mysql-server
È»ºóÎÒÃÇΪMySQL´´½¨ÏµÍ³Æô¶¯Á´½Ó£¨ÕâÑùµÄ»°£¬MySQL¾Í»áËæ×ÅϵͳÆô¶¯¶øÆô¶¯£©£¬²¢Æô¶¯MySQL·þÎñÆ÷£º
chkconfig –levels 235 mysqld on
/etc/init.d/mysqld start
ÔËÐÐ
mysqladmin -u root password yourrootsqlpassword
À´ÎªrootÓû§ÉèÖà ......
ÀûÓ÷ÉÐÅAPIʵÏÖ¹«Ë¾ÄÚ²¿·¢ËͶÌÐÅ¿ÉÒÔʡϲ»ÉÙÇ®.ÍøÉÏÒ²Óв»ÉÙ·ÉÐÅAPI,µ«¸Ð¾õ²»¿É¿¿,
»¹ÊÇ×Ô¼ºÐ´ÁËÒ»¸ö¼òµ¥µÄAPI.µ÷ÓõØÖ·ÈçÏÂ,²»»á¼Ç¼·ÉÐÅÃÜÂë.
ϲ»¶µÄÅóÓÑ¿ÉÒÔÊÔÊÔ,½áºÏAU3ÓÖдÁ˸öUDF.ÕâÏ·¢¶ÌÐÅ·½±ãºÜ¶àÁË.
http://lab.l4ever.cn/fetion/api/?from=·¢ËÍÊÖ»ú&pw=·ÉÐÅÃÜÂë&to=½ÓÊÕºÅÂë&msg=¶ÌÐÅÄÚÈ ......