jsÈçºÎ»ñÈ¡µ½PHPÀïµÄ±äÁ¿»òsession
±¾È˸սӴ¥PHP,ÍêÈ«²»´ó¶®µÄ,ÔÚPHPÒ³ÃæÓбäÁ¿$fID; $_SESSION['mid']
ÏÖÔÚJSÀïÒªÅжÏÊÇ·ñ´æÔڴ˱äÁ¿$fID; »òÊÇ·ñ´æÔÚ$_SESSION['mid']
ÔÚ1.jsÒ³ÃæÀïÕâÑùÅжÏÒ²²»ÐÐ
function showdiv()
{
var kk=<?= $fID ?>;
if(kk)
Çë¸÷λ¸ßÊÖ°ïÎÒ½â¾ö.Íò·Ö¸Ðл!
°Ñvar kk=<?=$fID ?>;·Åµ½º¯ÊýÍâÃæÊÔһϡ£
var kk= <?= $fID ?>;
function showdiv()
{
if(kk)
лл,ÕâÑùÂð,»¹ÊDz»Ðа¡
½«±äÁ¿Öµ¸³¸øÒ»¸öÒþ²ØµÄinput×÷Ϊvalue
È»ºóÔÚdocument.GetElementById´«µ½jsÀï
лл! inputÔÚhtmlÒ³ÃæÄÇÒªÔõô¸³Öµ,ÏÖÔÚÊÇÒªÓÃjsÅжÏhtmlµÄÏÔʾ,¸ù¾Ý±äÁ¿µÄ²»Í¬htmlÒ³ÃæµÄÏÔʾ²»Í¬
ÕâÑùµÄ»°Ö»ÒªÓÃÒ»¸öif¾Í¿ÉÒÔÁË°¡£¡
PHP code:
<?php if(isset($fid)){ ?>
html
<?php }else{?>
html
<?php }?>
ÖмäÒ²¿ÉÒÔдjavascript¡£
jsÖпÉÒÔÖ±½ÓÒýÓñäÁ¿µÄòËÆ£¬
µ±È»ÓÃÂ¥ÉÏÕâÖÖ·½·¨Ò²ÐÐ
.jsÎļþÖÐÓÃphp´úÂëÊÇÐв»Í¨µÄ
Ö»ÓÐͨ¹ý ¼ÓÔØjsÎļþ È¥´«µÝÖµ
<script src='XXX.js'></script>
È»ºó
<script>
showdiv('<?php echo $fID ?>');
</script>
XXX.jsÎļþÖÐ &nb
Ïà¹ØÎÊ´ð£º
ʹÓÃPHPµÄexecº¯Êýµ÷ÓÃlinuxµÄshellÃüÁÈçdateÈ¥ÐÞ¸Äʱ¼ä»òshutdownȥʵÏֹػú/ÖØÆô£¬µ«ÊÇ·µ»ØÖµ¶¼ÊÇʧ°ÜµÄ¡£¾¹ý¶à´ÎÊÔÑ飬È϶¨ÊÇûÓÐȨÏÞµÄÎÊÌâ¡£
ËùÒÔ£¬Ð¡µÜÔÚ´ËÇë½Ì¸÷룬ÈçºÎ²ÅÄÜÉèÖÃȨÏÞ£¬µ÷ÓÃlinux shellà ......
¶Ôphp²»ÊǺÜÁ˽â дÁ˸ö¼òµ¥µÄÀý×Ó
ÏÖÓÃc#µ÷ÓÃphpдµÄ webservice£¨soap WSDL£©iis6.0+php5.2.8
webserviceÈçÏÂ
<?php
class WebService
{
public function Logout()
{
//header('Co ......
²»ÖªµÀÊDz»ÊÇÎÒµÄxamppÓÐÎÊÌ⣬mysqlÊÇͼÐλ¯µÄ£¡
Ò»¸öID×éÔÚÎÒµÄmysqlµÄ±íÀïÃæ 2£¬5£¬8£¬7
µãÁËÅÅÐò£¬È»ºóÓÃPHPÎļþÁ¬½ÓÕâ¸ö±íÏÔʾ±íµÄÐÅϢʱ£¬IDµÄ˳Ðò»¹ÊDz»±ä£¡Ó¦¸ÃÊÇ2£¬5£¬7£¬8µÄ°ÉÉýÐòÅÅÐòºó£¡
ÔÚPHPÎļþÀï ......
ÇëÎÊÏÂÄܲ»ÄÜÔÙwindows϶¨ÆÚÇå¿ÕmysqlÒ»¸ö±íÖеÄÈ«²¿Êý¾Ý£¬ÓÃPHPʵÏÖ£¡
лл¸÷λÁË
¾Í±ÈÈçÒ»¸öÐÇÆÚÇå¿ÕÒ»´Î
±ÈÈçÿ¸öÐÇÆÚÁùÁãµãÇå¿ÕÒ»´Î£¡
ллÁË
¼Æ»®ÈÎÎñ...php....sql...truncate....OK
Äã¾ÍÕâ½ÓÔÚҳà ......