Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Why does php execute error?

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the knowledge of "Why php executes errors". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

A php execution error indicates an php program execution prompt error, and the solution is to check if there is output on the wrong line, and then execute "error_reporting (0);" in the header of the index.php.

This article operating environment: Windows7 system, PHP7.1, Dell G3 computer.

What is the meaning of php execution error?

Specific problem description:

Php program execution prompt error, what kind of error is this?

I downloaded the PHP version of the wishing Tree message board program on the Internet to test the PHP environment built by my machine. There is no problem running phpinfo.php. Running this program will report the following errors, but I will upload this program to the free space with MYSQL database but there is no problem. Can you take a look at it?

Warning: session_start () [function.session-start]: Cannot send session cookie-headers already sent by (output started at F:\ php\ xys\ config.php:1) in F:\ php\ xys\ index.php on line 5

Solution:

F:\ php\ xys\ index.php on line 5

You post the fifth line of this file.

The disgusting thing about PHP is that there can be no output in front of header, otherwise, it will appear: headers already sent

At this point, you need to check whether there is any output above its error line, sometimes because you do not have error_reporting (0); the output caused by the variable is not defined, so you try to error_reporting (0) in the head of index.php; see if it is normal?

This is the end of the content of "Why php executes errors". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report