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

PHPÓÃÓʼþÈ¡»ØÍü¼ÇÃÜÂ빦ÄÜ£¿

wangjimima.php
<form id="form1" name="form1" method="post" action="mailto.php" onSubmit="return CheckForm()">
<input name="username" type="text" class="in" id="username" size="30" onmouseover="fEvent('mouseover',this)" onfocus="fEvent('focus',this)" onblur="fEvent('blur',this)" onmouseout="fEvent('mouseout',this)" />
<input type="submit" name="Submit" style="background:url(images/bo2.jpg); height:36px; width:113px; border:none; font-size:14px; font-weight:bold; color:#FFFFFF" value=" È·¶¨ÕÒ»Ø " />
</form>
mailto.php
<?php
require_once ('conn.php');
require_once ("mailclass.php");
$username = trim($_POST['username']);
$sql="select username,email,password from member where username='$username'";
$query=mysql_query($sql,$conn);
$num=mysql_num_rows($query);
$userinfo=mysql_fetch_array($query);
if($num<=0){
echo "<mce:script type="text/javascript"><!--
alert('Óû§Ãû²»´æÔÚ£¡');history.back(-1);
// --></mce:script>";
exit;
}else{
$user_name = $userinfo['username'];
$password = $userinfo['password'];
$user_email = $userinfo['email'];
$x = md5($username.'+'.$password);
$string = base64_encode($username.".".$x);
$smtpserver = "smtp.126.com";//SMTP·þÎñÆ÷
$smtpserverport =25;//SMTP·þÎñÆ÷¶Ë¿Ú
$smtpusermail = "robert1120@126.com";//SMTP·þÎñÆ÷µÄÓû§ÓÊÏä
$smtpemailto =$user_email;//·¢Ë͸øË­
$smtpuser = "robert1120@126.com";//SMTP·þÎñÆ÷µÄÓû§ÕʺÅ
$smtppass = "daniel938292525";//SMTP·þÎñÆ÷µÄÓû§ÃÜÂë
$mailsubject = "[ÒÚÍ¢--ÐÂÄÜÔ´ ÐÂÖÇÄÜ] È¡»ØÃÜÂëÓʼþ ";//ÓʼþÖ÷Ìâ
$mailbody = "×ð¾´µÄ".$username."ÏÈÉú/Ůʿ£º<br />    È¡»ØÃÜÂëÓʼþ<br />Çëµã»÷ÏÂÃæµÄÁ´½Ó£¬°´Á÷³Ì½øÐÐÃÜÂëÖØÉè¡£<a href="http://localhost/in-te/resetUserPass.php?p=".$string."" mce_href="http://localhost/in-te/resetUserPass.php?p=".$string."">http://localhost/in-te/resetUserPass.php?p=".$string."</a><br>(Èç¹ûÉÏÃæ²»ÊÇÁ´½ÓÐÎʽ£¬Ç뽫µØÖ·ÊÖ¹¤Õ³Ìùµ½ä¯ÀÀÆ÷µØÖ·À¸ÔÙ·ÃÎÊ)
ÉÏÃæµÄÒ³Ãæ´ò¿ªºó£¬ÊäÈëеÄÃÜÂëºóÌá½


Ïà¹ØÎĵµ£º

phpÖÐ__FILE__³£Á¿Ó÷¨¼ò½é

1.phpÖеÄ__FILE__³£Á¿·µ»ØÎļþµÄÍêÕû·¾¶ºÍÎļþÃû.
2.dirname(__FILE___) º¯Êý·µ»ØµÄÊǽű¾ËùÔÚÔڵķ¾¶¡£
±ÈÈçÎļþ b.php °üº¬ÈçÏÂÄÚÈÝ£º
<?php
$basedir = dirname(__FILE__);
?>
Èç¹ûb.php±»ÆäËûĿ¼ÀïµÄa.phpÎļþrequire »òÕß include È¥ÒýÓõĻ°¡£
±äÁ¿?$basedir µÄÄÚÈÝ»¹ÊÇb.phpËùÔÚµÄÄǸöÎļþ¼Ð ......

½â¾öPHP file_exists º¯Êý²»Ö§³ÖÖÐÎÄÎļþ

½ñÌìÏëʹÓÃÕâÒ»¾äphpÀ´ÅжÏÒ»¸öÎļþÊÇ·ñ´æÔÚ£º echo is_file('/var/downloads/donkey/incoming/[µ±µØÇòֹͣת¶¯].The.Day.The.Earth.Stood.Still.DVDRip.XviD-DMT.avi')?"true":"false"; 
echo is_file('/var/downloads/donkey/incoming/[µ±µØÇòֹͣת¶¯].The.Day.The.Earth.Stood.Still.DVDRip.XviD-DMT.avi')?"t ......

ASP¡¢JSPÓëPHP Äã»áÑ¡Ë­

 Ä¿Ç°£¬×î³£ÓõÄÈýÖÖ¶¯Ì¬ÍøÒ³ÓïÑÔÓÐASP(Active   Server   Pages),JSP(Java   Server   Pages),  
  PHP   (Hypertext   Preprocessor)¡£    
   
  ¼ò   ½é    
   
  ¡¡¡¡ASPÈ«ÃûActive   Server & ......

PHP ¶àÓïÑÔÍøÕ¾½â¾ö·½°¸

Ç°ÑÔ£º
¡¡¡¡¶àÓïÑÔÍøÕ¾¿ª·¢£¬ÖصãµÄ»¹ÊÇÔÚ½â¾öÓïÑÔÖ®¼äµÄÎÊÌâ¡£
¡¡¡¡ÄÇÈçºÎ½â¾öÕâ¸öÎÊÌâÄØ?´ó¸Å¾Í·ÖÈý²½×ߣº
¡¡¡¡1.Ò³Ãæ¶àÓïÑÔ
¡¡¡¡2.Êý¾Ý¿â¶àÓïÑÔ
¡¡¡¡3.Óû§·ÃÎÊÓïÑÔͳһ
¡¡¡¡1.Ò³Ãæ¶àÓïÑÔ
¡¡¡¡ÐèÒª¿¼ÂǵÄÎÊÌ⣺
¡¡¡¡A.Óû§µÇ½ʱºò£¬×Ô¶¯Ê¶±ð×Ö·û£¬µ÷Óò»Í¬µÄÓïÑÔ°ü?
¡¡¡¡B.Óû§Çл»²»Í¬ÓïÑÔʱºò£¬µ÷Óò»Í¬µÄÓï ......

PHPͨ¹ýgettextʵÏÖ¶àÓïÑÔ¹ú¼Ê»¯Ö§³Ö

֮ǰPHPʵÏÖ¶àÓïÑÔ¹ú¼Ê»¯£¬´ó²¿·Ö¶¼»á²ÉÓðÑÓïÑÔÖ±½ÓÌá³öÀ´×÷ΪÊý×éÀ´µ÷Óã¬ÀýÈç±È½ÏÓÐÃûphpMyadmin£¬discuzµÈÖªÃû¿ªÔ´ÏµÍ³£¬²»¹ý£¬ÕâÀï½éÉÜÈçºÎͨ¹ýgettext£¬¼´ÓÃ×ÊÔ´ÎļþÀ´ÊµÏÖ¡£µäÐ͵ÄCMS°¸Àý-wordpressÒ²ÊÇͨ¹ýËüʵÏÖµÄÓïÑÔ¹ú¼Ê»¯£¬ÏÂÃæÀ´ËµÏÂphpÖÐÈçºÎÀ´ÀûÓÃÅäÖÃÎļþʵÏÖ¹ú¼Ê»¯µÄ¡£
Ê×ÏȽéÉÜÏÂ.MOÎļþ£¬ÔÚPHPÖÐÊÇÀûÓà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ