On 12 June 2011 22:57, Tamara Temple <tamouse.lists@xxxxxxxxx> wrote: > > 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. > Would the use of ... error_reporting(-1); ini_set('display_errors', 1); have helped during your development? -- Richard Quadling Twitter : EE : Zend : PHPDoc @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/lFnVea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php