Post. php (publish new posts) problem If (! $ Cookie_user){Echo " ";}Else {include ("connect. inc. php ");$ Query = "select * from my_user where user = '". $ cookie_user. "' and password = '". $ cookie_password ."'";$ Res = mysql_query ($ query );
On a professional Web platform, the user's account and password are often required, that is, the Identity confirmation action. The early NCSA httpd server did not provide this user validation function. The Webmaster can only create an identity
// A simple navigation bar program written in PHP// Navigation bar configuration Description: The default display is the directory name// If you do not want to use the directory name, remove the following line of comment and modify the array element.
1. System Architecture:The modular concept is divided into three layers:A. Data storage layer: mysql is used to store all bbs data, including user information,Article data, user mail, user message, system data (?), Key issues:Database Planning,
1. $ row = mysql_fetch_row ($ result );Returns a regular array $ row. $ row [0] is the first element, $ row [1] is the second element, and so on...The number of elements returned by mysql_num_fields ($ result.2. $ row = mysql_fetch_array ($ result );
Sometimes we do not want the browser to use the cache to speed up the display of web pages, especially those that frequently update content such as forums. on the Internet, we can use the following methods to block the cache, but I tried it and it
PHP instance profiling: countersAuthor: Sucre_tigerThis counter uses text to count and does not use a database. The following functions can be implemented:Use a text file to count multiple pages to reduce the I/O usage of the server. In the file to
Php has extremely powerful image processing capabilities and can be used to dynamically generate web Images easily.Here is a simple counter made of php.1. Overall Thinking:Records the number of previous visitors in a text file. When a webpage is
Copy codeThe Code is as follows:Require_once ("mssql. class. php ");// 1. Create a class and connect to the database$ Db = new mssql ("dns = aaa; uid = sa; pwd = sa; dbname = test ");// 2. Connect to the database$ Conn = $ db-> config ("dns = aaa;
IntroductionThe observer mode defines the one-to-many dependency of an object. In this way, when an object changes its status, all its dependent persons will receive notifications and update them automatically!Design principlesIn the observer mode,
1. If a method c ++ an be static, declare it static. Speed improvement is by a factor of 4. If a method can be static, make a static Declaration on it. The speed can be increased to 4 times.2. echo is faster than print. echo is faster than print.3.
Of course, you can browse in PHPMYADMIN. But there are omissions after all. So I wrote a script for comparing database differences (for PHP. Of course, the code is very simple and I will not explain it. paste the Code:Copy codeThe Code is as follows:
Adminconfig. php this is the permission configuration for all files in the background system.Fun. php this is a functional FunctionLeft. php website background loads the corresponding function menu based on the user login IDOp. php calls adminconfig.
After windows is installed, the following message is displayed:Fatal error: Trying to clone an uncloneable object of class Imagick in C: \ www \ hx \ pai_to_png.php on line 17
This prompt is displayed when IIS and Apache are used. After multiple
Copy codeThe Code is as follows: Assume that the URL Manager configuration is set to the Path mode. Use the default yii Configuration:Copy codeThe Code is as follows:'Urlmanager' => array ('Urlformat' => 'path ','Rules' => array ('/' => '/view ','//'
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service