1.自己有php网站源码怎么知道后台密码
2.求个PHP网页源代码
3.php获得网页源代码抓取网页内容的个个人几种方法?
自己有php网站源码怎么知道后台密码
后台密码配置文件里肯定没有,你只能看看这套源码在登录的人网时候是怎么比对密码的,如果单纯的页源源码MD5的话,你可以建一个PHP测试文件然后MD5一个新的网页北狼潇潇指标源码密码,把这个值替换到数据库里的个个人密码字段。我碰见你的人网这种问题的时候就是这么解决的。
求个PHP网页源代码
下面是页源源码一个远程修改ftp密码的php程序,你交上去,网页一定非常好。个个人
不仅包含有html知识,人网也有js验证,页源源码全民解析网站源码还有php知识。网页如果你今后做网站,个个人这个程序对你也非常实用。人网
<?页源源码PHP
if($_POST['servername']){
function jsalert($w)
{
echo '<script language="javascript">alert("'.$w.'");'."\r\n";
echo 'window.history.go(-1)';
echo '</script>';
}
if(!$_POST['UserName']){ jsalert('Username error');exit;}
if(!($fp=@ftp_connect($_POST['servername'])))
{
jsalert( $_POST['servername'].'server can not connect!');
exit();
}
if(!@ftp_login($fp,情绪类指标源码$_POST['UserName'],$_POST['OldPassWord']))
{
jsalert('Sorry, you entered an incorrect username or password!');
exit();
}
if(@ftp_site($fp,'pswd '.$_POST['OldPassWord'].' '.$_POST['NewPassWord']))
{
jsalert('OK, the password has been successfully changed.');
exit;
}
else
{
jsalert('Failure, may be the FTP server does not support the change。');
exit;
}
}
else{
><html>
<head>
<title>FTP password online tools to change</title>
<script language="JavaScript">
function is_kuho_password(password){
var pattern = /^([a-zA-Z0-9])+$/;
var flag= pattern.test(password);
if(!flag){ return false;}
return true;
}
function passchange(){
var servername = document.passwdchange.servername.value;
var UserName = document.passwdchange.UserName.value;
var OldPassWord = document.passwdchange.OldPassWord.value;
var NewPassWord = document.passwdchange.NewPassWord.value;
var NewPassWord1 = document.passwdchange.NewPassWord1.value;
if(!servername){
alert('Please input domain name or ip');
document.passwdchange.servername.focus();
document.passwdchange.servername.value='';
return false;
}
if(!UserName){
alert('Please input user name');
document.passwdchange.UserName.focus();
document.passwdchange.UserName.value='';
return false;
}
//check PassWord
if(!OldPassWord){
alert('Please input password');
document.passwdchange.OldPassWord.focus();
document.passwdchange.OldPassWord.value='';
return false;
}
if(!NewPassWord){
alert('Please input new password');
document.passwdchange.NewPassWord1.value='';
document.passwdchange.NewPassWord.focus();
document.passwdchange.NewPassWord.value='';
return false;
}
if(!is_kuho_password(NewPassWord)){
alert('Sorry! You do not regulate the new password! Please enter from the 6- letters or numbers in Password!');
document.passwdchange.NewPassWord1.value='';
document.passwdchange.NewPassWord.focus();
document.passwdchange.NewPassWord.value='';
return false;
}
if(NewPassWord.length < 6 || NewPassWord.length > ){
alert('You enter a new password length is not in line with the norms, enter the password 6- bit!');
document.passwdchange.NewPassWord1.value='';
document.passwdchange.NewPassWord.focus();
document.passwdchange.NewPassWord.value='';
return false;
}
if(!NewPassWord1){
alert('Make sure your new password!');
document.passwdchange.NewPassWord1.focus();
document.passwdchange.NewPassWord1.value='';
return false;
}
if(!is_kuho_password(NewPassWord1)){
alert('Sorry! You do not regulate the new password! Please enter from the 6- letters or numbers in Password!');
document.passwdchange.NewPassWord1.focus();
document.passwdchange.NewPassWord1.value='';
return false;
}
if( NewPassWord1.length < 6 || NewPassWord1.length > ){
alert('Sorry! You do not regulate the new password! Please enter from the 6- letters or numbers in Password!');
document.passwdchange.NewPassWord1.focus();
document.passwdchange.NewPassWord1.value='';
return false;
}
if(NewPassWord != NewPassWord1){
alert('You enter the new password twice inconsistent, please re-enter after the check!');
document.passwdchange.NewPassWord1.value='';
document.passwdchange.NewPassWord.focus();
document.passwdchange.NewPassWord.value='';
return false;
}
if(NewPassWord == OldPassWord){
alert('The new password and the old password, no need to change!');
document.passwdchange.NewPassWord1.value='';
document.passwdchange.NewPassWord.focus();
document.passwdchange.NewPassWord.value='';
return false;
}
document.passwdchange.Submit.value="Being change...";
document.passwdchange.Submit.disabled=true;
}
</SCRIPT>
</head>
<body>
<div align="center">
<center>
<TABLE cellSpacing=1 cellPadding=8 width="" bgColor=# border=0>
<FORM name=passwdchange target="_self" action=<?php echo $_SERVER['PHP_SELF']; ?> onsubmit="return passchange()" method=post>
<TBODY>
<tr>
<TD align=center bgColor=#FFFFFF colspan="2"><font color="#FF"><b>
FTP password online tools to change</b></font></TD>
</tr>
<tr>
<TD align=right bgColor=#d6d3d6 width="">Sever name:</TD>
<TD align=left bgColor=#ffffff width=""><INPUT style="BORDER-RIGHT: 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: 1px solid; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; BORDER-LEFT: 1px solid; COLOR: #; PADDING-TOP: 1px; BORDER-BOTTOM: 1px solid; BACKGROUND-COLOR: #ffffff"
maxLength= name=servername size=""><FONT class=color1> <font color="#FF">
* Domain name or IP address</font></FONT></TD>
</tr>
<TR height=>
<TD align=right bgColor=#d6d3d6 width="">User name:</TD>
<TD align=left bgColor=#ffffff width=""><INPUT
style="BORDER-RIGHT: 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: 1px solid; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; BORDER-LEFT: 1px solid; COLOR: #; PADDING-TOP: 1px; BORDER-BOTTOM: 1px solid; BACKGROUND-COLOR: #ffffff"
maxLength= name=UserName size=""><FONT class=color1> <font color="#FF">
*</font></FONT></TD></TR>
<TR height=>
<TD align=right bgColor=#d6d3d6 width="">Password:</TD>
<TD align=left bgColor=#ffffff width=""><INPUT
style="BORDER-RIGHT: 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: 1px solid; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; BORDER-LEFT: 1px solid; COLOR: #; PADDING-TOP: 1px; BORDER-BOTTOM: 1px solid; BACKGROUND-COLOR: #ffffff"
type=password maxLength= name=OldPassWord size=""><FONT
class=color1> <font color="#FF">*</font></FONT></TD></TR>
<TR height=>
<TD align=right bgColor=#d6d3d6 width="">New password:</TD>
<TD align=left bgColor=#ffffff width=""><INPUT
style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; BORDER-LEFT: 1px solid; COLOR: #; BORDER-BOTTOM: 1px solid; BACKGROUND-COLOR: #ffffff"
type=password maxLength= name=NewPassWord size=""><FONT
class=color1> <font color="#FF">*</font></FONT> (Length:6-bit) </TD></TR>
<TR height=>
<TD align=right bgColor=#d6d3d6 width="">Replay new password:</TD>
<TD align=left bgColor=#ffffff width=""><INPUT
style="BORDER-RIGHT: 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: 1px solid; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; BORDER-LEFT: 1px solid; COLOR: #; PADDING-TOP: 1px; BORDER-BOTTOM: 1px solid; BACKGROUND-COLOR: #ffffff"
type=password maxLength= name=NewPassWord1 size=""><FONT
class=color1> <font color="#FF">*</font></FONT></TD></TR>
<TR>
<TD class=huangz align=middle bgColor=#ffffff colSpan=2 height= width="">
<p align="center"><INPUT type=submit value=Change name=Submit></p>
</TD></TR></FORM>
</table>
</center>
</div>
</body>
</html>
<?php } ?>
php获得网页源代码抓取网页内容的几种方法?
1、使用file_get_contents获得网页源代码。这个方法最常用,只需要两行代码即可,非常简单方便。重庆自助建站源码2、使用fopen获得网页源代码。这个方法用的人也不少,不过代码有点多。
3、支付对应源码修改使用curl获得网页源代码。使用curl获得网页源代码的做法,往往是需要更高要求的人使用,例如当你需要在抓取网页内容的同时,得到网页header信息,还有ENCODING编码的使,USERAGENT的使用等等。所谓的网页代码,就是指在网页制作过程中需要用到的一些特殊的\"语言\",设计人员通过对这些\"语言\"进行组织编排制作出网页,然后由浏览器对代码进行\"翻译\"后才是我们最终看到的效果。制作网页时常用的代码有HTML,JavaScript,ASP,PHP,CGI等,其中超文本标记语言(标准通用标记语言下的一个应用、外语简称:HTML)是最基础的网页代码。