PHP FAQs Summary

Source: Internet
Author: User

1. Why does this happen? The ports are set correctly.

Workaround:

Please turn off the native IIS service and turn on the Apache service. The shutdown method for the IIS service is described in

Https://jingyan.baidu.com/article/0f5fb099e0d7216d8334ea1a.html

2. What is the difference between Mysql.exe and Mysqld.exe?

Mysqld-the MySQL Server (main program for MySQL)

mysql-the MySQL command-line tool (MySQL command-line tools)

3. Which of these two methods is better in PHP using PDO to manipulate data?

Workaround:

The form of the question mark is a parameter placeholder, which is convenient to use and recommend this form. This is a bit more efficient when the amount of data is high.

4.0 The transaction of PDO in basic PHP is tested, and if the SQL statement is incorrectly written, the transaction is not rolled back.

Workaround:

Set the engine of the table to InnoDB.

5. What do the following tips mean?

Workaround:

$_post[' cartoon ') plus a non-empty judgment to output

if (!empty ($_post[' cartoon ')) {

...

}

6. I want to change the two GBK encoding format to utf-8, permanent modification.

Workaround:

There are two common methods of

1. Inside the navicat can be set.

can also be set in 2.Phpmyadmin. See also: http://www.heminjie.com/system/linux/1466.html

7. Is there any mistake? Workaround:

Double quotation marks can not be written in double quotation marks, to add "\" character escapes below, or in single quotation marks.

8. I want to delete one row of data, do you have a problem with drop database? Workaround:

Delete a row of data using the delete from table where ... Statement.

9, PHP operation PDO could not find diver
How to solveWorkaround:

No driver found for PDO
Check Extension=php_pdo.dll if this file exists
Whether to open
Find the DLL file that corresponds to your PHP version

10. Who does the great God know what this situation is?

Answer:

Look down the code that uses this module
See if the module name is incorrectly written
and file name
This tip is not found for this controller

11, click Login after the page blank is what situation?

Workaround:

Field error in table, change "user" to "username".

12. When should the session and cookie be used separately Ah, always confusedAnswer:

The session exists on the server where the cookie is stored locally. You can refer to this article and write it very clearly:

http://blog.csdn.net/guozicheng00/article/details/50199529

13, similar to the following such an interface how to use it, the return is the form of JSON, seeking ideas

Answer:

This code directly writes a test page running under
Such things should have a demo, you can download down to run.

14. What's wrong?

 

Workaround:

Write the name of model Middlelevel

how can i download jpgraph? Answer:

http://jpgraph.net/download/

16. Web output When the teacher shows the background color is white, why is my black?

 

Answer:

The teacher is using IE browser, ie kernel browser background color is white, the other kernel browser background color is black.

onclick= "this.src=this.src+ '?" +math.random () "What does that mean?" Answer:

Request a new verification code, in order to request a new verification code instead of the original verification code, added to the URL math.random () random number, THIS.SRC is an img attribute, by changing the img attribute src can change the image of the CAPTCHA

how the MySQL database table is emptied after the ID has been increased since 1

    1. You can use the Navicat tool to manually adjust the
    2. You can use SQL statements

ALTER TABLE user auto_increment=1;

PHP FAQs Summary

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.