windowsÏÂÓëlinuxϵÄ΢СÇø±ð
Õâ¶Î´úÂëÔÚlinuxûÓÐЧ¹û
µ«ÊÇÔÚwidowsÏÂÈ´¿ÉÒÔÓÐЧ
posts.php
<?php
echo "<a href="\" mce_href="\""gov.php?action=logout\">logout</a>";
?>
---------------
gov.php
<?php
if($action=='logout')
{
session_unset();
session_destroy();
echo "<mce:script language=\"javascript\"><!--
alert('zhuxiao'); location.href=\"index.php\";
// --></mce:script>";
}
?>
Ïà¹ØÎĵµ£º
¼¸ºõÿ¸ölinuxÇý¶¯¶¼Óиömodule_init¡£Ã»´í£¬Çý¶¯µÄ¼ÓÔؾͿ¿Ëü¡£ÏÈÀ´·ÖÎöÒ»ÏÂmodule_init¡£¶¨ÒåÈçÏ£º
#define module_init(x) __initcall(x); //include\linux\init.h
#define ......
1.ɾ³ýÎļþ¼ÐÓãºrmdir Îļþ¼ÐÃû
µ«ÊÇrmdir²»ÄÜɾ³ý·Ç¿ÕµÄÎļþ¼Ð£¬ÄÇÈçºÎɾ³ý·Ç¿ÕÎļþ¼ÐÄØ£º
2.ͨ³£Çé¿öÏ£¬É¾³ýÎļþÓãºrm ÎļþÃû
-d»ò--directory ¡¡Ö±½Ó°ÑÓûɾ³ýµÄĿ¼µÄÓ²Á¬½ÓÊý¾Ýɾ³É0£¬É¾³ý¸ÃĿ¼¡£
¡¡-f»ò--force ¡¡Ç¿ÖÆɾ³ýÎļþ»òĿ¼¡£
¡¡-i»ò--interactive ......
linuxÏ°²×°ÐÂÓ²Å̲¢¼ÓÔØʹÓÃÊÖ¼Ç
================================================================================
Ò»¡¢¹ý³Ì²½Öè
1¡¢#kudzu //¼ì²âÐÂÓ ......
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include <time.h>
#include <unistd.h>
#include <signal.h>
static char *runStatusFile = "/syscfg/etc/runStatusFile";
FILE *pFile = NUL ......