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

php Mod rewrite test

In the directory where you plan to install Elgg, do the following:
Create the file .htaccess and add these two lines
RewriteEngine on
RewriteRule ^testing.php$ modrewrite.php
This tells the webserver to load modrewrite.php when testing.php is
requested.
In order to get this test to work on some virtual servers, you
may need to add:
RewriteBase /
prior to the RewriteRule line.
Create the file modrewrite.php with this line
<?php echo "mod_rewrite works"; ?>
Create the file testing.php with this line
<?php echo "mod_rewrite does not work"; ?>
Now use your web browser to load testing.php. The text that shows will
tell you whether mod_rewrite is working


Ïà¹ØÎĵµ£º

PHPÖÐÄÚ²¿º¯ÊýʹÓ÷½·¨

<?php
 
 
  //»ñµÃϵͳʱ¼äº¯Êý(×¢Òâ²ÎÊýÖдóдY´ú±íÍêÕûÄê·Ý£¬Ð¡Ð´y´ú±íÄê·Ý¼òд)
  $sum = date("Y-m-d");
  $sum1 = date("y-m-d");
 
  echo "$sum<br/>";
  echo "$sum1<br/>";
 
  //md5¼ÓÃܺ¯Êý
  $pass = md5("ÕÅÈý");
  ......

PHP³öÏÖWarning:Illegal offset type in

Warning
: Illegal offset type in
Warning
: Illegal offset type in isset or
empty in
ǰ¼¸Ììд³ÌÐòµÄʱºòÅöµ½Ò»¸öÕâÖÖ´íÎóÌáʾ
Èç¹ûÄãʹÓÃÕâÑùµÄ±íʾ·½·¨ÈçÏ£º
$arr = array();
class a
{
}
$o = new a;
echo $arr[$o];
¾Í»á³öÏÖÉÏÃæµÄ´íÎóÌáʾ£¬ÒòΪ²»ÄÜʹÓÃʵÀý»¯µÄ¶ÔÏóÀ´×÷ΪÊý×éµÄË÷Òý£¬»òÕßÔÚʹÓÃi ......

ÈÃPHP¿ª·¢Õßʰ빦±¶µÄÊ®´ó¼¼ÇÉ

Èç¹ûÄãʹÓÃÒ»Ãæ´ó¾µ×Ó×÷Ϊ³åÀ˰å»á·¢Éúʲô£¿»òÐíÄã»áÔڽ϶̵Äʱ¼äÄÚÕ÷·þº£ÀË£¬µ«ÊÇÄã¿Ï¶¨´ÓÄÚÐÄÉî´¦Ã÷°×£¬Õâ²»ÊdzåÀ˵ÄÕýÈ·Ñ¡Ôñ¡£Í¬ÑùµÄµÀÀíÒ²ÊÊÓÃÓÚPHP±à³Ì£¬¾¡¹ÜÕâÑùµÄÀà±ÈÌýÆðÀ´ÓÐһЩ¹Å¹Ö¡£ÎÒÃǾ­³£Ìýµ½ÓÐÈËÊÔͼÓÃÒ»¸öÖÜÄ©¶àµãµÄʱ¼äÀ´Ñ§»áPHP£¬µ«ÊÇÇëË¡ÎÒÖ±ÑÔ£¬ÕâÊÇѧϰÕâÃűà³ÌÓïÑÔµÄÒ»Öַdz£Ôã¸âµÄ·½Ê½¡£
ΪºÎ资 ......

PHP rsyncÃüÁî½éÉÜ

rsync ÊÇÒ»¿î¸ßЧµÄÔ¶³ÌÊý¾Ý±¸·ÝºÍ¾µÏ󹤾ߣ¬¿É¿ìËÙµØÍ¬²½¶ą̀Ö÷»ú¼äµÄÎļþ£¬Æä¾ßÓÐÈçÏÂÌØÐÔ£º
Ö§³ÖÁ´½Ó¡¢ËùÓÐÕß¡¢×éÐÅÏ¢ÒÔ¼°È¨ÏÞÐÅÏ¢µÄ¿½±´£»
ͨ¹ýÔ¶³Ì shell£¨ssh, rsh£©½øÐд«Ê䣻
ÎÞÐëÌØÊâȨÏÞ¼´¿É°²×°Ê¹Óã»
Á÷Ë®ÏßʽÎļþ´«Êäģʽ£¬Îļþ´«ÊäЧÂʸߣ»
Ö§³ÖÄäÃû²Ù×÷£»
ͨ¹ýÔ¶³Ì shell ·½Ê½£º
rsync [OPTION] [USE ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ