Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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²éѯÏÔʾSqlServerÖеÄÖÐÎÄ

ÒòΪ¹¤×÷ÐèÒª£¬Êý¾Ý¿âʹÓõÄMS SQL Server2005£¬¶øÄ¬ÈϵÄÅÅÐò¹æÔòÊÇSQL_Latin1_General_CP1_CI_AS¡£´´½¨ÁËÒ»¸ö±í£¬ÒòΪÐèÒª´æ´¢ÖÐÎÄÐÅÏ¢£¬Address×ֶεÄÀàÐÍÊÇnvarchar(255)¡£
´ËʱʹÓÃphpÀ´Á¬½Ósql server£¬Ò³ÃæµÄ±àÂëºÍÎļþµÄ±àÂë¶¼ÊÇUTF-8£¬²éѯ´ËAddress×ֶΣ¬ÏÔʾÔÚÒ³ÃæÉÏÊÇ???Ö®ÀàµÄ¡£Ôõô½â¾ö£¿
ʹÓÃ
iconv('iso- ......

PHPÖеij£ÓõÄ25¸öMYSQLº¯Êý


1¡¢mysql_connect()-½¨Á¢Êý¾Ý¿âÁ¬½Ó
¸ñʽ£º
resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]])
Àý£º
$conn = @mysql_connect(”localhost”, “username”, “password”) or dir(”²»ÄÜÁ¬½Óµ½Mysql Server” ......

½â¾ö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 ......

PHP²åÈëÊý¾Ý¿â´úÂ룬±à¼­£¬É¾³ý

²åÈë´úÂë
 <?
$action=$_GET['action'];
switch($action){
//Ìí¼Ó¼Ç¼
case"add";
$mail = trim(htmlspecialchars($_POST["mail"]));
$username = trim(htmlspecialchars($_POST["username"]));
$tel = trim(htmlspecialchars($_POST["tel"]));
$fax = trim(htmlspecialchars($_POST["fax"]));
$c ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ