0

http://www.dollargainer.com/

Deprecated: Function ereg() is deprecated in /home/kujwilyv/public_html/index.php on line 5472

Warning: Cannot modify header information - headers already sent by (output started at /home/kujwilyv/public_html/index.php:5472) in /home/kujwilyv/public_html/index.php on line 5474

Deprecated: Function split() is deprecated in /home/kujwilyv/public_html/index.php on line 4692

Deprecated: Function split() is deprecated in /home/kujwilyv/public_html/index.php on line 4693

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/kujwilyv/public_html/index.php:5472) in /home/kujwilyv/public_html/index.php on line 5621

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/kujwilyv/public_html/index.php:5472) in /home/kujwilyv/public_html/index.php on line 5621

Deprecated: Function split() is deprecated in /home/kujwilyv/public_html/index.php on line 7053

Charlie
  • 8,530
  • 2
  • 55
  • 53
Kadir
  • 1

2 Answers2

2

Put your session_start() on top of the script or use output buffering. You cannot send anything before session can start because it need to send the session cookie in the header.

If you sent something already, the header is already gone too so session missed his flight.

As for the deprecated warning, well you'll need to work it around. Took me 3 hours to over view this and i've learn ALOT: http://php.net/manual/en/book.session.php

Louis Loudog Trottier
  • 1,367
  • 13
  • 26
  • 1
    Already answered: http://stackoverflow.com/questions/8028957/how-to-fix-headers-already-sent-error-in-php – Progrock Feb 05 '17 at 10:03
2

As the error stated, the split() function is deprecated in PHP 5.3.0 and have been removed from PHP 7.0. Read http://php.net/manual/en/function.split.php

So use explode() instead.

Read: http://www.w3schools.com/php/func_string_explode.asp http://php.net/manual/en/function.explode.php

Same goes with the ereg(), which also deprecated. Use preg_match() instead.

Read: http://php.net/manual/en/function.preg-match.php

Afif Zafri
  • 640
  • 1
  • 5
  • 11