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

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,
                    &


Ïà¹ØÎĵµ£º

PHP°²×°³ÌÐòÖÆ×÷

<?php
header("Content-type:text/html;charset=gb2312"); //¿´ÄãÓõÄÊÇʲô±àÂ룬Ҫ±£³ÖÒ»Ö¡£
$files="config.php"; //ҪдÈëµÄÅäÖÃÎļþ¡£
if(!is_writable($files)){ //ÅжÏÊÇ·ñÓпÉдµÄȨÏÞ£¬linux²Ù×÷ϵͳҪעÒâÕâÒ»µã£¬windows²»±Ø×¢Òâ¡£
echo "<font color=red>Îļþ²»¿Éд</font>";
......

phpÄ£°å¼¼Êõ

Õ¾µã½á¹¹

´úÂë:
Õ¾µã
  ©»includes
       ©»class.inc
  ©Çtemplet
       ©»index.htm
       ©Çlist.htm
       ©»content.htm
  ©Çindex.php
  ©»content.php
¿â½ ......

Ò»¸ö¼òªµÄÖ§³ÖHTTPSµÄPHP CURL·â×°º¯Êý

±êÌâÓе㳤£¬Æäʵ¾ÍÊÇÓÃÀ´Ïòhttps·þÎñÆ÷postÊý¾Ý
function curlPost($url, $data, $timeout = 30)
{
$ssl = substr($url, 0, 8) == "https://" ? TRUE : FALSE;
$ch = curl_init();
$opt = array(
CURLOPT_URL => $url,
CURLOPT_POST => 1,
CURLOPT_ ......

Month of PHP Security Summary

it is 21th of May. The Month of PHP Security
(http://www.php-security.org) is still running and we have reached a
vulnerability count of 40 vulnerabilities, which is nearly as much as we
disclosed during the whole Month of PHP Bugs in 2007. However there are
11 more days until the end of May and ......

PHP ÅÅÐòËã·¨½âÎö

<?
//²åÈëÅÅÐò£¨Ò»Î¬Êý×飩
function insert_sort($arr){
¡¡$count = count($arr);
¡¡for($i=1; $i<$count; $i++){
¡¡¡¡$tmp = $arr[$i];
¡¡¡¡$j = $i - 1;
¡¡¡¡while($arr[$j] > $tmp){
¡¡¡¡¡¡$arr[$j+1] = $arr[$j];
¡¡¡¡¡¡$arr[$j] = $tmp;
¡¡¡¡¡¡$j--;
¡¡¡¡}
¡¡}
¡¡return $arr;
}
¡¡¡¡
//Ñ¡Ô ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ