can someone help me with this STUPID FUNCTION ISSUE

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

 



my code:
//ON ONE PAGE
<?php
include ("includes/functions.php");
$sys_msg="DEMO LOGINS|+D|(9/12/04)|-D||NL|
$sys_msg = msgformat($sys_msg);
?>

//IN ANOTHER PHP FILE
function msgformat ($msg)
{
  ($debug==true?"msgformat function called<br>":"");
  $msg=str_replace("|NL|","<br>\n",$msg); //SET FOR NEW LINE
  };
  //Check for Date
  if(strstr($msg,"|+D|")!=""){
     $msg=str_replace("|+D|","<sub>",$msg); //TURN ON SUB FOR DATE
     $msg=str_replace("|-D|","</sub>",$msg); //TURN OFF SUB FOR DATE
  };
  return $msg;
};
....................................................

Now here is the problem.....nothing is happening.
I have error_reporting on and am not getting any errors of any kind.  
My php editing program, which checks for PHP errors and syntx 
problems doesnt detect any issues.  My script knows that the function 
exists and I think it calls to it but then it dies before running a 
single line of code.

$sys_msg = msgformat($sys_msg);
The above is returning NULL.

Any advice or help would be appreciated




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~-> 

PHP Data object relational mapping generator - http://www.meta-language.net/ 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-objects/

<*> To unsubscribe from this group, send an email to:
    php-objects-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux