开发者

Error 2048 with a PHP Form

开发者 https://www.devze.com 2023-02-03 12:26 出处:网络
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.

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..

0

精彩评论

暂无评论...
验证码 换一张
取 消