Fix the error in PHP to print the current page
Continue query
In the production of the query system when everything is normal but every time you print the error found, unable to print the current page, think of my expression is not the way
PHP implements access to remote URLs in many ways, such as using file_get_contents to get content, using fopen to open your way to get content, using the Fsockopen function to open the URL method, and so on. However, it is most recommended to use
Set Cookie Method
Setcookie ("name", ' Zhangsan '); Setcookie ("Name", ' Zhangsan ', Time () +60);//Set cookie valid for 60 seconds//setcookie ("Visittime", Date ("Y-m-d h:i:s"), Time () +60);//Set the variable to save the cookie expiration//Read
The first is a few simple landing pages
login User name: Password:
After the login page is written, you need to go to the processing page and bring up the user name and password from the database:
query (
This article mainly introduces the PHP development of several methods to summarize the relevant information, the need for friends can refer to the following
1, using the Crypt () function for encryption
The crypt () function can be individually
Apache version takes 2.4 as an example
1, Modify the httpd.conf
Remove the second line below and start the virtual host configuration
# Virtual hosts # Include conf/extra/httpd-vhosts.conf
2, Configuration httpd-vhost.conf
8081 ports are used here,
This article mainly introduces the thinkPHP5.0 framework URL access method, specifically analyzes the URL path structure of the thinkPHP5.0 framework and common access methods, as well as the implementation of hidden entry files, the need for
When you do the site, there may be a lot of times the page style must be based on the requirements of the template to control, then a lot of people will go to modify the global file phpcms\libs\functions\global.func.php pages () function, This is
Log the request to log, in order to facilitate subsequent troubleshooting, in PHP to call a method, the implementation of the curl string can be recorded to facilitate the replication request.
Java code
$value) { if (substr ($name,
related query questions about laravel multiple conditions:
Table order Order Form:
idSelf-Increment ID
order_idOrder number
paid_datePayment Time
Table order_product Order Product table:
idSelf-Increment ID
In the Emlog comment function, the message person can fill in the website address. But there are times when we don't want to have too many cluttered external links on our site. Of course, we can add the nofollow attribute to the link. That is, the
Accessibility OA Workflow plug-in and list control data parsing:
The reference code is as follows:
"; $query =" SELECT * from X_hr_code where parent_no= ' Gangweizhiwu ' ORDER by code_no ASC "; $cursor =exequery (TD:: Conn (), $query), while ($row
We will see a number of graphs on a number of sites, such as the percentage of the three regions or the number of achievements, etc. I'll introduce you to a section of the sector proportional percentage of PHP generated program code
But using it
Mac defaults to your own installed PHP
Mac system comes with PHP, the path is
/usr/bin
Because the system comes with the PHP version is generally low, so I basically do not use the system comes with the version, but I installed a new version.
The
How PHP matches parentheses with regular expressions
I'm doing curl data collection to get
............
Between the content,I use regular expressions to get the.Regular Expressions I write
(. *) (. *)
Not even. How should it be
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