Re: [pmwiki-users] debugging using error_log stuff

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

 




On Jun 12, 2011, at 4:32 PM, Peter Bowers wrote:

On Sun, Jun 12, 2011 at 3:18 PM, Tamara Temple <tamouse.lists@xxxxxxxxx > wrote:
function sms($text,$switch=0){
       global $MessagesFmt;
       error_log(date(DATE_RFC822)." Entered sms. text=$text.
switch=$switch\n",3,"/var/log/pmwiki/error.log");
       if ($switch == true || is_array($text)) {
$MessagesFmt[] = "<pre>" . print_r($text,true) . "</ pre>\n";
       } else {
               $MessagesFmt[] = $text . "<br />\n";
       }
#       error_log(date(DATE_RFC822)." Exit sms.\n");
      error_log(date(DATE_RFC822)." Exit
sms.\n",3,"/var/log/pmwiki/error.log");
}

Missing arguments #2 and #3 -- try as modified above.

-Peter

D'oh. Sometimes you stare and stare and stare at something and you still don't see it. Thanks a bunch.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[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