PHP (2) Common functions record some common library functions and common syntax for reference
I. PHP Manual
Php manual Chinese address http://php.net/manual/zh
II. some common operations
2.1 string operations
2.1.1 strpos-locate the first
How to determine whether the user name and password are correct? today I have been pondering for half a day, but I have not figured out whether the user name and password are correct.
The code you write yourself is as follows:
$ User = $ _ POST [
Php object-oriented toString ()
_ ToString ()
When debugging a program, we need to know whether the data is correct. For example, when printing an object, you can check what attributes and values the object has. if the class defines the toString
LaraDock -- Docker LaravelHomestead: enables you to easily run Laravel applications in Docker. what is LaraDock?
LaraDock is similar to Laravel Homestead, but runs in Docker rather than Vagrant. LaraDock allows us to easily run the Laravel
I want to create an image Counter. Why does my code report an error and follow the video learning process?
The following describes the preparation of the image counter and the text counter.
If (! @ $ F = fopen ("num.txt", "r ")){
Echo "the file
Newbie's solution: Under the Zend Framework, how to create a new Class has recently helped a friend company change the background of a PHP website. I have never done it before.
The website structure is roughly as follows:
----------------------------
Methods for processing time-consuming php files if only echo "OK" is written in 1. php ";
Then it can be normally displayed OK, but if my 1. in php, a statement with a loop of 1 million times is parsed, and each loop is sleep (to simulate 1. php is
Newbie solves the problem of comparing result sets and arrays. 1 Table
----------------------------
| Id | name | baodao | time |
| 2 | Li Xiaoming | James |
| 1 | Zhang Sanming | James |
------------------------------
First, collect information.
It is estimated that it is a punctuation problem. I can't find it. I want to help you.
for($i=0;$iquery('update xs set xinzhangjie='$zjming',zhangjieshijian='$zjtime' where xsMing='$ming''); printf("Affected rows (UPDATE): %d ",
New users seek help. I want to write a function to prevent refresh. I think it should be possible to use the session, but it has not been released.
This is my code
If (empty ($ _ SESSION ['online']) // you have accessed {if ($ _ SESSION ['Time']
The website must be configured with an http proxy to access the site. you must set an http proxy to access the site.
This has never happened before. Is it about server settings.
How can this problem be solved?
Reply to discussion (solution)
How does an unpack receive unsignedlonglong type server in the small-end mode and the first eight bytes are unsigned long data? how can I use unpack to read it?
Unpack ("Q8md5/a10end_str", $ recv_body); no thanks
Reply to discussion
For help! I have several websites that have replaced an independent IP address space for google indexing. However, Google indexing for one site is missing, but other sites with the same IP address are also well indexed. I checked the log of the
Please download php-5.3.6-Win32-VC9-x64 before is directly installed integrated environment set, now 64-bit W7 laptop system to build a server, one by one to install, PHP also to 64-bit, however, the download speed found in CSDN is very slow. it
Is there any simple way to prevent SQL injection once and for all? I searched it just now and it seems complicated.
Let me talk about my thoughts:
First of all, I don't know if MySQL can add single quotation marks for all types of data. I just
(Help) check if the user name fails in the database. first, I want to check whether the user name is in the database! Apmserv is built in a local environment and has a bbs database and a meassage table. The table has three fields: id user pass, and
Which domestic open-source php programs are suitable for learning recently I want to learn about a PHP open-source program, but I don't know which one is good. please recommend it to my experts, code specifications, and MVC construction!
Reply
Wamp cannot be started, and then it is found that apache is not started and the error is apache403 at the beginning. in the configuration file, check the apache configuration file httpd. conf first,
Change deny from all to allow from all.
The deny
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