PHPѧϰ±Ê¼Ç
½ñÌ쿪ʼѧϰPHP£¬¸Ð¾õ¿´¹ý¾ÍÍüÁË£¬É¶¶¼Áô²»Ï±ȽÏÒź¶£¬¾Í±ß¿´±ß×ܽáÁË£¬·½±ã×Ô¼ºÒÔºó¿´£¬Ò²·½±ã±ðÈË¿ìËÙÈëÃÅ£¬»òÕß¿ìËÙ¸´Ï°°É(awen)¡£
µÚÒ»²¿·Ö ´î½¨Æ½Ì¨
1. ¿ÉÒÔÏÂÔØÒ»¸öphp for windows iis °æ±¾ ×îÊ¡¾¢£¬Ö±½Ó°²×°ºó×Ô¶¯Éý¼¶iisʹÆäÖ§³Öphp¹¦ÄÜ¡£
2. ÏÂÔØÒ»¸öphpstudy Èí¼þ £¬¿ÉÒÔÖ§³Öphp iis ģʽ ºÍphp Apache ģʽ¡£°²×°ºó×Ô¶¯°²×°PHP£¬mysqlÊý¾Ý¿â£¬phpmyadmin£¬openssl£¬zendoptimizer £¬ eAccelerator£¬Éµ¹Ïʽ½çÃæÉèÖá£
3. ×Ô¼ºÏÂÔØphp,mysql,apenche,×Ô¼º°²×°ÅäÖã¬ÍøÉϽ̳ÌÒ»´ó¶Ñ×Ô¼ºÈ¥²é¡£
ÒÔÉÏÈýÖÖ·½·¨Ëæ±ãÑ¡¡£
µÚ¶þ²¿·ÖPHPÓïÑÔ»ù´¡
1. ×é³É£ºmysql £¬ php£¬Apache¡£mysqlÓëApache×é³ÉµÄphp·þÎñÆ÷µÄºÃ´¦ÔÚÓÚ¿çƽ̨¡£
2. php»ù±¾Óï·¨ <?php …… ?>»òÕß <script language=“php”></script>¡£
×¢ÊÍ¿ÉÒÔÓÃ:// »òÕß /*……..*/»òÕßunix shellµÄ#
3. phpµÄ±äÁ¿´óСдÃô¸Ð£¬º¯Êý´óСд²»Ãô¸Ð¡£
4. Êý¾ÝÀàÐÍ
integer£¬float£¨double»òreal£©£¬Boolean£¬string£¬array£¬objectÒÔ¼°Ò»Ð©Î±Êý¾ÝÀàÐÍ¡£
5. arrayÊý×é
ÀàËÆÓÚö¾Ù£¬ÓÖÀàËÆÓÚjsonÊý¾Ý£¬ÆäʵËûÊÇÒ»¸öÊý¾Ý½á¹¹£¬ÆäÊý¾ÝID¼È¿ÉÒÔÊÇĬÈϵÄ0,1,2,3….Ò²¿ÉÒÔÊÇ×Ö·û´®,Èç:
ExampleA: $arra=array(1,2,3,”ok”,10.1);
ExampleB: $arrb=array(
“name”=>“zhang wen”,
“age”=>27,
“sex”=>“man”
);
ExampleC: $arrc=array(
“zhangwen”=>array(
“age”=>27,
&
Ïà¹ØÎĵµ£º
ϵͳ¼°Èí¼þ°æ±¾
FreeBSD 7.3
Apache-2.2.14-5[ 1.3.42£¨Unix£©]
PHP-5.2.12
MySQL-5.0.90
Freebsdͨ¹ýport°²×°nginx
Nginx ("engine x") ÊÇÒ»¸ö¸ßÐÔÄÜµÄ HTTP ºÍ·´Ïò´úÀí·þÎñÆ÷£¬Ò²ÊÇÒ»¸ö IMAP/POP3/SMTP ´úÀí·þÎñÆ÷¡£ Nginx ÊÇÓÉ Igor Sysoev Ϊ¶íÂÞ˹·ÃÎÊÁ¿µÚ¶þµÄ Rambler.ru Õ¾µã¿ª·¢µÄ£¬ËüÒѾÔÚ¸ÃÕ¾µãÔËÐг¬¹ýÁ½ ......
php½Ì³Ì mysql½Ì³Ì_connect Óëmysql_pconnectº¯ÊýÓëʵÀý½Ì³Ì
mysql_connect
mysql_connect($this->root,$this->user,$this->pass)
/*
mysql_connect ,µ¥¸ö·´ÎÊÓû§²»»áƵ·±µÄµ÷ÓÃÊý¾Ý¿â½Ì³Ì£¬Ã»±ØÒª±£³ÖÁ¬½Ó£¬¶øÇÒmysqlµÄÁ¬½ÓÊýÒ²ÊÇÓÐÏÞÖƵģ¬ ʹÓà ¼°Ê±·ÃÎʱȽÏƵ·±£¬Ò²×îºÃʹÓÃmysql_connect£¬ÕâÑùÊ¹Ó ......
dz̸PHPÓï·¨(1)
¡¡¡¡ÔÚÄãѧ¹ý»ù±¾µÄHTMLÓï·¨,¾Í¿ÉÒÔ±à³öÒ»¸ö¾²Ì¬µÄWebÒ³£¬¿É¶¯Ì¬½»»¥ÐÅÏ¢ÊǺÜÖØÒªµÄ¡£ÈçһЩÍøÕ¾µÄ»áÔ±ÖƵĻáÔ±×¢²á¡¢µÇ¼¶¼Ðèºó¶Ë³ÌÐòµÄÔËÐС£ºÜ¶àÍøÕ¾ËùÓõÄCGI³ÌÐòÖ÷ÒªÓÃPerl¡¢ASP¡¢Java¡¢PHP±àд£¬¶øÎÒÃÇÏÖÔÚËùÒªÓõľÍÊÇPHP¡£ËüÊÇÍêÈ«Ãâ·ÑµÄ£¬Õâ¾ÍÒª¸ÐлÄÇЩĬĬÎÞÎŵıà³ÌÈËÔ±ÁË¡£PHPµÄ½á¹¹ÀàËÆÓÚ£ ......
ÓÃPHP±à³Ì£¬Ê¹Óûñȡʱ¼äµÄ´úÂ룬µ«ÊÇ»ñÈ¡µ½µÄʱ¼ä×ÜÊDZȵ±Ç°Ê±¼äÔç8¸öСʱ£¬°Ù˼²»µÃÆä½â£¬ÔÚÍøÉÏËÑË÷ÁËÏ£¬ÖÕÓÚÕÒµ½Á˽â¾ö°ì·¨£¬ÔÀ´ÊÇʱÇøÉèÖÃÎÊÌâ¡£ ½â¾ö°ì·¨Ò»£º ÔÚphp.iniÀïÉèÖà date.timezone = ʱÇø ½â¾ö°ì·¨¶þ£º ²»ÓÃÐÞ¸Äphp.inÎļþ£¬Ö±½ÓÔÚ»ñȡʱ¼äµÄ´úÂëÇ°Ãæ¼ÓÉÏ£º date_default_timezone_set('ʱÇø'); ±ÈÈ ......