Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

php³£ÓõĻù±¾º¯Êý

phpµÄº¯Êý·ÖΪϵͳº¯Êý£¬Óû§º¯Êý
1£¬phpº¯Êý²»Çø·Ö´óСд
º¯ÊýÔ­ÐÍ£º
 ·µ»ØÀàÐÍ º¯ÊýÃû³Æ£¨ÀàÐÍ ²ÎÊý£©
2.1£¬ÏµÍ³º¯ÊýÖг£ÓõÄÊýѧº¯Êý
abs(eumber) È¥¾ø¶ÔÖµ
sin(float)  ÕýÏÒ¼ÆËãsin(x)
cos(float) ÓàÏÒ¼ÆËãcos(x)
log(float) ×ÔÈ»¶ÔÊý¼ÆËã
sqrt(float) ¿ªÆ½·½¸ù¼ÆËã
log10(float) 10»ùµ×µÄ¶ÔÊý
exp(float) ×ÔÈ»¶ÔÊýeµÄ´Î·½Öµ
pow(float x,float y) ´Î·½xµÄy´Î·½
pi()  Ô²ÖÜÂÊ
rand([min]£¬[max])    È¡Ëæ»úÊý
2.2 ×Ö·û´®º¯Êý
strtolower()    ×Ö·û´®×ªÎªÐ¡Ð´
strtoupper()    ×Ö·û´®×ªÎª´óд
trim()        ½ØÈ¥×Ö·û´®Ê×β¿Õ¸ñ
substr(string£¬start£¬[length])    È¡×Ó´®
strlen(string str)    È¡µÃ×Ö·û´®³¤¶È
strpos(ĸ´®£¬´ý²é×Ö·û£¬[offset])    ѰÕÒ×Ö·û´®ÖÐij×Ö·û×îÏȳöÏÖ´¦
strcmp(str1,str2)    ×Ö·û´®±È½Ï
2.3 Îļþϵͳº¯Êý£º
int filesize(string filename)    »ñµÃÎļþ´óС
int feof(int fp)        ²âÊÔÎļþÖ¸ÕëÊÇ·ñÖ¸µ½Îļþβ
int fopen(string filename,string mode)    ´ò¿ªÎļþ»òÕßURL
int fclose(int fp)        ¹Ø±ÕÒÑ´ò¿ªµÄÎļþ
string fread(int fp,int n)    ¶ÁÈ¡ÎļþN¸ö×Ö½Ú
string fgets(int fp,int n)    È¡µÃÎļþÖ¸ÕëËùÖ¸µÄÐÐ(ÊʺϴóÎļþ´¦Àí)
int fwrite(int fp,string string,int[n])    дÈëÎļþ
int fputs(int fp,string str,int[n])    дÈëÎļþ
int mkdir(string pathname,int mode)    ½¨Á¢Ä¿Â¼
int rmdir(string dirname)        ɾ³ýĿ¼
int rename(string oldname,string newname)    ¸ÄÃû
2.4 ÍøÂ纯Êý£º
int fsockopen(string hostname,int port,int[errno],string[errstr],int
[timeout])    ´ò¿ªÍøÂçsocketÁ´½Ó
string gethostbyname(string hostname)    DNS²éѯ£¬·µ»ØIPÍøÖ·
array gethostbynamel(string hostname)    ·µ»Ø»úÆ÷Ãû³ÆµÄËùÓÐIP
2.5 MySQLÊý¾Ý¿âº¯Êý£º
int mysql_connect(string[hostnam


Ïà¹ØÎĵµ£º

PHP $_POST


$_POST ±äÁ¿ÓÃÓÚÊÕ¼¯À´×Ô method="post" µÄ±íµ¥ÖеÄÖµ¡£
$_POST ±äÁ¿
$_POST ±äÁ¿ÊÇÒ»¸öÊý×飬ÄÚÈÝÊÇÓÉ HTTP POST ·½·¨·¢Ë͵ıäÁ¿Ãû³ÆºÍÖµ¡£
$_POST ±äÁ¿ÓÃÓÚÊÕ¼¯À´×Ô method="post" µÄ±íµ¥ÖеÄÖµ¡£´Ó´øÓÐ POST ·½·¨µÄ±íµ¥·¢Ë͵ÄÐÅÏ¢£¬¶ÔÈκÎÈ˶¼ÊDz»¿É¼ûµÄ£¨²»»áÏÔʾÔÚä¯ÀÀÆ÷µÄµØÖ·À¸£©£¬²¢ÇÒ¶Ô·¢ËÍÐÅÏ¢µÄÁ¿Ò²Ã»ÓÐÏÞÖ ......

PHP ´íÎó´¦Àí


ÔÚ PHP ÖУ¬Ä¬ÈϵĴíÎó´¦ÀíºÜ¼òµ¥¡£Ò»ÌõÏûÏ¢»á±»·¢Ë͵½ä¯ÀÀÆ÷£¬ÕâÌõÏûÏ¢´øÓÐÎļþÃû¡¢ÐкÅÒÔ¼°Ò»ÌõÃèÊö´íÎóµÄÏûÏ¢¡£
PHP ´íÎó´¦Àí
ÔÚ´´½¨½Å±¾ºÍ web Ó¦ÓóÌÐòʱ£¬´íÎó´¦ÀíÊÇÒ»¸öÖØÒªµÄ²¿·Ö¡£Èç¹ûÄúµÄ´úÂëȱÉÙ´íÎó¼ì²â±àÂ룬ÄÇô³ÌÐò¿´ÉÏÈ¥ºÜ²»×¨Òµ£¬Ò²Îª°²È«·çÏÕ³¨¿ªÁË´óÃÅ¡£
±¾½Ì³Ì½éÉÜÁË PHP ÖÐһЩ×îÎªÖØÒªµÄ´íÎó¼ì² ......

PHP ¹ýÂËÆ÷£¨Filter£©


PHP ¹ýÂËÆ÷ÓÃÓÚÑéÖ¤ºÍ¹ýÂËÀ´×Էǰ²È«À´Ô´µÄÊý¾Ý£¬±ÈÈçÓû§µÄÊäÈë¡£
ʲôÊÇ PHP ¹ýÂËÆ÷£¿
PHP ¹ýÂËÆ÷ÓÃÓÚÑéÖ¤ºÍ¹ýÂËÀ´×Էǰ²È«À´Ô´µÄÊý¾Ý¡£
ÑéÖ¤ºÍ¹ýÂËÓû§ÊäÈë»ò×Ô¶¨ÒåÊý¾ÝÊÇÈκΠWeb Ó¦ÓóÌÐòµÄÖØÒª×é³É²¿·Ö¡£
Éè¼Æ PHP µÄ¹ýÂËÆ÷À©Õ¹µÄÄ¿µÄÊÇʹÊý¾Ý¹ýÂ˸üÇáËÉ¿ì½Ý¡£
ΪʲôʹÓùýÂËÆ÷£¿
¼¸ºõËùÓÐ web Ó¦ÓóÌÐò¶¼ÒÀ ......

phpʵÏÖCMSϵͳ¸öÈËÐĵÃ

    ×î½ü°ïʵÑéÊÒÍêÉÆÒ»¸öCMSϵͳ£¬ÏÖÔÚÒѾ­½øÈëβÉù£¬½è´Ë»ú»á¼òÒª¼Ç¼һÏÂʵÏÖµÄϸ½Ú£¬ÒÔ±¸ËùÐè¡£
±¾ÏµÍ³ÊǸö´¿´âµÄÔÚÏßÄÚÈݹÜÀíϵͳ£¬×îÖ÷ÒªµÄ²Ù×÷¾ÍÊÇÏòÊý¾Ý¿âÖÐÌí¼Ó¡¢Ð޸ĺÍɾ³ýÊý¾Ý£¬Ó¦¸Ã˵ʵÏÖÆðÀ´ºÜ¼òµ¥£¬²»¹ýÕýÊÇÒòΪ¼òµ¥£¬Ê¹µÃÔ­ÓÐϵͳÏԵúÜÄÑά»¤£¬¼òµ¥ÀàËÆµÄ²Ù×÷ÓÐ20¶à¸ö²»Í¬µÄÒ³Ãæ£¬Ã¿¸öÒ³Ãæ ......

php smarty»ù±¾Ê¹ÓÃ

1.»ù±¾Àà
//smarty_config.php
<?php
define('TEMPLATE_DIR','templates/');
define('COMPILE_DIR','templates_c/');
define('CONFIG_DIR','configs/');
define('CACHE_DIR','cache/');
?>
//View.class.php
<?php
//ÅäÖÃÎļþ
require_once 'configs/smart_config.php';
//SmartyÀà
require('smarty/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ