I have been playing with php for a while. It basically started from 0 and often encountered many problems. I am able to query documents more skillfully and have less experience.Look here first. :Error_reporting (1048); // 1048 ,...,Ob_start
Tip 1: Use the appropriate error reportgenerally in the development process, many programmers always forget to make the program error report, this is a huge error, because the appropriate error report is not only the best debugging tools, but also
{Code ...} the value 1 of $ _ SESSION [& #039; id & #039;] is retrieved after unset ($ _ SESSION) is used; session_start () is refreshed next time! The unset ($ _ SESSION [& #039; id & #039;]) can be cleared normally! Who can tell me in detail?
1. character location search function:Strpos ($ str, search, [int]): searches for the first position of search in $ str starting from int;Stripos ($ str, search, [int]): the position where the string first appears in another string. This function is
1, PHP code is included in the special starting character and Terminator 2, the use of PHPServer-side scriptingcommand-line scripting.Writing desktop applications.3. Output statement, text echo printf4, $_server is a special PHP reserved variable,
Recently, PHP + MYSQL programming has been involved. I learned a little about PHPSQL injection attacks and summarized my experience. In my opinion, the main cause of SQL injection attacks is the following two reasons:
Recently, PHP + MYSQL
I have installed Xdebug on my computer. I can use Xdebug to debug the php page program and report an error. Next I will introduce Xdebug for remote error debugging. I have installed Xdebug on my computer. I can use Xdebug to debug the php page
There are three, vim DBGp plug-ins, php xdebug extensions, and Chrome xdebughelper extensions.
First, install required components.There are three, vim DBGp plug-ins, php xdebug extensions, and Chrome xdebug helper extensions.
I. Install the dbgp
I. Web Server Security
PHP is actually a module function of the Web server. Therefore, you must first ensure the security of the Web server. Of course, to ensure the security of Web servers, you must first ensure the system security. This is a long
Due to the lack of PHP automatic upgrade mechanism, resulting in the current PHP version coexistence, but also caused a lot of flaws have not been patched. These vulnerable functions are also the focus of our web application code audits and are an
Code design is messy, after finishing the jade template, decided to link login registration function, but found a lot of implementations are too good, first modified the Httpparam get, post, cookie method. Now decide to modify the session, because
ProblemSpeaking of $ _ REQUEST, we all know that it is a collection of $ _ GET and $ _ POST. But if you are interested, check the document and you will see:
$ _ REQUEST
An associative array that by default contains the contents of $ _ GET, $ _ POST
Php provides developers with great flexibility, but it also brings potential risks to security issues. we need to summarize the previous problems in the near future, here, I would like to summarize some of my development feelings by translating an
CURL is a tool that uses URL syntax to transmit files and data. it supports many protocols, such as HTTP, FTP, and TELNET. the best thing is that PHP also supports the cURL Library. PHP cURL library can be simple
1. what is CURL?CURL is a tool that
For various reasons, PHP settings must be enabled based on the register_globals parameter, but it also becomes an important security risk. please refer to the following code: remote users can simply pass authenticated as form variables, even if the
This article mainly introduces several practical points for creating a PHP website with high security. if you need it, you can refer to it and we all know that PHP is already the most popular Web application programming language. But like other
This article mainly introduces how php simulates the user's automatic posting of articles in the QQ space, which can simulate the user's submission form Publishing function. the code contains more detailed annotations for ease of understanding, for
Session
What is a session??? The session begins with the user access page, to the point where the connection to the site is disconnected, forming the life cycle of a conversation. During a session, the client is assigned a unique SessionID that
PHPCURL simulates GET and POST function code. For more information, see.
The code is as follows:
Function vcurl ($ url, $ post = '', $ cookie ='', $ cookiejar = '', $ referer = ''){$ TmpInfo = '';$ Cookiepath = getcwd (). './'. $ cookiejar;$
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.