Original address: http://blog.zuowj.com /? P = 440
Effective learning is a big problem. I have some practices, but they are scattered and difficult to summarize. Before going to bed last night, I suddenly thought of the core of RUP,
Lists all the most confusing PHP questions for beginners.
[1] The get and post variables cannot be passed between pages. In the latest PHP version, automatic global variables are disabled, to obtain the submitted variables from the previous page,
Void
Header (
String $ String [,
Bool $ Replace= True [,
Int $ Http_response_code ]):
Send a raw HTTP Header Below are some usage of headers:1. Use the header function to jump to the page;Header ('location: '. $ URL );$ URL is the URL to be
No similar web page capturing function has been performed, and the file_get_contents method is not used many times.
Yesterday, I saw a web page in phpchina asking, saying that when file_get_contents was used to capture the souhu blog, there was a
The + operator appends elements of remaining keys from the right handed array to the left handed, whereas duplicated keys are not overwritten.
I only know this when I read PHP manual again today.
Code
Code highlighting produced by Actipro
Source: http://www.ooso.net/archives/358
The query word "php str_replace once" is displayed in the log ". The user may be looking for how to use PHP's str_replace to replace the content of the target string only once, rather than replacing
Registration and login module Learning1. Constructor
2. Differences between Rand and mt_rand
In general, mt_rand ()RatioRand ()Four times faster
Many old libc random number generators have some uncertain and unknown features and are very
ArticleDirectory
Problem Discovery
Cause
Instance
Source: http://www.laruence.com/2008/04/03/15.html
Problem Discovery
When tracking yratings_get_targets,
Code highlighting produced by Actipro CodeHighlighter
Encoding Problems . By default, the use of UTF-8, if you find that the object can not be found, may be JS input in the Chinese, while the JS encoding format may be gb2312, open JS available notepad, save as UTF-8 format documents.
Data obtained
1. Obtain the ID of the newly generated automatic number from MySQL.
$ Id = mysql_insert_id (); // obtain the newly inserted ID
2. How does PHP determine whether the network is connected?
$ Url = "http://www.163.com/test.html ";$ File = @
//************************************** ******************************// ------------------ Function for intercepting the length of a string --------------------------// Use the Syntax: $ STR = "this character is long, ^ _ ^ ";// $ Short_str =
This example is used as the PHP community in Anhui province.
An extension example of the internal lecture titled memcached
Source: Anhui PHP community, http://www.hfphp.org
Reprinted description source thank you.
Method FileSession implementation
1: connect to the database:
$ Conn = mysql_connect ("localhost", "root", "www.xunjobs.com") or die ("database connection failed". mysql_error ());Mysql_select_db ("db_pursey", $ conn) or die ("Database Access failed". mysql_error ());Mysql_query ("
$ _ ServerIs an array containing information such as header, path, and script locations. The items in this array are created by the Web server. It is not guaranteed that each server provides all projects. The server may ignore some projects or
This is the default Implementation Method to extend the select of Yibing.
Value = "1"> residential Value = "2"> Office Value = "3"> business Room Value = "4"> workshop Value = "5"> repository Value = "6"> plot Value = "7">
PHP session for User Login
This article reprinted: http://www.cnblogs.com/happyforev1/articles/1645916.html
Compared with cookies, session is stored on the server, which is relatively secure and has no storage length limit as Cookie does. This
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