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

PHPѧϰ

 Ç°¼¸ÌìÔÚѧϰPHPµÄʱºò×öÁËÒ»¸ö¼òµ¥µÄÊý¾ÝÔöɾ¸ÄµÄ³ÌÐò£¬ÓÉÓÚ×Ô¼ºÊǵÚÒ»´Î½Ó´¥PHPËùÒÔÔÚÐí¶àµØ·½×öµÄ²»µ½Î»£¬¸Ð¾õºÜǣǿ£¬µ«ÊDZϾ¹ÊÇ»¨ÁËʱ¼äµÄ£¬ËùÒÔÏÖÔÚÌù³öÀ´¡£
1.Íê³ÉÔöɾ²é¸ÄµÄÖ÷Ò³Ãæ£ºconnsql.php
 <h1>Data Insert Delete Update</h1>
<?php
    //»ñµÃÊý¾Ý¿âÁ¬½Ó
    require("connectionDB.php");
    // ´Ó±íÖÐÌáÈ¡ÐÅÏ¢µÄsqlÓï¾ä
    $strsql="select * from personal_info";
    // Ö´ÐÐsql²éѯ
    $result=mysql_db_query($mysql_database, $strsql, $conn);
    // »ñÈ¡²éѯ½á¹û
    $row=mysql_fetch_row($result);
    
    echo '<font face="verdana">';
    echo '<table border="1" cellpadding="1" cellspacing="2">';
    // ÏÔʾ×Ö¶ÎÃû³Æ
    echo "\n<tr>\n";
    for ($i=0; $i<mysql_num_fields($result); $i++)
    {
      echo '<td bgcolor="#EEFFFF"><b>'.
      mysql_field_name($result, $i);
      echo "</b></td>\n";
    }
    //ɾ³ý
       echo '<td bgcolor="#EEFFFF">';
       echo "delete";
       echo '</td>';
       //ÐÞ¸Ä
       echo '<td bgcolor="#EEFFFF">';
       echo "update";
       echo '</td>';
    echo "</tr>\n";
    // ¶¨Î»µ½µÚÒ»Ìõ¼Ç¼
    mysql_data_seek($result, 0);
    // Ñ­»·È¡³ö¼Ç¼
    while ($row=mysql_fetch_row($result))
    {
      echo "<tr>\n";
      for ($i=0; $i<mysql_num_fields($result); $i++ )
      {
      


Ïà¹ØÎĵµ£º

¹ØÓÚPHPÖеÄ·¾¶ÎÊÌâ

1¡¢Ê¹Óþø¶Ô·¾¶°üº¬Îļþ
    ÔÚÿ´Î¶ÔÎļþµÄ°üº¬ÖУ¬¶¼Ê¹ÓÃϵͳ¾ø¶Ô·¾¶½øÐаüº¬£¬±ÈÈç require('/var/www/html/inc/test.inc')£»µÄ·½Ê½£¬ÔÚËùÓÐÎļþÖж¼ÕâÑù°üº¬¾Í¿ÉÒÔ±ÜÃâ¶à¼¶°üº¬³öÏÖµÄÎÊÌ⣬µ«ÊÇÕâÖз½Ê½²»Áé»î£¬ÏµÍ³¿ÉÒÆÖ²ÐÔ¼«²î£¬½¨Òé²»²ÉÓá£
2¡¢ÔÚÒ»¸ö¹«ÓÃÎļþÖж¨Ò幫ÓÃÎļþµÄÁÐ±í£¬½«¸÷¸ö¹«ÓÃÎļþµÄ ......

php list·½·¨µÄÃîÓÃ

Ò»¸ö¼òµ¥µÄÀý×Ó¶ÁÈ¡CSVÎļþ£º
<?php
$handle=fopen("test.csv","r");
echo "<table border=2>";
//ÅäºÏwhileÑ­»·¶ÁÈ¡Îļþ
while($data=fgetcsv($handle,1024))
{
list($user,$pwd,$partment,$title)=$data;
echo "<tr>
<td>$user</td>
<td>$pwd< ......

¹ØÓÚPHPµÄ¼¸µãÎÊÌâ¼°½â¾ö·½·¨

1.ÅäÖÃIISϵÄPHP»·¾³
ÎÒÓõÄÊÇWindows server 2003+IIS 6.0+PHP,µ«¸Õ¿ªÊ¼ÓõÄPHP5.3£¬°´ÕÕÍøÉϵķ½·¨http://www.gzu521.com/campus/article/network/200902/182924.htmÒ»²½²½ÅäÖ㬵«Êǽá¹ûÔËÐгöÏÖÁËÒ»¸öÎÊÌ⣬¾ÍÊÇThe FastCGI Handler was unable to process the request.ÕÒÁ˺ܶà½â¾ö·½·¨µ«ÊÇ»¹ÊÇûÓнâ¾ö£¬×îºóÎÒ»»³É ......

ÄãÊÇÓÅÐãµÄPHP³ÌÐòÔ±Âð£¿

    ÓÅÐãµÄPHP´úÂëÓ¦¸ÃÊǽṹ»¯µÄ¡£´ó¶ÎµÄ´úÂëÓ¦¸Ã±»·Ö¸îÕûÀí³ÉÒ»¸ö¸öº¯Êý»ò·½·¨£¬¶øÄÇЩ²»ÆðÑÛµÄС¶Î´úÂëÔòÓ¦¸Ã¼ÓÉÏ×¢ÊÍ£¬ÒÔ±ãÈÕºóÇå³þËüÃǵÄÓÃ;¡£
¶øÇÒÓ¦¸Ã¾¡¿ÉÄܵذÑǰ̨´úÂëÈçHTML¡¢CSS¡¢JavascriptµÈ´Ó³ÌÐòÖзÖÀë³öÀ´¡£PHPµÄÃæÏò¶ÔÏó±à³ÌÌØÐÔ¿ÉÒԺܺõذïÖú³ÌÐòÔ±½«´úÂëÕûÀíÓÐ
Ðò¡£
  &n ......

ÓйØphp·ûºÅµÄ³õ²½×ܽá

PhpµÄ½Å±¾¿éÓйصķûºÅ£º
1,XML·ç¸ñ£ºÅ£È˼«¶ÈÍÆ¼öµÄÓ÷¨<?php …?>¡£
2,¼ò¶Ì·ç¸ñ:<?...?>×î¼òµ¥£¬×ñÑ­SGML(±ê׼ͨÓñê¼ÇÓïÑÔ)´¦Àí˵Ã÷µÄ·ç¸ñ¡£ÒªÏëÓÃËü£¬Ò»¶¨Òª¿ªÆôshort_open_tagÑ¡Ï»òÕ߯ôÓö̱ê¼ÇµÄÑ¡Ïî±àÒëphp¡£(³õѧÕß¿´ÕÅÀÏʦÊÓÆµÊ±£¬¾ÍÈÝÒ×·¸Ã»ÓпªÆô¶Ì±ê¼ÇµÄ´íÎó¡£¹úÍâÅ£È˲»ÍƼö£¬µ«ÏÖÔÚ¹ú ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ