douzhuo8312 2011-01-11 18:40
浏览 31

带有PHP表单的错误2048

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"], );
  • 写回答

1条回答 默认 最新

  • duanbishai5271 2011-01-11 18:52
    关注

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

    评论

报告相同问题?