PHP用户验证和标签推荐的简单使用

前端之家收集整理的这篇文章主要介绍了PHP用户验证和标签推荐的简单使用前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

本文给大家讲解一些最简单的验证知识。大家可以先看下效果图,如果大家感觉还不错,请参考实现代码

效果

bookmark_fns.PHP

PHP;">

data_valid_fns.PHP

PHP;"> $value) { if ((!isset($key)) || ($value == '')) { return false; } } return true; } // Valid email function valid_email($address) { if (ereg('^[a-zA-Z0-9_\.\-]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$',$address)) { return true; }else { return false; } } ?>

db_fns.PHP

PHP;">

user_auth_fns.PHP

PHP;"> query("select * from user where username = '".$username."'"); if (!$results) { throw new Exception("Could not execute query",1); } if ($results -> num_rows > 0) { throw new Exception("That username is taken - go back and choose another one.",1); } $results = $conn -> query("insert into user values ('".$username."',sha1('".$email."'),'".$password."')"); if (!$results) { throw new Exception('Could not register you in database - please try again later.'); } return true; } // Log in function login($username,$password) { $conn = db_connect(); $results = $conn -> query("select * from user where username = '".$username."' and passwd = sha1('".$password."')"); if (!$results) { throw new Exception('Could not log you in.'); } if ($results -> num_rows > 0) { return true; }else { throw new Exception('Could not log you in.'); } } // Check valid user function check_valid_user() { if (isset($_SESSION['valid_user'])) { echo "Logged in as ".$_SESSION['valid_user'].".
"; }else { do_html_header('Problem:'); echo "You are not logged in.
"; do_html_url('login.PHP','Login'); do_html_foot(); exit; } } // change password function change_password($username,$old_password,$new_password) { login($username,$old_password); $conn = db_connect();

$result = $conn -> query("update user set passwd = sha1('".$new_password."') where username = '".$username."'");
if (!$result) {
throw new Exception('Password could not be changed.');
} else {
return true; // changed successfully
}
}
function get_random_word($min_length,$max_length) {
// grab a random word from dictionary between the two lengths
// and return it
// generate a random word
$word = '';
// remember to change this path to suit your system
$dictionary = '/usr/dict/words'; // the ispell dictionary
$fp = @fopen($dictionary,'r');
if(!$fp) {
return false;
}
$size = filesize($dictionary);
// go to a random location in dictionary
$rand_location = rand(0,$size);
fseek($fp,$rand_location);
// get the next whole word of the right length in the file
while ((strlen($word) < $min_length) || (strlen($word)>$max_length) || (strstr($word,"'"))) {
if (feof($fp)) {
fseek($fp,0); // if at end,go to start
}
$word = fgets($fp,80); // skip first word as it could be partial
$word = fgets($fp,80); // the potential password
}
$word = trim($word); // trim the trailing \n from fgets
return $word;
}
function reset_password($username) {
// set password for username to a random value
// return the new password or false on failure
// get a random dictionary word b/w 6 and 13 chars in length
$new_password = get_random_word(6,13);

if($new_password == false) {
throw new Exception('Could not generate new password.');
}
// add a number between 0 and 999 to it
// to make it a slightly better password
$rand_number = rand(0,999);
$new_password .= $rand_number;
// set user's password to this in database or return false
$conn = db_connect();
$result = $conn->query("update user
set passwd = sha1('".$new_password."')
where username = '".$username."'");
if (!$result) {
throw new Exception('Could not change password.'); // not changed
} else {
return $new_password; // changed successfully
}
}
function notify_password($username,$password) {
// notify the user that their password has been changed
$conn = db_connect();
$result = $conn->query("select email from user
where username='".$username."'");
if (!$result) {
throw new Exception('Could not find email address.');
} else if ($result->num_rows == 0) {
throw new Exception('Could not find email address.');
// username not in db
} else {
$row = $result->fetch_object();
$email = $row->email;
$from = "From: support@PHPbookmark \r\n";
$mesg = "Your PHPBookmark password has been changed to ".$password."\r\n"
."Please change it next time you log in.\r\n";
if (mail($email,'PHPBookmark login information',$mesg,$from)) {
return true;
} else {
throw new Exception('Could not send email.');
}
}
}
?>

url_fns.PHP

PHP;"> query("select bm_URL from bookmark where username = '" . $username . "'"); if (!$results) { return false; } $url_array = array(); for ($i = 1;$row = $results -> fetch_row();++$i) { $url_array[$i] = $row[0]; } return $url_array; } // Add url to db function add_bm($new_url) { echo "Attempting to add ".htmlspecialchars($new_url)."
"; $valid_user = $_SESSION['valid_user']; $conn = db_connect(); $results = $conn -> query(" select * from bookmark where username = '".$valid_user."' and bm_URL = '".$new_url."'"); if ($results && ($results -> num_rows > 0)) { throw new Exception("Bookmark already exists.",1); } $insert_result = $conn -> query("insert into bookmark values ('".$valid_user."','".addslashes($new_url)."')"); if (!$insert_result) { throw new Exception("Bookmark could not be inserted.",1); } return true; } // Delete url function delete_bm($user,$url) { $conn = db_connect(); $results = $conn -> query(" delete from bookmark where username = '".$user."' and bm_URL = '".$url."'"); if (!$results) { throw new Exception("Bookmark could not be deleted.",1); } return true; } function recommend_urls($valid_user,$popularity = 1) { $conn = db_connect(); // $query = "select bm_URL // from bookmark // where username in // (select distinct(b2.username) // from bookmark b1,bookmark b2 // where b1.username='".$valid_user."' // and b1.username != b2.username // and b1.bm_URL = b2.bm_URL) // and bm_URL not in // (select bm_URL // from bookmark // where username='".$valid_user."') // group by bm_url // having count(bm_url)>".$popularity; $query = "select bm_URL from bookmark where username in (select distinct(b2.username) from bookmark b1,bookmark b2 where b1.username='".$valid_user."' and b1.username != b2.username and b1.bm_URL = b2.bm_URL) and bm_URL not in (select bm_URL from bookmark where username='".$valid_user."') group by bm_url having count(bm_url)>".$popularity; if (!($result = $conn->query($query))) { throw new Exception('Could not find any bookmarks to recommend.'); } if ($result->num_rows==0) { throw new Exception('Could not find any bookmarks to recommend.'); } $urls = array(); // build an array of the relevant urls for ($count=0; $row = $result->fetch_object(); $count++) { $urls[$count] = $row->bm_URL; } return $urls; } ?>

output_fns.PHP

PHP;"> <?php echo $title;?>@H_<a href="/tag/502/" target="_blank" class="keywords">502</a>_56@ <style> body { font-family: Arial,Helvetica,sans-serif; font-size: 13px } li,td { font-family: Arial,sans-serif; font-size: 13px } hr { color: #3333cc; width=300; text-align=left} a { color: #000000 } </style> </head> <body> <img src="005.png" alt="PHPbookmark logo" border="0" align="left" valign="bottom" height="55" width="57" /> <h1><a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>bookmark</h1> <hr /> <?php if($title) { do_html_heading($title); } } function do_html_footer() { // print an HTML footer ?> </body> </html> <?php } function do_html_heading($heading) { // print heading ?> <h2><?php echo $heading;?></h2> <?php } function do_html_URL($url,$name) { // output URL as link and br ?> <br /><a href="<?php echo $url;?>"><?php echo $name;?></a><br /> <?php } function display_site_info() { // display some marketing info ?> <ul> <li>Store your bookmarks online with us!</li> <li>See what other users use!</li> <li>Share your favorite links with others!</li> </ul> <?php } function display_login_form() { ?> <p><a href="register_form.php">Not a member?</a></p> <form method="post" action="member.php"> <table bgcolor="#cccccc"> <tr> <td colspan="2">Members log in here:</td> <tr> <td>Username:</td> <td><input type="text" name="username"/></td></tr> <tr> <td>Password:</td> <td><input type="password" name="passwd"/></td></tr> <tr> <td colspan="2" align="center"> <input type="submit" value="Log in"/></td></tr> <tr> <td colspan="2"><a href="forgot_form.php">Forgot your password?</a></td> </tr> </table></form> <?php } function display_registration_form() { ?> <form method="post" action="register_new.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>"> <table bgcolor="#cccccc"> <tr> <td>Email address:</td> <td><input type="text" name="email" size="30" maxlength="100"/></td></tr> <tr> <td>Preferred username <br />(max 16 chars):</td> <td valign="top"><input type="text" name="username" size="16" maxlength="16"/></td></tr> <tr> <td>Password <br />(between 6 and 16 chars):</td> <td valign="top"><input type="password" name="passwd" size="16" maxlength="16"/></td></tr> <tr> <td>Confirm password:</td> <td><input type="password" name="passwd2" size="16" maxlength="16"/></td></tr> <tr> <td colspan=2 align="center"> <input type="submit" value="Register"></td></tr> </table></form> <?php } function display_user_urls($url_array) { // display the table of URLs // set global variable,so we can test later if this is on the page global $bm_table; $bm_table = true; ?> <br /> <form name="bm_table" action="delete_bms.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>" method="post"> <table width="300" cellpadding="2" cellspacing="0"> <?<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a> $color = "#cccccc"; echo "<tr bgcolor=\"".$color."\"><td><h3>Bookmark</h3></td>"; echo "<td><h3>Delete?</h3></td></tr>"; if ((is_array($url_array)) && (count($url_array) > 0)) { foreach ($url_array as $url) { if ($color == "#cccccc") { $color = "#ffffff"; } else { $color = "#cccccc"; } //remember to call htmlspecialchars() when we are displaying user data echo "<tr bgcolor=\"".$color."\"><td><a href=\"".$url."\">".htmlspecialchars($url)."</a></td> <td><input type=\"checkbox\" name=\"del_me[]\" value=\"".$url."\"/></td> </tr>"; } } else { echo "<tr><td>No bookmarks on record</td></tr>"; } ?> </table> </form> <?php } function display_user_menu() { // display the menu options on this page ?> <hr /> <a href="member.php">Home</a> | <a href="add_bm_form.php">Add BM</a> | <?php // only offer the delete option if bookmark table is on this page global $bm_table; if ($bm_table == true) { echo "<a href=\"#\" onClick=\"bm_table.submit();\">Delete BM</a> |"; } else { echo "<span style=\"color: #cccccc\">Delete BM</span> |"; } ?> <a href="change_passwd_form.php">Change password</a> <br /> <a href="recommend.php">Recommend URLs to me</a> | <a href="logout.php">Logout</a> <hr /> <?php } function display_add_bm_form() { // display the form for people to ener a new bookmark in ?> <form name="bm_table" action="add_bms.php" method="post"> <table width="250" cellpadding="2" cellspacing="0" bgcolor="#cccccc"> <tr><td>New BM:</td> <td><input type="text" name="new_url" value="http://" size="30" maxlength="255"/></td></tr> <tr><td colspan="2" align="center"> <input type="submit" value="Add bookmark"/></td></tr> </table> </form> <?php } function display_password_form() { // display html change password form ?> <br /> <form action="change_passwd.php" method="post"> <table width="250" cellpadding="2" cellspacing="0" bgcolor="#cccccc"> <tr><td>Old password:</td> <td><input type="password" name="old_passwd" size="16" maxlength="16"/></td> </tr> <tr><td>New password:</td> <td><input type="password" name="new_passwd" size="16" maxlength="16"/></td> </tr> <tr><td>Repeat new password:</td> <td><input type="password" name="new_passwd2" size="16" maxlength="16"/></td> </tr> <tr><td colspan="2" align="center"> <input type="submit" value="Change password"/> </td></tr> </table> <br /> <?php } function display_forgot_form() { // display HTML form to reset and email password ?> <br /> <form action="forgot_passwd.php" method="post"> <table width="250" cellpadding="2" cellspacing="0" bgcolor="#cccccc"> <tr><td>Enter your username</td> <td><input type="text" name="username" size="16" maxlength="16"/></td> </tr> <tr><td colspan=2 align="center"> <input type="submit" value="Change password"/> </td></tr> </table> <br /> <?php } function display_recommended_urls($url_array) { // similar output to display_user_urls // instead of displaying the users bookmarks,display recomendation ?> <br /> <table width="300" cellpadding="2" cellspacing="0"> <?php $color = "#cccccc"; echo "<tr bgcolor=\"".$color."\"> <td><h3>Recommendations</h3></td></tr>"; if ((is_array($url_array)) && (count($url_array)>0)) { foreach ($url_array as $url) { if ($color == "#cccccc") { $color = "#ffffff"; } else { $color = "#cccccc"; } echo "<tr bgcolor=\"".$color."\"> <td><a href=\"".$url."\">".htmlspecialchars($url)."</a></td></tr>"; } } else { echo "<tr><td>No recommendations for you today.</td></tr>"; } ?> </table> <?php } ?> login.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a> <?php require_once('bookmark_fns.php'); do_html_header(''); display_site_info(); display_login_form(); do_html_footer(); ?> <a href="/tag/logo/" target="_blank" class="keywords">logo</a>ut.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a> <?<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a></pre> </div> <p><h3>require_once('bookmark_fns.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>');</h3></p> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> // start session session_start(); $old_user = $_SESSION['valid_user']; unset($_SESSION['valid_user']); $result_dest = session_destroy(); do_html_header('Logging out'); if (!empty($old_user)) { if ($result_dest) { echo 'Logged out.<br />'; do_html_url('login.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>','Login'); }else { echo 'Could not log you out.<br />'; } }else { echo 'You are not logged in,so have not been logged out.<br />'; do_html_url('login.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>','Login'); } do_html_footer(); ?></pre> </div> <p><h3>register_form.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a></h3> </p> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> <?php require_once('bookmark_fns.php'); do_html_header('User Registration'); display_registration_form(); do_html_footer(); ?> register_new.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a> <?<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a> require_once('bookmark_fns.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>'); // vars $email = $_POST['email']; $username = $_POST['username']; $passwd = $_POST['passwd']; $passwd2 = $_POST['passwd2']; // start session session_start(); // valid data try { if (!filled_out($_POST)) { throw new Exception("You have not filled the form out correctly - please go back and try again.",1); } if (!valid_email($email)) { throw new Exception("That is not a valid email address - please go back and try again.",1); } if ($passwd != $passwd2) { throw new Exception("The passwords you entered do not match - please go back and try again.",1); } if ((strlen($passwd) < 6) || (strlen($passwd) > 16)) { throw new Exception("Your password must be between 6 and 16 characters - please go back and try again.",1); } register($username,$passwd,$email); $_SESSION['valid_user'] = $username; do_html_header('Rigistration successful'); do_html_url('member.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>','Go to members page'); do_html_footer(); } catch (Exception $e) { do_html_header('Problem: '); echo $e -> getMessage(); do_html_footer(); exit(); } ?></pre> </div> <p><h3>forgot_form.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a></h3> </p> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> <?php require_once('bookmark_fns.php'); do_html_header('Reset password'); display_forgot_form(); do_html_footer(); ?> forgot_passwd.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a> <?<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a> require_once('bookmark_fns.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>'); do_html_header('Resetting password'); $username = $_POST['username']; try { // get random password $password = reset_password($username); notify_password($username,$password); echo "Your new password has been emailed to you.<br />"; }catch(Exception $e){ echo "Your password could not be reset - please try again later."; } do_html_url('login.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>','Login'); do_html_footer(); ?> change_passwd_form.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a> <?php require_once('bookmark_fns.php'); session_start(); do_html_header('Change password'); check_valid_user(); display_password_form(); display_user_menu(); do_html_footer(); ?> change_passed.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a> <?<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a> require_once('bookmark_fns.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>'); session_start(); do_html_header('Changing password'); $old_passwd = $_POST['old_passwd']; $new_passwd = $_POST['new_passwd']; $new_passwd2 = $_POST['new_passwd2']; try { check_valid_user(); if (!filled_out($_POST)) { throw new Exception("You have not filled the form out correctly - please go back and try again.",1); } if ($new_passwd != $new_passwd2) { throw new Exception("The passwords you entered do not match - please go back and try again.",1); } if ((strlen($new_passwd) < 6) || (strlen($new_passwd) > 16)) { throw new Exception("Your password must be between 6 and 16 characters - please go back and try again.",1); } change_password($_SESSION['valid_user'],$old_passwd,$new_passwd2); echo 'Password changed.'; }catch(Exception $e) { echo $e -> getMessage(); } display_user_menu(); do_html_footer(); ?> add_bm_form.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a> <?php // include function files for this application require_once('bookmark_fns.php'); session_start(); // start output html do_html_header('Add Bookmarks'); check_valid_user(); display_add_bm_form(); display_user_menu(); do_html_footer(); ?></pre> </div> <p><h3>add_bms.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a> </h3></p> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> <?php require_once('bookmark_fns.php'); session_start(); $new_url = $_POST['new_url']; do_html_header('Adding bookmarks'); try { check_valid_user(); if (!filled_out($_POST)) { throw new Exception('Form not completely filled out.'); } if (strstr($new_url,'http://') === false) { $new_url = 'http://'.$new_url; } // check url is valid if (!@fopen($new_url,'r')) { throw new Exception('Not a valid URL.'); } add_bm($new_url); echo "Bookmark added"; if ($mks = get_user_urls($_SESSION['valid_user'])) { display_user_urls($mks); } }catch(Exception $e) { echo $e -> getMessage(); } display_user_menu(); do_html_footer(); ?></pre> </div> <p><h3>delete_bms.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a></h3> </p> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> <?<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a> require_once('bookmark_fns.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>'); session_start(); $del_me = $_POST['del_me']; $valid_user = $_SESSION['valid_user']; do_html_header('Deleting bookmarks'); check_valid_user(); if (!filled_out($_POST)) { echo "<p>You have not chosen any bookmarks to delete.<br /> Please try again.</p>"; display_user_menu(); do_html_footer(); exit; }else { if (count($del_me) > 0) { foreach ($del_me as $url) { if (delete_bm($valid_user,$url)) { echo "Deleted ".htmlspecialchars($url)."<br />"; }else { echo "Could not deleted ".htmlspecialchars($url)."<br />"; } } }else { echo "No bookmarks selected for deletion."; } } if ($mks = get_user_urls($_SESSION['valid_user'])) { display_user_urls($mks); } display_user_menu(); do_html_footer(); ?></pre> </div> <p><h3>recommend.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a></h3> </p> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> <?php require_once('bookmark_fns.php'); <p>session_start();<br /> do_html_header('Recommending URLS');<br /> try {<br /> check_valid_user();<br /> $urls = recommend_urls($_SESSION['valid_user'],1);<br /> display_recommended_urls($urls);<br /> }catch(Exception $e) {<br /> echo $e -> getMessage();<br /> }<br /> display_user_menu();<br /> do_html_footer();<br /> ?></pre></p> </div> <p><h3>member.<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a></h3> </p> <div class="jb51code"> <pre class="brush:<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a>;"> <?php require_once('bookmark_fns.php'); session_start(); @$username = $_POST['username']; @$passwd = $_POST['passwd']; if ($username && $passwd) { try { // Log in login($username,$passwd); $_SESSION['valid_user'] = $username; }catch(Exception $e) { do_html_header('Problem: '); echo "You could not be logged in. You must be logged in to view this page."; do_html_url('login.php','Login'); do_html_footer(); exit; } } do_html_header('Home'); check_valid_user(); if ($url_array = get_user_urls($_SESSION['valid_user'])) { display_user_urls($url_array); } display_user_menu(); do_html_footer(); ?></pre> </div> <p>以上所述是小编给大家介绍的<a href="/tag/PHP/" target="_blank" class="keywords">PHP</a><a href="/tag/yonghu/" target="_blank" class="keywords">用户</a>验证和<a href="/tag/biaoqian/" target="_blank" class="keywords">标签</a>推荐的简单使用。编程之家 jb51.cc 收集整理的教程希望能对你有所帮助,如果觉得编程之家不错,可<a href="/tag/fenxiang/" target="_blank" class="keywords">分享</a>给好友!感谢<a href="/tag/zhichi/" target="_blank" class="keywords">支持</a>。</p></div> <div class="topcard-tags"><a href="/tag/phpp/" class="tag_link" target="_blank">php</a><a href="/tag/yanzhenghebiaoqiantuijian/" class="tag_link" target="_blank">验证和标签推荐</a></div> <ul class="list-group"> <li class="list-group-item"><a href="/php/18653.html" title="PHP实现小偷程序实例">上一篇:PHP实现小偷程序实例</a><a href="/php/18651.html" title="php 判断字符串编码是utf-8 或gb2312实例" class="text-muted pull-right">下一篇:php 判断字符串编码是utf-8 或gb23</a> </li> </ul> </div> </div> </div> <!-- row end --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-4605373693034661" data-ad-slot="9144498553"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script></div> </div> </div> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <div class="title"><h1>猜你在找的PHP相关文章</h1></div> <div class="list_con"> <a href="/php/997740.html" title="Hessian通讯协议【附PHP源代码】"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-22/19/361df348b2385424b031f281e9807f35.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">Hessian通讯协议【附PHP源代码】</div> <div class="summary">Hessian开源的远程通讯,采用二进制 RPC的协议,基于 HTTP 传输。可以实现PHP调用Java,Pyt...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="/php/997739.html" title="初识Mongodb总结"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-22/19/b4d39ef6acdce4fc3ef2fe713961a4c2.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">初识Mongodb总结</div> <div class="summary">初识Mongodb的一些总结,在Mac Os X下真实搭建mongodb环境,以及分享个Mongodb管理工具,学习...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="/php/997738.html" title="初识Mongodb之[CURD]-PHP版"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-22/19/d009a8111c246e74506457f4b9a3356b.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">初识Mongodb之[CURD]-PHP版</div> <div class="summary">边看边操作,这样才能记得牢,实践是检验真理的唯一标准.光看不练假把式,光练不看傻把式,边看...</div> <time class="summary">作者:前端之家 时间:2021-02-22</time> </a> </div> <div class="list_con"> <a href="/php/997665.html" title="php学习日志 - echo&print"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-21/08/daa4210b68d9838740e9ea77a21307fa.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">php学习日志 - echo&print</div> <div class="summary">在php中,结果输出一共有两种方式:echo和print,下面将对两种方式做一个比较。 echo与pri...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div class="list_con"> <a href="/php/997664.html" title="The mbstring extension is missing. Please check your PHP configuration错误及解决方法"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-21/08/eb187c62ac0c80d6e2af301e5b85d7cf.jpg" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">The mbstring extension is missing. Please check your PHP configuration错误及解决方法</div> <div class="summary">在安装好wampServer后,一直没有使用phpMyAdmin,今天用了一下,phpMyAdmin显示错误:The m...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div style="border-bottom: 1px solid #f4f4f4;margin-top:20px;"> <ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-fr-2o+fp-dx-wx" data-ad-client="ca-pub-4605373693034661" data-ad-slot="4561116489"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div><div class="list_con"> <a href="/php/997662.html" title="解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-21/08/3dba7c0e337113c18e0d271e31375f92.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常</div> <div class="summary">以前用Windows Live Writer写日志都好好的,前几天用写完日志,点击发布,突然弹出意外错误...</div> <time class="summary">作者:前端之家 时间:2021-02-21</time> </a> </div> <div class="list_con"> <a href="/php/997491.html" title="在PHP项目中使用Standford Moss代码查重系统"><div class="title">在PHP项目中使用Standford Moss代码查重系统</div> <div class="summary">Standford Moss 系统是斯坦福大学大名鼎鼎的代码查重系统,它可以查出哪些同学提交的代码是...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="/php/997490.html" title="Windows下PHP安全环境的搭建"><img class="lazy" src="/images/np.jpg" data-original="/res/2021/02-18/10/ae3043a3f014e5fde5c29d0449149db0.png" title="" width="160" height="90" style="float:right;margin-left:30px;display:none;" /><div class="title">Windows下PHP安全环境的搭建</div> <div class="summary">笔者一直在Windows环境下搭建PHP的运行环境,大大小小的运行环境用过不少,从开始的WAMP到...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="/php/997489.html" title="ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息"><div class="title">ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息</div> <div class="summary">在作业管理系统中,学生登陆到个人中心后可以通过左侧的菜单查看自己已经提交的作业和未提...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div class="list_con"> <a href="/php/997488.html" title="ThinkPHP5项目目录规划实践"><div class="title">ThinkPHP5项目目录规划实践</div> <div class="summary">ThinkPHP5安装后(或者下载后的压缩文件解压后)可以看到下面的目录结构: 一般的信息管理...</div> <time class="summary">作者:前端之家 时间:2021-02-18</time> </a> </div> <div style="border-bottom: 1px solid #f4f4f4;margin-top:20px;"> <ins class="adsbygoogle" style="display:block" data-ad-format="fluid" data-ad-layout-key="-fr-2o+fp-dx-wx" data-ad-client="ca-pub-4605373693034661" data-ad-slot="4561116489"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div></div> </div> </div> </div> <!-- left end--> <!-- right --> <div class="col-sm-12 col-md-12 col-lg-3"> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">编程分类</label> <div class="cate mt-20"><a href="/php/" title="PHP">PHP</a><a href="/java/" title="Java">Java</a><a href="/javase/" title="Java SE">Java SE</a><a href="/python/" title="Python">Python</a><a href="/csharp/" title="C#">C#</a><a href="/c/" title="C&C++">C&C++</a><a href="/ruby/" title="Ruby">Ruby</a><a href="/vb/" title="VB">VB</a><a href="/aspnet/" title="asp.Net">asp.Net</a><a href="/go/" title="Go">Go</a><a href="/Perl/" title="Perl">Perl</a><a href="/netty/" title="netty">netty</a><a href="/django/" title="Django">Django</a><a href="/delphi/" title="Delphi">Delphi</a><a href="/jsp/" title="Jsp">Jsp</a><a href="/netcore/" title=".NET Core">.NET Core</a><a href="/spring/" title="Spring">Spring</a><a href="/flask/" title="Flask">Flask</a><a href="/springboot/" title="Springboot">Springboot</a><a href="/springmvc/" title="SpringMVC">SpringMVC</a><a href="/lua/" title="Lua">Lua</a><a href="/laravel/" title="Laravel">Laravel</a><a href="/mybatis/" title="Mybatis">Mybatis</a><a href="/asp/" title="Asp">Asp</a><a href="/groovy/" title="Groovy">Groovy</a><a href="/thinkphp/" title="ThinkPHP">ThinkPHP</a><a href="/yii/" title="Yii">Yii</a><a href="/swoole/" title="swoole">swoole</a><div class="clearfix"></div> </div> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <!-- f2er-rightads --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4605373693034661" data-ad-slot="7756441254" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">最新文章</label> <ul class="n-list"><li><a href="/php/997740.html" title="Hessian通讯协议【附PHP源代码】" target="_blank">• Hessian通讯协议【附PHP源</a></li> <li><a href="/php/997739.html" title="初识Mongodb总结" target="_blank">• 初识Mongodb总结</a></li> <li><a href="/php/997738.html" title="初识Mongodb之[CURD]-PHP版" target="_blank">• 初识Mongodb之[CURD]-PHP版</a></li> <li><a href="/php/997665.html" title="php学习日志 - echo&print" target="_blank">• php学习日志 - echo&p</a></li> <li><a href="/php/997664.html" title="The mbstring extension is missing. Please check your PHP configuration错误及解决方法" target="_blank">• The mbstring extension i</a></li> <li><a href="/php/997663.html" title="php学习日志 - php变量" target="_blank">• php学习日志 - php变量</a></li> <li><a href="/php/997662.html" title="解决Windows Live Writer错误:WindowsLive.Writer.CoreServices.HttpRequestHelper的类型初始值设定发生异常" target="_blank">• 解决Windows Live Writer错</a></li> <li><a href="/php/997491.html" title="在PHP项目中使用Standford Moss代码查重系统" target="_blank">• 在PHP项目中使用Standford</a></li> <li><a href="/php/997490.html" title="Windows下PHP安全环境的搭建" target="_blank">• Windows下PHP安全环境的搭</a></li> <li><a href="/php/997489.html" title="ThinkPHP5作业管理系统中处理学生未交作业与已交作业信息" target="_blank">• ThinkPHP5作业管理系统中处</a></li> </ul> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <label class="main-content-label ">热门标签 <span class="pull-right tx-12"> <a href="/all" target="_blank">更多 ►</a></span> </label> <div class="topcard-tags"><a href="/tag/wenjianshijian/" title="文件时间" target="_blank">文件时间</a><a href="/tag/pythonm/" title="pythonm" target="_blank">pythonm</a><a href="/tag/xiangdengxing/" title="相等性" target="_blank">相等性</a><a href="/tag/PHPWarning/" title="PHP Warning" target="_blank">PHP Warning</a><a href="/tag/shijianwenti/" title="时间问题" target="_blank">时间问题</a><a href="/tag/wentijiejue/" title="问题解决" target="_blank">问题解决</a><a href="/tag/pcntlsignal/" title="pcntl_signal()" target="_blank">pcntl_signal</a><a href="/tag/caiyangdian/" title="采样点" target="_blank">采样点</a><a href="/tag/wavmokuai/" title="wav模块" target="_blank">wav模块</a><a href="/tag/dongtaiwenben/" title="动态文本" target="_blank">动态文本</a><a href="/tag/diaoyongpinlvxianzhi/" title="调用频率限制" target="_blank">调用频率限制</a><a href="/tag/duiwaibaolu/" title="对外暴露" target="_blank">对外暴露</a><a href="/tag/duogefangwenqingqiu/" title="多个访问请求" target="_blank">多个访问请求</a><a href="/tag/gengxinshujubiao/" title="更新数据表" target="_blank">更新数据表</a><a href="/tag/moxingjiegou/" title="模型结构" target="_blank">模型结构</a><a href="/tag/typefangfa/" title="type()方法" target="_blank">type()方法</a><a href="/tag/bijiaosudu/" title="比较速度" target="_blank">比较速度</a><a href="/tag/shouxieti/" title="手写体" target="_blank">手写体</a><a href="/tag/sobelsuanzi/" title="sobel算子" target="_blank">sobel算子</a><a href="/tag/baocunmoxing/" title="保存模型" target="_blank">保存模型</a><a href="/tag/Imagelei/" title="Image类" target="_blank">Image类</a><a href="/tag/nnConv2d/" title="nn.Conv2d" target="_blank">nn.Conv2d</a><a href="/tag/pytorch10/" title="pytorch1.0" target="_blank">pytorch1.0</a><a href="/tag/kaggle/" title="kaggle" target="_blank">kaggle</a><a href="/tag/DCGAN/" title="DCGAN" target="_blank">DCGAN</a><a href="/tag/jiaobingbi/" title="交并比" target="_blank">交并比</a><a href="/tag/rangeyongfa/" title="range()用法" target="_blank">range()用法</a><a href="/tag/dayinmoxing/" title="打印模型" target="_blank">打印模型</a><a href="/tag/fanjuanji/" title="反卷积" target="_blank">反卷积</a><a href="/tag/juanji/" title="卷积" target="_blank">卷积</a></div> </div> </div> </div> <!-- row end --> <!-- row --> <div class="row row-sm"> <div class="col-sm-12 col-md-12 col-lg-12"> <div class="card"> <!-- f2er-rightads --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4605373693034661" data-ad-slot="7756441254" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> <!-- row end --> </div> <!-- right end --> </div> </div> <footer id="footer"> <div class="container"> <div class="row hidden-xs"> <dl class="col-sm-6 site-link"> <dt>最近更新</dt><dd><a href="/win11/1005688.html" title="重装系统软件怎么保留文件" target="_blank">· 重装系统软件怎么保留文件</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005687.html" title="重装系统保留软件:简单教程" target="_blank">· 重装系统保留软件:简单教程</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005686.html" title="如何重装系统并保留软件" target="_blank">· 如何重装系统并保留软件</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005685.html" title="如何重装系统软件并保留数据" target="_blank">· 如何重装系统软件并保留数据</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005684.html" title="如何重装系统软件并保留网络设置" target="_blank">· 如何重装系统软件并保留网络设置</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005683.html" title="如何重装台式电脑系统" target="_blank">· 如何重装台式电脑系统</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005682.html" title="如何重装系统并保留原有软件" target="_blank">· 如何重装系统并保留原有软件</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005681.html" title="如何重装Lenovo电脑系统" target="_blank">· 如何重装Lenovo电脑系统</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005680.html" title="重装系统保留数据:轻松恢复系统,保留重要文件" target="_blank">· 重装系统保留数据:轻松恢复系统,保留重要文件</a><span class="text-muted pull-right">12-02</span></dd> <dd><a href="/win11/1005679.html" title="无法正常开机,如何重装系统" target="_blank">· 无法正常开机,如何重装系统</a><span class="text-muted pull-right">12-02</span></dd> </dl> <dl class="col-sm-4 site-link"> <dt>好站推荐</dt><dd> <a href="https://www.runoob.com" title="菜鸟教程(www.runoob.com)提供了编程的基础技术教程, 介绍了HTML、CSS、Javascript、Python,Java,Ruby,C,PHP , MySQL等各种编程语言的基础知识。 同时本站中也提供了大量的在线实例,通过实例,您可以更好的学习编程。" target="_blank">菜鸟教程</a></dd><dd> <a href="https://www.jb51.cc" title="编程之家(www.jb51.cc)是成立于2017年面向全球中文开发者的技术内容分享平台。提供编程导航、编程问答、编程博文、编程百科、编程教程、编程工具、编程实例等开发者最需要的编程技术内容与开发工具支持,与你一起学习编程,相信编程改变未来!" target="_blank">编程之家</a></dd><dd> <a href="" title="前端之家 f2er.com 前端开发人员所需学习知识手册。" target="_blank">前端之家</a></dd></dl> <dl class="col-sm-2 site-link"> <dt>商务合作</dt> <dd><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=76874919&site=qq&menu=yes">联系我们</a></dd> </dl> </div> <div class="copyright"> Copyright © 2019 前端之家. 当前版本 V7.0.16<br> <span class="ml5">前端之家 版权所有 <a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow">闽ICP备13020303号-10</a></span> </div> </div> </footer> <script type="text/javascript" src="/js/base.js"></script> </body> </html>