Error 2048 with a PHP Form
I am getting this error when hosting my PHP form. The server I am using is PHP 5.x.
I found a post about removing " error_reporting = E_ALL | E_STRICT " from the php file but this did not work.
Can someone please help?
Thanks!
EDIT: code as per OP's comment
<?php
error_reporting(E_WARNING);
$variables = array( "subject" => $_POST["subject"],
"message" => $_POST["senderComment"],
"name" 开发者_运维百科 => $_POST["senderName"],
"email" => $_POST["senderEmail"], );
I think you are on to the right track
http://phpgun.com/what-is-php-error-no-2048/
Also refer php.net/manual http://php.net/manual/en/function.date-default-timezone-set.php
Basically,Starting from PHP 5 if you are using error reporting E | STRICT it will warn you on using deprecated functions or methodology this is to ensure your code implementation is the latest standard from PHP.
If this error 2048 occuring in your application and buy any chance it is a legacy code from someone else. You can just remove the E | STRICT the value in the php.ini as bellow. view source print? 1.error_reporting = E_ALL | E_STRICT
This will remove all the notice..
精彩评论