Re: getting funny error on working page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks! My guess is the production server has this set correctly and I will follow your advice.
However, how would one do away with this error? What would I do to guarantee an string being returned instead of a date? What can I wrap the date() function in?
 
   $month=substr($thisdate,0,2);
   $day =substr($thisdate,3,2);
   $year = substr($thisdate,6,4);

   $d =date("M d (D)",Mktime(0,0,0,$month,$day,$year));
 
Again, thank you!
John A. Davis
 

>>> "Daniel Brown" <parasane@xxxxxxxxx> 4/15/2008 2:14:16 PM >>>
On Tue, Apr 15, 2008 at 5:07 PM, John A DAVIS <John.A.Davis@xxxxxxxxxxx> wrote:
[snip!]
>
> Notice: A non well formed numeric value encountered in
> C:\Inetpub\wwwroot\mazamaslocal\functions.php on line 15
>  Oct 02 (Tue) Triple Crown Ken Searl

    It's an E_NOTICE.  That means the issue has always existed, it was
just never displayed.  While you should make every attempt to fix
every issue, notices are generally safe to ignore without any serious
consequence (keep in mind, I say, "generally").  So you can update
your php.ini's error_reporting variable to the following:

error_reporting  =  E_ALL & ~E_NOTICE

    .... and then restart IIS (which is what it looks like you're
using, based upon path).

--
</Daniel P. Brown>
Ask me about:
Dedicated servers starting @ $59.99/mo., VPS starting @ $19.99/mo.,
and shared hosting starting @ $2.50/mo.
Unmanaged, managed, and fully-managed!


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux