B
B
BATYA2016-09-01 19:20:07
PHP
BATYA, 2016-09-01 19:20:07

What is the problem like how did you set up php?

22065c42c2ae43e0845119e48e91c25a.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Koryukov, 2016-09-01
@MadridianFox

The session must be started before printing any text.
This is what the warning text is about - headers alredy send.
When a session starts, the server sends a cookie with the session ID to the client. Cookies are passed in headers. Headers can only be sent before the response body is sent. Any echo starts sending the response body, and headers can no longer be sent.
Well, the very first varning is an outdated way of designating a constructor. People, wake up, php 5 has been released for ten years already! You must use __construct()

N
Nazar Mokrinsky, 2016-09-01
@nazarpc

Bad advice, but try an older version of PHP, it won't get deprecated, and therefore no other errors.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question