phpɾ³ýÎļþ
ÈçºÎÓÃphpɾ³ýÎļþÄØ£¿
phpÖÐÓиöº¯Êý½Ð×÷unlink¡£Ö»ÒªÒ»¸ö²ÎÊý£¬±íʾÎļþ·¾¶¾ÍÐÐÁË¡£
bool unlink ( string filename)
³É¹¦É¾³ý·µ»ØÕ棬·ñÔò·µ»Ø¼Ù¡£
Õâ´ÎÎÒÔÚÏîÄ¿ÖУ¬ÐèÒªÓõ½É¾³ýÎļþ²Ù×÷¡£ÎªÁËÍêÃÀµÄ²Ù×÷£¬Ê×ÏÈÒªÅжÏÒ»ÏÂÕâ¸ö·¾¶µÄÎļþÊÇ·ñ´æÔÚ£¬ÓÃfile_existsº¯Êý¡£ÈçÈô´æÔÚ£¬Ôòȥɾ³ýÎļþ¡£¾ßÌå´úÂëÈçÏ£º
if(file_exists($aurls[$i])){
unlink($aurls[$i]);
}
ÆäÖÐ$aurl[$i]Ò»¿´¾ÍÖªµÀÊÇÔÚÑ»·ÖеÄÒ»¸öÊý×é¡£¹þ¹þ£¬Ã»´í£¬ÎÒ½«ËùҪɾ³ýµÄ¶à¸öÎļþµÄ·¾¶´æµ½Ò»¸öÊý×éÖУ¬È»ºó±éÀú¡£Èç¹ûÎļþ´æÔÚÄØ£¬¾Íɾ³ýÖ®¡£ÎªÁ˸üÓгɾ͸У¬ÎÒÔÚǰºó¼ÓÁËÁ½¾ä»°£¬±ä³ÉÁËÕâÑù£º
echo "ÕýÔÚɾ³ý".$aurls[$i]."……<br />";
if(file_exists($aurls[$i])){
unlink($aurls[$i]);
}
echo "³É¹¦É¾³ý".$aurls[$i]."<hr />";
ÕâÑù½á¹û¾ÍºÃ¿´ÁË£¬ÄÜÃ÷È·µØ¿´µ½³ÌÐòÖ´Ðнá¹û¡£
Ïà¹ØÎĵµ£º
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 ......
×î½üÐÂÂòÁ˸öµçÄÔ£¬ÏµÍ³ÊÇwindows7£¬window7ÔÚ½çÃæ£¬¹¦ÄÜ·½Ã涼ͦÈÃÈËÂúÒâµÄ£¬¸Ð¾õºÜˬ£¬²»Ë¬µÄÊÇÓÖÒªÖØÐ°²×°»·¾³ÁË¡£
ËùÓÐÈí¼þ¾ù°²×°ÔÚF:\server\ÏÂ
apacheĿ¼£ºF:\server\apache2.2
phpĿ¼£ºF:\server\php
msyqlĿ¼£ºF:\server\mysql
Ò»¡¢°²×°apache
°²×°apacheµÄ°æ±¾ÊÇ£ºhttpd-2.2.15-win32-x86-no_ssl.msi
° ......
Ïл°ÉÙ˵,ÏȽ«ËüÃÇ´ò°ü³ÉÒ»¸öÎļþ¾Í½Ðfun.php°É
< ?php
function passport_encrypt($txt, $key) {
srand((double)microtime() * 1000000);
$encrypt_key = md5(rand(0, 32000));
$ctr = 0;
$tmp = ''; ......
ÏÖÔÚphpÓкܶ࿪·¢¿ò¼Ü£¬±ÈÈçzendµÄzendframe——Ò»¸öЧÂʺܵͣ¬µ«ÍþÁ¦ºÜ´óµÄ¾ÞÈË£¬symfony——Ò»¸öÊÊÓôóÐÍÓ¦ÓÃÈ´Ìå»ýÇáÇɵİïÊÖ£¬cakephp£¬codelgniter£¬thinkphp£¬fleaPHPµÈµÈÓÅÐã×÷Æ·¡£
Ò²ÐíÒòΪÕâ¸öÔÒò£¬phpºÜÄѳÉΪÖ÷Á÷¡£Ñ¡Ôñ¶àÁË·´¶ø²»ÖªµÀÑ¡ÔñÄĸöºÃ¡£²»ÏñjavaÓÐͳһµÄÖ÷Á÷¿ò¼Ü£¬Äã¿ÉÒÔÑ¡Ôñe ......
½ñÌì×°Á˸öBerkeley 5.0.21½øÐвâÊÔ¡£
˳Àû±àÒëÁË×Ô´øµÄphp_db4Ä£¿éºó£¬½øÐвâÊÔ¡£·¢ÏÖdel²Ù×÷±¨´í£º
illegal flag specified to DB->del
<?php
dl('db4.so');
$db = new Db4();
$db->open(null, 'info.db', 'info');
$db->put('key', 'value');
var_dump($db->del('key'));
$db->close();
$db ......