<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[PunBB Forums - Programming]]></title>
		<link>http://punbb.informer.com/forums/</link>
		<description><![CDATA[The most recent topics at PunBB Forums.]]></description>
		<lastBuildDate>Fri, 23 Oct 2009 08:17:18 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Any good Statistic App?]]></title>
			<link>http://punbb.informer.com/forums/topic/22311/any-good-statistic-app/new/posts/</link>
			<description><![CDATA[<p>I&#039;m looking for some sort of statistics application for my site, I found one that I really like, but it&#039;s in asp, I want it in php, so if anyone know a good one please let me know</p>]]></description>
			<author><![CDATA[dummy@example.com (tomjacko)]]></author>
			<pubDate>Fri, 23 Oct 2009 08:17:18 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/22311/any-good-statistic-app/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Parse error: syntax error, unexpected ')' in /home/sonfilip/public_htm]]></title>
			<link>http://punbb.informer.com/forums/topic/22373/parse-error-syntax-error-unexpected-in-homesonfilippublichtm/new/posts/</link>
			<description><![CDATA[<p>I cannot figure this out it is saying it is on line 10 </p><br /><p>Parse error: syntax error, unexpected &#039;)&#039; in /home/sonfilip/public_html/includes/configure.php on line 10</p><br /><br /><br /><p>Here is the code in which it is saying the error is in. If you can please look at it and tell me where it is at because i cant figure it out</p><br /><p>&lt;?php&nbsp; /* Coreys Ebook Store <a href="http://www.sonfilippoentertainment.com">http://www.sonfilippoentertainment.com</a> */</p><p>// Define the webserver and path parameters<br />// * DIR_FS_* = Filesystem directories (local/physical)<br />// * DIR_WS_* = Webserver directories (virtual/URL)</p><br /><p> // add your database and website details to the variables below</p><p>define(&#039;sonfilip_corey69&#039;, );<br />&nbsp; &nbsp; // your username that you use to log into your web server<br />define(&#039;corey517&#039;, );<br />&nbsp; &nbsp;// your password that you use to log into your web server<br />define(&#039;sonfilip_ebook&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // replace username with your web server username<br />define(&#039;DIR_FS_CATALOG&#039;, &#039;/home/sonfilip/public_html/&#039;);<br />&nbsp; &nbsp; <br />define(&#039;HTTP_SERVER&#039;,&#039;http://www.sonfilippoentertainment.com&#039;); <br />define(&#039;HTTP_COOKIE_DOMAIN&#039;, &#039;.sonfilippoentertainment.com&#039;);<br />&nbsp; // do not include the www</p>]]></description>
			<author><![CDATA[dummy@example.com (Slavok)]]></author>
			<pubDate>Mon, 12 Oct 2009 07:54:59 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/22373/parse-error-syntax-error-unexpected-in-homesonfilippublichtm/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[PHP help (str_replace isn't working)]]></title>
			<link>http://punbb.informer.com/forums/topic/22155/php-help-strreplace-isnt-working/new/posts/</link>
			<description><![CDATA[<p>For some reason, str_replace isn&#039;t working.&nbsp; The following is the file that I need the help with:<br /></p><div class="codebox"><pre><code>&lt;?php
error_reporting(E_ERROR | E_PARSE);
require(&quot;./settings.php&quot;);
require_once(&quot;languages.php&quot;);
require(&quot;styles.php&quot;);
var_dump($start_language);
var_dump($end_language);
function Color_Bind($ShipName,$Amount,$D1)
{
    global $color;
    $bound=&quot;[color=&quot;.$color[$ShipName].&quot;]&quot;.$ShipName.$D1.$Amount.&quot;[&quot;.&#039;/&#039;.&quot;color]&quot;;
    return $bound;
}
function Merge($ShipArray,$AmountArray,$D1,$D2)
{
    foreach($ShipArray as $field=&gt;$value)
    {
        $value=trim($value);
        $value=ereg_replace(&#039;   &#039;,&#039;&#039;,$value);
        $value=trim($value);
        $AmountArray[$field]=trim($AmountArray[$field]);
        $AmountArray[$field]=ereg_replace(&#039; &#039;,&#039;&#039;,$AmountArray[$field]);
        $AmountArray[$field]=str_replace(&#039;.&#039;,&#039;&#039;,$AmountArray[$field]);
        $AmountArray[$field]=trim($AmountArray[$field]);
        $ShipAmount[$value]=$AmountArray[$field];
    }
    foreach($ShipAmount as $Ship=&gt;$Amount)
    {
        $ShipAndAmount[]=Color_Bind($Ship,$Amount,$D1);
    }
    $timesThrough=0;
    $sizeDown1=sizeof($ShipAndAmount)-1;
    foreach($ShipAndAmount as $key=&gt;$value)
    {
        if($timesThrough==$sizeDown1)
        {
            unset($ShipAndAmount[$key]);
        }
        else
        {
            $timesThrough++;
        }
    }
    $RoundPart=implode($D2,$ShipAndAmount);
    return $RoundPart;
}
function number_clean($number_string)
{
    if(is_array($number_string))
    {
        foreach($number_string as $field=&gt;$number)
        {
            $number_string[$field]=ereg_replace(&quot;   &quot;,&quot;&quot;,$number_string[$field]);
            $number_string[$field]=trim($number_string[$field]);
            $number_string[$field]=str_replace(&quot;.&quot;,&quot;&quot;,$number_string[$field]);
        }
    }
    else
    {
        $number_string=ereg_replace(&quot;   &quot;,&quot;&quot;,$number_string);
        $number_string=trim($number_string);
        $number_string=str_replace(&quot;.&quot;,&quot;&quot;,$number_string);
    }
    return $number_string;
}
function number_reformat($number)
{
    if(is_array($number))
    {
        foreach($number as $field=&gt;$number)
        {
            $number_array=str_split($number);
            foreach($number_array as $key=&gt;$digit)
            {
                $mod_test_1=sizeof($number_array) % 3;
                $new_numb_key=sizeof($number_array)-$key;
                $test_mod=$new_numb_key % 3;
                if($test_mod == 0 &amp;&amp; $new_numb_key&lt;&gt;sizeof($number_array))
                {
                    $new_numb[$new_numb_key]=&quot;.&quot;.$digit;
                }
                else
                {
                    $new_numb[$new_numb_key]=$digit;
                }
        }
        $number=implode(&quot;&quot;,$new_numb);
        }
    }
    else
    {
        $number_array=str_split($number);
        foreach($number_array as $key=&gt;$digit)
        {
            $mod_test_1=sizeof($number_array) % 3;
                $new_numb_key=sizeof($number_array)-$key;
                $test_mod=$new_numb_key % 3;
                if($test_mod == 0 &amp;&amp; $new_numb_key&lt;&gt;sizeof($number_array))
                {
                    $new_numb[$new_numb_key]=&quot;.&quot;.$digit;
                }
                else
                {
                    $new_numb[$new_numb_key]=$digit;
                }
        }
        $number=implode(&quot;&quot;,$new_numb);
    }
    return $number;
}
function word_clean($string)
{
    if(is_array($string))
    {
        foreach($string as $field=&gt;$string)
        {
            $string[$field]=str_replace(&quot;   &quot;,&quot;&quot;,$string[$field]);
            $string[$field]=trim($string[$field]);
        }
    }
    else
    {
        $string=str_replace(&quot;   &quot;,&quot;&quot;,$string);
        $string=trim($string);
    }
    return $string;
}
function StealthMergeDefend($ShipArray,$BeforeArray,$AfterArray,$D1,$BtoAseperator,$D2,$Headers=TRUE)
{
    if($Headers)
    {
        global $end_language;
        $HeaderHide=$end_language[&#039;type&#039;];
        $Header[]=$end_language[&#039;number_before&#039;];
        $Header[]=$end_language[&#039;number_after&#039;];
        $Headers=implode($BtoAseperator,$Header);
        $HeadersTrue[]=$HeaderHide;
        $HeadersTrue[]=$Headers;
        $All[]=implode($D1,$HeadersTrue);
    }
    if(sizeof($ShipArray)==sizeof($BeforeArray) and sizeof($BeforeArray)==sizeof($AfterArray))
    {
        foreach($ShipArray as $field=&gt;$ShipName)
        {
            $Before[$ShipName]=$BeforeArray[$field];
            $After[$ShipName]=$AfterArray[$field];
        }
        foreach ($Before as $Ship=&gt;$Amount)
        {
            global $color;
            $Merge[]=&quot;[color=&quot;.$color[$Ship].&quot;]&quot;;
            $Merge[]=$Ship;
            $Merge[]=$Amount;
            $NameandBefore[$Ship]=implode($D1,$Merge);
            unset($Merge);
        }
        foreach($After as $Ship=&gt;$Amount)
        {
            $Merge[]=$NameandBefore[$Ship];
            $Merge[]=$Amount.&quot;[/color]&quot;;
            $All[]=implode($BtoAseperator,$Merge);
            unset($Merge);
        }
        $StealthRound=implode($D2,$All);
        return $StealthRound;
    }
    else
    return;
}
$DATA=$battle;
/* Replace spaces in ship names with underscores */
$DATA=str_replace($start_language[&#039;spy_probe&#039;],&quot;Spy_probe&quot;,$DATA);
$DATA=str_replace($start_language[&#039;small_fighter&#039;],&quot;Small_fighter&quot;,$DATA);
$DATA=str_replace($start_language[&#039;small_trans&#039;],&quot;Small_transport&quot;,$DATA);
$DATA=str_replace($start_language[&#039;large_trans&#039;],&quot;Large_transport&quot;,$DATA);
$DATA=str_replace($start_language[&#039;colony_ship&#039;],&quot;Colony_ship&quot;,$DATA);
$DATA=str_replace($start_language[&#039;solar_cell&#039;],&quot;Solar_cell&quot;,$DATA);
$DATA=str_replace($start_language[&#039;stealth_bomber&#039;],&quot;Stealth_bomber&quot;,$DATA);
$DATA=str_replace($start_language[&#039;isb&#039;],&quot;Imperial_starbase&quot;,$DATA);
$DATA=str_replace($start_language[&#039;lgc&#039;],&quot;Light_graviton_cannon&quot;,$DATA);
$DATA=str_replace($start_language[&#039;hgc&#039;],&quot;Heavy_graviton_cannon&quot;,$DATA);
$DATA=str_replace($start_language[&#039;hgc&#039;],&quot;Ion_cannon&quot;,$DATA);
$DATA=str_replace($start_language[&#039;positron&#039;],&quot;Positron_lighter&quot;,$DATA);
$DATA=str_replace($start_language[&#039;ivc&#039;],&quot;Interval_cannon&quot;,$DATA);
$DATA=str_replace($start_language[&#039;lcb&#039;],&quot;Laser_cannon_battery&quot;,$DATA);
$DATA=str_replace($start_language[&#039;sc&#039;],&quot;Solar_cannon&quot;,$DATA);
$DATA=str_replace($start_language[&#039;ssd&#039;],&quot;Small_shield_dome&quot;,$DATA);
$DATA=str_replace($start_language[&#039;lsd&#039;],&quot;Large_shield_dome&quot;,$DATA);
$DATA=preg_replace(&quot;/\n/&quot;,&quot; &quot;,$DATA);
$DATA=split($start_language[&#039;StartSentence&#039;].&quot; &quot;,$DATA,2);
$DATA=split(&quot; :&quot;,$DATA[1],2);
$DateTime=$DATA[0];
$DATA=spliti($start_language[&#039;round&#039;].&quot; - 1 -&quot;,$DATA[1],2);
$Stealth=$DATA[0];
/* Stealth Section */
$Stealth=split($start_language[&#039;Defender&#039;],$Stealth,2);
$StealthRound[&quot;SBAmt_Attack&quot;]=split($start_language[&#039;number&#039;],$Stealth[0],2);
$StealthRound[&quot;SBAmt_Attack&quot;]=number_clean($StealthRound[&quot;SBAmt_Attack&quot;]);
$StealthRound[&quot;SBAmt_Attack&quot;]=$StealthRound[&quot;SBAmt_Attack&quot;][1];
$Stealth=split($start_language[&#039;type&#039;],$Stealth[1],2);
$Stealth=split($start_language[&#039;number_before&#039;],$Stealth[1],2);
$StealthRound[&quot;Defend_Item_Name&quot;]=word_clean($Stealth[0]);
$Stealth=split($start_language[&#039;number_after&#039;],$Stealth[1],2);
$StealthRound[&quot;Defend_Item_Before&quot;]=number_clean($Stealth[0]);
$Stealth=split($start_language[&#039;stealth_start&#039;],$Stealth[1],2);
$StealthRound[&quot;Defend_Item_After&quot;]=number_clean($Stealth[0]);
$Stealth=split($start_language[&#039;stealth_end&#039;],$Stealth[1],2);
$StealthRound[&quot;Destroyed_Items&quot;]=number_clean($Stealth[0]);
$StealthRound[&quot;Defend_Item_Name&quot;]=split(&quot; &quot;,$StealthRound[&quot;Defend_Item_Name&quot;]);
$StealthRound[&quot;Defend_Item_Before&quot;]=split(&quot; &quot;,$StealthRound[&quot;Defend_Item_Before&quot;]);
$StealthRound[&quot;Defend_Item_After&quot;]=split(&quot; &quot;,$StealthRound[&quot;Defend_Item_After&quot;]);
$ShipsPlusAmt[&quot;Stealth&quot;][&quot;Bomber&quot;]=&quot;[color=&quot;.$color[&#039;Stealth_bomber&#039;].&quot;]Stealth_bomber&quot;.$style[&#039;ShipName-Number-Seperator&#039;].$StealthRound[&quot;SBAmt_Attack&quot;].&quot;[/color]&quot;;
$ShipsPlusAmt[&quot;Stealth&quot;][&quot;Defense&quot;]=StealthMergeDefend($StealthRound[&quot;Defend_Item_Name&quot;],$StealthRound[&quot;Defend_Item_Before&quot;],$StealthRound[&quot;Defend_Item_After&quot;],&quot; &quot;,&quot;--&gt;&quot;,&quot;\n&quot;);
/* Round 1 */
$DATA=spliti($start_language[&#039;round&#039;].&quot; - 2 -&quot;,$DATA[1],2);
$Round1=$DATA[0];
$Round1=split($start_language[&#039;Attacker&#039;],$Round1,2);
$Round1=split($start_language[&#039;Defender&#039;],$Round1[1],2);
$Attack=$Round1[0];
$Attack=split(&quot;\[&quot;,$Attack,2);
$Attacker=trim($Attack[0]);
$Attack=split($start_language[&#039;type&#039;],$Attack[1],2);
$Attack=split($start_language[&#039;number&#039;],$Attack[1],2);
$Ships=split(&quot; &quot;,$Attack[0]);
unset($Ships[0]);
$Attack=spliti($start_language[&#039;round&#039;],$Attack[1],2);
$ShipAmt=split(&quot; &quot;,$Attack[0]);
$ShipsPlusAmt[1][&#039;Attack&#039;]=Merge($Ships,$ShipAmt,&quot;--&gt;&quot;,&quot;\n&quot;);
unset($ShipAmt,$Ships,$ShipsAmt);
$Defend=$Round1[1];
$Defend=split(&quot;\[&quot;,$Defend,2);
$Defender=trim($Defend[0]);
$Defend=split($start_language[&#039;type&#039;],$Defend[1],2);
$Defend=split($start_language[&#039;number&#039;],$Defend[1],2);
$Ships=split(&quot; &quot;,$Defend[0]);
unset($Ships[0]);
$Defend=spliti($start_language[&#039;round&#039;],$Defend[1],2);
$ShipAmt=split(&quot; &quot;,$Defend[0]);
$ShipsPlusAmt[1][&#039;Defend&#039;]=Merge($Ships,$ShipAmt,&quot;--&gt;&quot;,&quot;\n&quot;);
unset($ShipAmt,$Ships,$ShipsAmt);
unset($Attack,$Defend);
/* Round 2 */
$DATA=spliti($start_language[&#039;round&#039;].&quot; - 3 -&quot;,$DATA[1],2);
$Round2=$DATA[0];
$Round2=split($start_language[&#039;Attacker&#039;],$Round2,2);
$Round2=split($start_language[&#039;Defender&#039;],$Round2[1],2);
$Attack=$Round2[0];
$Attack=split($Attacker,$Attack);
$Attack=split($start_language[&#039;type&#039;],$Attack[1],2);
$Attack=split($start_language[&#039;number&#039;],$Attack[1],2);
$Ships=split(&quot; &quot;,$Attack[0]);
unset($Ships[0]);
$Attack=spliti($start_language[&#039;round&#039;],$Attack[1],2);
$ShipAmt=split(&quot; &quot;,$Attack[0]);
$ShipsPlusAmt[2][&#039;Attack&#039;]=Merge($Ships,$ShipAmt,&quot;--&gt;&quot;,&quot;\n&quot;);
unset($ShipAmt,$Ships,$ShipsAmt);
$Defend=$Round2[1];
$Defend=split($Defender,$Defend);
$Defend=split($start_language[&#039;type&#039;],$Defend[1],2);
$Defend=split($start_language[&#039;number&#039;],$Defend[1],2);
$Ships=split(&quot; &quot;,$Defend[0]);
unset($Ships[0]);
$Defend=spliti($start_language[&#039;round&#039;],$Defend[1],2);
$ShipAmt=split(&quot; &quot;,$Defend[0]);
$ShipsPlusAmt[2][&#039;Defend&#039;]=Merge($Ships,$ShipAmt,&quot;--&gt;&quot;,&quot;\n&quot;);
unset($Attack,$Defend);
/* Round 3 */
$DATA=spliti($start_language[&#039;round&#039;].&quot; - 4 -&quot;,$DATA[1],2);
$Round3=$DATA[0];
$Round3=split($start_language[&#039;Attacker&#039;],$Round3,2);
$Round3=split($start_language[&quot;Defender&quot;],$Round3[1],2);
$Attack=$Round3[0];
$Attack=split($Attacker,$Attack);
$Attack=split($start_language[&#039;type&#039;],$Attack[1],2);
$Attack=split($start_language[&#039;number&#039;],$Attack[1],2);
$Ships=split(&quot; &quot;,$Attack[0]);
unset($Ships[0]);
$Attack=spliti($start_language[&#039;round&#039;],$Attack[1],2);
$ShipAmt=split(&quot; &quot;,$Attack[0]);
$ShipsPlusAmt[3][&#039;Attack&#039;]=Merge($Ships,$ShipAmt,&quot;--&gt;&quot;,&quot;\n&quot;);
unset($ShipAmt,$Ships,$ShipsAmt);
$Defend=$Round3[1];
$Defend=split($Defender,$Defend);
$Defend=split($start_language[&#039;type&#039;],$Defend[1],2);
$Defend=split($start_language[&#039;number&#039;],$Defend[1],2);
$Ships=split(&quot; &quot;,$Defend[0]);
unset($Ships[0]);
$Defend=spliti($start_language[&#039;round&#039;],$Defend[1],2);
$ShipAmt=split(&quot; &quot;,$Defend[0]);
$ShipsPlusAmt[3][&#039;Defend&#039;]=Merge($Ships,$ShipAmt,&quot;--&gt;&quot;,&quot;\n&quot;);
unset($Attack,$Defend);
/* Round 4 */
$DATA=spliti($start_language[&#039;round&#039;].&quot; - 5 -&quot;,$DATA[1],2);
$Round4=$DATA[0];
$Round4=split($start_language[&quot;Attacker&quot;],$Round4,2);
$Round4=split($start_language[&quot;Defender&quot;],$Round4[1],2);
$Attack=$Round4[0];
$Attack=split($Attacker,$Attack);
$Attack=split($start_language[&#039;type&#039;],$Attack[1],2);
$Attack=split($start_language[&#039;number&#039;],$Attack[1],2);
$Ships=split(&quot; &quot;,$Attack[0]);
unset($Ships[0]);
$Attack=spliti($start_language[&#039;round&#039;],$Attack[1],2);
$ShipAmt=split(&quot; &quot;,$Attack[0]);
$ShipsPlusAmt[4][&#039;Attack&#039;]=Merge($Ships,$ShipAmt,&quot;--&gt;&quot;,&quot;\n&quot;);
unset($ShipAmt,$Ships,$ShipsAmt);
$Defend=$Round4[1];
$Defend=split($Defender,$Defend);
$Defend=split($start_language[&#039;type&#039;],$Defend[1],2);
$Defend=split($start_language[&#039;number&#039;],$Defend[1],2);
$Ships=split(&quot; &quot;,$Defend[0]);
unset($Ships[0]);
$Defend=spliti($start_language[&quot;round&quot;],$Defend[1],2);
$ShipAmt=split(&quot; &quot;,$Defend[0]);
$ShipsPlusAmt[4][&#039;Defend&#039;]=Merge($Ships,$ShipAmt,&quot;--&gt;&quot;,&quot;\n&quot;);
/* Round 5 */
$DATA=spliti($start_language[&#039;round&#039;].&quot; - 6 -&quot;,$DATA[1],2);
$Round5=$DATA[0];
$Round5=split($start_language[&quot;Attacker&quot;],$Round5,2);
$Round5=split($start_language[&quot;Defender&quot;],$Round5[1],2);
$Attack=$Round5[0];
$Attack=split($Attacker,$Attack);
$Attack=split($start_language[&#039;type&#039;],$Attack[1],2);
$Attack=split($start_language[&#039;number&#039;],$Attack[1],2);
$Ships=split(&quot; &quot;,$Attack[0]);
unset($Ships[0]);
$Attack=spliti($start_language[&#039;round&#039;],$Attack[1],2);
$ShipAmt=split(&quot; &quot;,$Attack[0]);
$ShipsPlusAmt[5][&#039;Attack&#039;]=Merge($Ships,$ShipAmt,&quot;--&gt;&quot;,&quot;\n&quot;);
unset($ShipAmt,$Ships,$ShipsAmt);
$Defend=$Round5[1];
$Defend=split($Defender,$Defend);
$Defend=split($start_language[&#039;type&#039;],$Defend[1],2);
$Defend=split($start_language[&#039;number&#039;],$Defend[1],2);
$Ships=split(&quot; &quot;,$Defend[0]);
unset($Ships[0]);
$Defend=spliti($start_language[&quot;round&quot;],$Defend[1],2);
$ShipAmt=split(&quot; &quot;,$Defend[0]);
$ShipsPlusAmt[5][&#039;Defend&#039;]=Merge($Ships,$ShipAmt,&quot;--&gt;&quot;,&quot;\n&quot;);
/* Round 6 */
$Round6=$DATA[1];
$Round6=split($start_language[&quot;Attacker&quot;],$Round5,2);
$Round6=split($start_language[&quot;Defender&quot;],$Round5[1],2);
$Attack=$Round6[0];
$Attack=split($Attacker,$Attack);
$Attack=split($start_language[&#039;type&#039;],$Attack[1],2);
$Attack=split($start_language[&#039;number&#039;],$Attack[1],2);
$Ships=split(&quot; &quot;,$Attack[0]);
unset($Ships[0]);
$Attack=spliti($start_language[&#039;round&#039;],$Attack[1],2);
$ShipAmt=split(&quot; &quot;,$Attack[0]);
$ShipsPlusAmt[6][&#039;Attack&#039;]=Merge($Ships,$ShipAmt,&quot;--&gt;&quot;,&quot;\n&quot;);
unset($ShipAmt,$Ships,$ShipsAmt);
$Defend=$Round6[1];
$Defend=split($Defender,$Defend);
$Defend=split($start_language[&#039;type&#039;],$Defend[1],2);
$Defend=split($start_language[&#039;number&#039;],$Defend[1],2);
$Ships=split(&quot; &quot;,$Defend[0]);
unset($Ships[0]);
$Defend=spliti($start_language[&quot;round&quot;],$Defend[1],2);
$ShipAmt=split(&quot; &quot;,$Defend[0]);
$ShipsPlusAmt[6][&#039;Defend&#039;]=Merge($Ships,$ShipAmt,&quot;--&gt;&quot;,&quot;\n&quot;);
/* Figure out Last Round and switch ship names back */
function ShipUpdate(&amp;$ShipsPlusAmt,$end_language){
$RoundNumb=1;
extract($end_language);
foreach($ShipsPlusAmt as $Round)
{
    foreach($Round as $Part=&gt;$ShipString)
    {
        $ShipString=str_replace(&quot;Spy_probe&quot;,$spy_probe,$ShipString);
        $ShipString=str_replace(&quot;Small_fighter&quot;,$small_fighter,$ShipString);
        $ShipString=str_replace(&quot;Small_transport&quot;,$small_trans,$ShipString);
        $ShipString=str_replace(&quot;Large_transport&quot;,$large_trans,$ShipString);
        $ShipString=str_replace(&quot;Colony_ship&quot;,$colony_ship,$ShipString);
        $ShipString=str_replace(&quot;Solar_cell&quot;,$solar_cell,$ShipString);
        $ShipString=str_replace(&quot;Stealth_bomber&quot;,$stealth_bomber,$ShipString);
        $ShipString=str_replace(&quot;Imperial_starbase&quot;,$isb,$ShipString);
        $ShipString=str_replace(&quot;Light_graviton_cannon&quot;,$lgc,$ShipString);
        $ShipString=str_replace(&quot;Heavy_graviton_cannon&quot;,$hgc,$ShipString);
        $ShipString=str_replace(&quot;Ion_cannon&quot;,$ion_cannon,$ShipString);
        $ShipString=str_replace(&quot;Positron_lighter&quot;,$positron,$ShipString);
        $ShipString=str_replace(&quot;Interval_cannon&quot;,$ivc,$ShipString);
        $ShipString=str_replace(&quot;Laser_cannon_battery&quot;,$lcb,$ShipString);
        $ShipString=str_replace(&quot;Solar_cannon&quot;,$sc,$ShipString);
        $ShipString=str_replace(&quot;Small_shield_dome&quot;,$ssd,$ShipString);
        $ShipString=str_replace(&quot;Large_shield_dome&quot;,$lsd,$ShipString);
        $ShipsPlusAmt[$RoundNumb][$Part]=$ShipString;
        if($stop)
        {
            break 2;
        }
        if($Part==&quot;Defense&quot; or $Part==&quot;Bomber&quot;)
        {
            continue;
        }
        if(!$ShipString)
        {
            $End=$RoundNumb.&quot; &quot;.$Part;
            $ShipsPlusAmt[$RoundNumb][$Part]=&quot;\[color=&quot;.$color[&quot;destroyed&quot;].&quot;\]&quot;.$end_language[&#039;destroyed&#039;].&quot;\[/color\]&quot;;
            if($Part==&quot;Attack&quot;)
            $WinType=&quot;Defender&quot;;
            elseif($Part==&quot;Defend&quot;)
            $WinType=&quot;Attacker&quot;;
            if($WinType==&quot;Attacker&quot;)
            {
                break 2;
            }
            elseif($WinType==&quot;Defender&quot;)
            {
                $stop=TRUE;
            }
        }
        elseif($RoundNumb==6 &amp;&amp; $Part==&quot;Defend&quot;)
        {
            $End=$RoundNumb.&quot; &quot;.$Part;
            $WinType=&quot;Tie&quot;;
        }
    }
    $RoundNumb++;
}
return $ShipsPlusAmt;
}
$ShipsPlusAmt=ShipUpdate($ShipsPlusAmt,$end_language);
$DATA=$battle;
/* Bottom Section of Attack Report */
if($WinType==&quot;Attack&quot;)
{
    $DATA=split($start_language[&#039;capture_start&#039;],$DATA,2);
    $DATA[1]=trim($DATA[1]);
    $DATA=split($start_language[&#039;pig_iron&#039;],$DATA[1],2);
    $Captured[&quot;Pig&quot;]=$DATA[0];
    $Captured[&quot;Pig&quot;]=str_replace(&quot;.&quot;,&quot;&quot;,$Captured[&quot;Pig&quot;]);
    $DATA=split(&quot;,&quot;,$DATA[1],2);
    $DATA=split($start_language[&#039;metal&#039;],$DATA[1],2);
    $DATA[0]=trim($DATA[0]);
    $Captured[&quot;Metal&quot;]=$DATA[0];
    $Captured[&quot;Metal&quot;]=str_replace(&quot;.&quot;,&quot;&quot;,$Captured[&quot;Metal&quot;]);
    $DATA=split(&quot;,&quot;,$DATA[1],2);
    $DATA=split($start_language[&#039;krypto&#039;],$DATA[1],2);
    $DATA[0]=trim($DATA[0]);
    $Captured[&quot;Kryptonite&quot;]=$DATA[0];
    $Captured[&quot;Kryptonite&quot;]=str_replace(&quot;.&quot;,&quot;&quot;,$Captured[&quot;Kryptonite&quot;]);
    $DATA=split(&quot;,&quot;,$DATA[1],2);
    $DATA=split($start_language[&#039;spice&#039;],$DATA[1],2);
    $DATA[0]=trim($DATA[0]);
    $Captured[&quot;Spice&quot;]=$DATA[0];
    $Captured[&quot;Spice&quot;]=str_replace(&quot;.&quot;,&quot;&quot;,$Captured[&quot;Spice&quot;]);
}
$DATA=split($start_language[&#039;attack_lost&#039;],$DATA[1],2);
$DATA=split($start_language[&#039;units&#039;].&quot;.&quot;,$DATA[1],2);
$Units[&quot;Attack&quot;]=$DATA[0];
$DATA=split($start_language[&#039;defend_lost&#039;],$DATA[1],2);
$DATA=split($start_language[&#039;units&#039;],$DATA[1],2);
$Units[&quot;Defend&quot;]=$DATA[0];
foreach($Units as $side=&gt;$amount)
{
    $Units[$side]=number_clean($Units[$side]);
}
$DATA=split($start_language[&#039;there_are_now&#039;],$DATA[1],2);
$DATA=split($start_language[&#039;metal&#039;],$DATA[1],2);
$Rubble[&quot;Metal&quot;]=$DATA[0];
$Rubble[&quot;Metal&quot;]=number_clean($Rubble[&quot;Metal&quot;]);
if(!NEW_BATTLE_SCRIPT){$DATA=split($start_language[&#039;and&#039;],$DATA[1],2);}
else{$DATA=split(&quot;,&quot;,$DATA[1],2);}
$DATA=split($start_language[&#039;krypto&#039;],$DATA[1],2);
$Rubble[&quot;Kryptonite&quot;]=$DATA[0];
$Rubble[&quot;Kryptonite&quot;]=number_clean($Rubble[&quot;Kryptonite&quot;]);
if(NEW_BATTLE_SCRIPT)
{
$DATA=split($start_language[&#039;and&#039;],$DATA[1],2);
$DATA=split($start_language[&#039;spice&#039;],$DATA[1],2);
$Rubble[&quot;Spice&quot;]=$DATA[0];
$Rubble[&quot;Spice&quot;]=number_clean($Rubble[&quot;Spice&quot;]);
}
$DATA=explode(&quot;. &quot;,$DATA[1],2);
$DATA=split($start_language[&#039;astro_chance&#039;],$DATA[0],2);
$DATA=split(&quot;\%&quot;,$DATA[1],2);
$Asteriod[&quot;Chance&quot;]=$DATA[0];
$Asteriod[&quot;Form&quot;]=FALSE;
if($Asteroid[&quot;Chance&quot;]==&quot;&quot;)
$Asteriod[&quot;Form&quot;]=TRUE;
###############################
#####Formatting Section########
###############################
function format_color($color_array_key,$input)
{
    if(!is_null($GLOBALS[&#039;color&#039;][$color_array_key]))
    {
        $output=&quot;[color=&quot;.$GLOBALS[&#039;color&#039;][$color_array_key].&quot;]&quot;.$input.&quot;[/color]&quot;;
    }
    else
    $output=$input;
    return $output;
}
$Final[&#039;BBcode&#039;]=&quot;[center]&quot;;
if(!is_null($color[&#039;default_color&#039;]))
    $Final[&#039;Top&#039;]=&quot;[color=&quot;.$color[&#039;default_color&#039;].&quot;]&quot;;
else
    $Final[&#039;Top&#039;]=&quot;&quot;;
$Final[&#039;Top&#039;] .=&quot;[b]&quot;.$end_language[&#039;StartSentence&#039;].&quot; &quot;.$DateTime.&quot;[/b]&quot;;
if(!is_null($color[&#039;default_color&#039;]))
    $Final[&#039;Top&#039;] .=&quot;[/color]&quot;;
$upper_round=strtoupper($end_language[&#039;round&#039;]);
if($ShipsPlusAmt[&#039;Stealth&#039;][&#039;Bomber&#039;]!=$end_language[&#039;stealth_bomber&#039;].&quot; &quot;){
$Final[&#039;Stealth_Start&#039;]=format_color(&quot;default_color&quot;,$upper_round.&quot;-&quot;.&quot;STEALTH BOMBER FIRST STRIKE&quot;);
$Final[&#039;Stealth_Attacker_Name&#039;]=format_color(&quot;default_color&quot;,$end_language[&quot;Attacker&quot;].&quot; &quot;.$Attacker);
$Final[&#039;Stealth_Ships&#039;]=$ShipsPlusAmt[&#039;Stealth&#039;][&#039;Bomber&#039;];
$Final[&#039;Stealth_Defender_Name&#039;]=format_color(&quot;default_color&quot;,$end_language[&quot;Defender&quot;].&quot; &quot;.$Defender);
$Final[&#039;Stealth_Defenses&#039;]=$ShipsPlusAmt[&#039;Stealth&#039;][&#039;Defense&#039;];
$Final[&#039;Seperate&#039;]=&quot;\n&quot;;}
$Final[&#039;Round1&#039;]=$upper_round.&quot; -1-&quot;;
$Final[&#039;Attacker-Round1&#039;]=format_color(&quot;attacker_color&quot;,$end_language[&#039;Attacker&#039;].&quot; &quot;.$Attacker);
$Final[&#039;Attacker_Ships-Round1&#039;]=$ShipsPlusAmt[1][&#039;Attack&#039;];
$Final[&#039;Defender-Round1&#039;]=&quot;\n&quot;.format_color(&quot;defender_color&quot;,$end_language[&#039;Defender&#039;].&quot; &quot;.$Defender);
$Final[&#039;Defener_Ships-Round1&#039;]=$ShipsPlusAmt[1][&#039;Defend&#039;];
$RoundAndSideEnd=explode(&quot; &quot;,$End);
$Final_Round=$RoundAndSideEnd[0];
$End_Side=$RoundAndSideEnd[1];
$Final_Round+=0;//Change to numeric
foreach($Captured as $field=&gt;$value)
{
    settype($Captured[$field],&quot;integer&quot;);
}
foreach($Units as $field=&gt;$value)
{
    settype($Units[$field],&quot;integer&quot;);
}
foreach($Rubble as $field=&gt;$value)
{
    settype($Rubble[$field],&quot;integer&quot;);
}
if($Final_Round &lt;&gt; 1){
    $Final[&#039;Final_Round&#039;]=format_color(&quot;default_color&quot;,$upper_round.&quot; &quot;.&quot;-&quot;.$Final_Round_string.&quot;-&quot;);
    $Final[&#039;Attacker-FinalRound&#039;]=format_color(&quot;attacker_color&quot;,$end_language[&#039;Attacker&#039;].&quot; &quot;.$Attacker);
    $Final[&#039;Attacker_Ships-Final&#039;]=$ShipsPlusAmt[$Final_Round][&#039;Attack&#039;];
    $Final[&#039;Defender-FinalRound&#039;]=&quot;\n&quot;.format_color(&quot;defender_color&quot;,$end_language[&#039;Defender&#039;].&quot; &quot;.$Defender);
    $Final[&#039;Defener_Ships-Final&#039;]=$ShipsPlusAmt[$Final_Round][&#039;Defend&#039;];
}
$WinKey=$WinType.&quot;_win&quot;;
$Final[&#039;Win-Sentence&#039;]=format_color(&quot;bottom_basic&quot;,$end_language[$WinKey]);
if($WinType==&quot;Attacker&quot;)
{
    $Capture_Sentence=$end_language[&#039;capture_start&#039;].&quot; &quot;.number_format($Captured[&quot;Pig&quot;],0,&quot;&quot;,&quot;.&quot;).&quot; &quot;.$end_language[&#039;pig_iron&#039;].&quot;,&quot;.&quot; &quot;.number_format($Captured[&quot;Metal&quot;],0,&quot;&quot;,&quot;.&quot;).&quot; &quot;.$end_language[&#039;metal&#039;].&quot;,&quot;.&quot; &quot;.number_format($Captured[&quot;Kryptonite&quot;],0,&quot;&quot;,&quot;.&quot;).&quot; &quot;.$end_language[&#039;krypto&#039;].&quot;,&quot;.&quot; &quot;.$end_language[&#039;and&#039;].&quot; &quot;.number_format($Captured[&quot;Spice&quot;],0,&quot;&quot;,&quot;.&quot;).&quot; &quot;.$end_language[&#039;spice&#039;].&quot;.&quot;;
    $Final[&#039;Capture_Sentence&#039;]=format_color(&quot;capture&quot;,$Capture_Sentence);
}
$Attacker_Lost=$end_language[&#039;attack_lost&#039;].&quot; &quot;.number_format($Units[&quot;Attack&quot;],0,&quot;&quot;,&quot;.&quot;).&quot; &quot;.$end_language[&#039;units&#039;].&quot;.&quot;;
$Final[&#039;Attacker_Lost&#039;]=format_color(&quot;bottom_basic&quot;,$Attacker_Lost);
$Defender_Lost=$end_language[&#039;defend_lost&#039;].&quot; &quot;.number_format($Units[&quot;Defend&quot;],0,&quot;&quot;,&quot;.&quot;).&quot; &quot;.$end_language[&#039;units&#039;].&quot;.&quot;;
$Final[&#039;Defender_Lost&#039;]=format_color(&quot;defend_lost&quot;,$Defender_Lost);
$Rubble_Sentence=$end_language[&#039;there_are_now&#039;].&quot; &quot;.number_format($Rubble[&quot;Metal&quot;],0,&quot;&quot;,&quot;.&quot;).&quot; &quot;.$end_language[&#039;metal&#039;];
if(!NEW_BATTLE_SCRIPT){$Rubble_Sentence .=&quot; &quot;.$end_language[&#039;and&#039;].&quot; &quot;;}
else{$Rubble_Sentence .=&quot;,&quot;.&quot; &quot;;}
$Rubble_Sentence .=number_format($Rubble[&quot;Kryptonite&quot;],0,&quot;&quot;,&quot;.&quot;).&quot; &quot;.$end_language[&#039;krypto&#039;];
if(NEW_BATTLE_SCRIPT){$Rubble_Sentence .=&quot; &quot;.$end_language[&#039;and&#039;].&quot; &quot;.number_format($Rubble[&quot;Spice&quot;],0,&quot;&quot;,&quot;.&quot;).&quot; &quot;.$end_language[&#039;spice&#039;];}
$Final[&#039;Rubble_Sentence&#039;]=format_color(&quot;bottom_basic&quot;,$Rubble_Sentence);
if($Asteroid[&quot;Form&quot;])
{
    $Final[&#039;Asteroid&#039;]=format_color(&quot;default_color&quot;,$end_language[&#039;astro_form&#039;]);
}
else
{
    $Final[&#039;Asteroid&#039;]=format_color(&quot;default_color&quot;,$end_language[&#039;astro_chance&#039;].&quot; &quot;.number_format($Asteroid[&quot;Chance&quot;],0,&quot;&quot;,&quot;.&quot;).&quot;%&quot;);
}
$Final[&#039;BBCodeEnd&#039;]=&quot;[/center]&quot;;
$Converted=implode(&quot;\n\n&quot;,$Final);
?&gt;</code></pre></div><br /><br /><p>The part that the str_replace isn&#039;t working in is in the function ShipUpdate:<br /></p><div class="codebox"><pre><code>function ShipUpdate(&amp;$ShipsPlusAmt,$end_language){
    $RoundNumb=1;
    extract($end_language);
    foreach($ShipsPlusAmt as $Round)
    {
        foreach($Round as $Part=&gt;$ShipString)
        {
            $ShipString=str_replace(&quot;Spy_probe&quot;,$spy_probe,$ShipString);
            $ShipString=str_replace(&quot;Small_fighter&quot;,$small_fighter,$ShipString);
            $ShipString=str_replace(&quot;Small_transport&quot;,$small_trans,$ShipString);
            $ShipString=str_replace(&quot;Large_transport&quot;,$large_trans,$ShipString);
            $ShipString=str_replace(&quot;Colony_ship&quot;,$colony_ship,$ShipString);
            $ShipString=str_replace(&quot;Solar_cell&quot;,$solar_cell,$ShipString);
            $ShipString=str_replace(&quot;Stealth_bomber&quot;,$stealth_bomber,$ShipString);
            $ShipString=str_replace(&quot;Imperial_starbase&quot;,$isb,$ShipString);
            $ShipString=str_replace(&quot;Light_graviton_cannon&quot;,$lgc,$ShipString);
            $ShipString=str_replace(&quot;Heavy_graviton_cannon&quot;,$hgc,$ShipString);
            $ShipString=str_replace(&quot;Ion_cannon&quot;,$ion_cannon,$ShipString);
            $ShipString=str_replace(&quot;Positron_lighter&quot;,$positron,$ShipString);
            $ShipString=str_replace(&quot;Interval_cannon&quot;,$ivc,$ShipString);
            $ShipString=str_replace(&quot;Laser_cannon_battery&quot;,$lcb,$ShipString);
            $ShipString=str_replace(&quot;Solar_cannon&quot;,$sc,$ShipString);
            $ShipString=str_replace(&quot;Small_shield_dome&quot;,$ssd,$ShipString);
            $ShipString=str_replace(&quot;Large_shield_dome&quot;,$lsd,$ShipString);
            $ShipsPlusAmt[$RoundNumb][$Part]=$ShipString;
            if($stop)
            {
                break 2;
            }
            if($Part==&quot;Defense&quot; or $Part==&quot;Bomber&quot;)
            {
                continue;
            }
            if(!$ShipString)
            {
                $End=$RoundNumb.&quot; &quot;.$Part;
                $ShipsPlusAmt[$RoundNumb][$Part]=&quot;\[color=&quot;.$color[&quot;destroyed&quot;].&quot;\]&quot;.$end_language[&#039;destroyed&#039;].&quot;\[/color\]&quot;;
                if($Part==&quot;Attack&quot;)
                $WinType=&quot;Defender&quot;;
                elseif($Part==&quot;Defend&quot;)
                $WinType=&quot;Attacker&quot;;
                if($WinType==&quot;Attacker&quot;)
                {
                    break 2;
                }
                elseif($WinType==&quot;Defender&quot;)
                {
                    $stop=TRUE;
                }
            }
            elseif($RoundNumb==6 &amp;&amp; $Part==&quot;Defend&quot;)
            {
                $End=$RoundNumb.&quot; &quot;.$Part;
                $WinType=&quot;Tie&quot;;
            }
        }
        $RoundNumb++;
    }
    return $ShipsPlusAmt;
}</code></pre></div><p>It also didn&#039;t work when it was out of function, so I really don&#039;t know the problem.</p><br /><p>If you need the languages.php page, where the $end_language array is, here it is:<br /></p><div class="codebox"><pre><code>&lt;?php
require_once(&quot;connect.php&quot;);
$connect=mysqli_connect(SERVER_LOC,SERVER_USER,SERVER_PASS,DATABASE_NAME) or die(&quot;Could not connect to server&quot;);
if($_POST[&#039;StartLang&#039;]!=&quot;Select a starting language&quot; &amp;&amp; !is_null($_POST[&#039;StartLang&#039;]))
{
    $query=&quot;SELECT * FROM `Languages` WHERE `lang_Key`=&#039;&quot;.$_POST[&#039;StartLang&#039;].&quot;&#039;&quot;;
}
else
{
    $query=&quot;SELECT * FROM `Languages` WHERE `lang_Key`=&#039;EN&#039;&quot;;
}
$results=mysqli_query($connect,$query);
$start_language=mysqli_fetch_assoc($results);
unset($start_language[&quot;username&quot;],$start_language[&quot;langName&quot;]);
if($_POST[&#039;EndLang&#039;]!=&quot;Select a result language&quot; &amp;&amp; !is_null($_POST[&#039;EndLang&#039;]))
{
    $query=&quot;SELECT * FROM `Languages` WHERE `lang_Key`=&#039;&quot;.$_POST[&#039;EndLang&#039;].&quot;&#039;&quot;;
}
elseif($_POST[&#039;StartLang&#039;]==&quot;Select a starting language&quot;)
{
    $query=&quot;SELECT * FROM `Languages` WHERE `lang_Key`=&#039;EN&#039;&quot;;
}
else
{
    $query=&quot;SELECT * FROM `Languages` WHERE `lang_Key`=&#039;&quot;.$_POST[&#039;StartLang&#039;].&quot;&#039;&quot;;
}
$results=mysqli_query($connect,$query);
$end_language=mysqli_fetch_assoc($results);
if($start_language[&quot;lang_Key&quot;]==&quot;EN&quot; &amp;&amp; !($_POST[&#039;EndLang&#039;]!=&quot;Select a result language&quot; &amp;&amp; !is_null($_POST[&#039;EndLang&#039;])))
    $end_language=$start_language;
unset($end_language[&quot;lang_Key&quot;],$end_language[&quot;username&quot;],$end_language[&quot;langName&quot;],$start_language[&quot;lang_Key&quot;]);
mysqli_close($connect);
?&gt;</code></pre></div><p>I know that the database connects, so that isn&#039;t the problem.&nbsp; $end_language is defined exactly how I want it, the str_replace just doesn&#039;t work.</p>]]></description>
			<author><![CDATA[dummy@example.com (jkmaster9918)]]></author>
			<pubDate>Wed, 16 Sep 2009 21:08:55 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/22155/php-help-strreplace-isnt-working/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[CloudCMS]]></title>
			<link>http://punbb.informer.com/forums/topic/21489/cloudcms/new/posts/</link>
			<description><![CDATA[<p>Small Content Management System I wrote which doesn&#039;t use MySQL databases. It&#039;s less than 100kb and still in Alpha, but is usable.</p><p><a href="http://code.google.com/p/cloudcms/">http://code.google.com/p/cloudcms/</a></p><p>What do you think?</p>]]></description>
			<author><![CDATA[dummy@example.com (Weasley)]]></author>
			<pubDate>Sat, 12 Sep 2009 21:52:42 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/21489/cloudcms/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Top tips for a beginner coder?]]></title>
			<link>http://punbb.informer.com/forums/topic/21055/top-tips-for-a-beginner-coder/new/posts/</link>
			<description><![CDATA[<p>yep, ima noob to coding,</p><p>but i would like to learn, so if youve got any tips/useful codes please let me know</p>]]></description>
			<author><![CDATA[dummy@example.com (Weasley)]]></author>
			<pubDate>Thu, 10 Sep 2009 15:03:33 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/21055/top-tips-for-a-beginner-coder/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[PHP examples]]></title>
			<link>http://punbb.informer.com/forums/topic/21979/php-examples/new/posts/</link>
			<description><![CDATA[<p>Hi,<br />These are working for me, feel free to use them at your own risk</p><p>class MSSoapClient extends SoapClient {<br />&nbsp; &nbsp; private $namespace;<br />&nbsp; &nbsp; function __doRequest($request, $location, $action, $version) {<br />&nbsp; &nbsp; &nbsp; &nbsp; </p><p>&nbsp; &nbsp; &nbsp; &nbsp; $request = preg_replace(&#039;/&lt;ns1:(\w+)/&#039;, &#039;&lt;$1 xmlns=&quot;&#039;.$this-&gt;namespace.&#039;&quot;&#039;, $request, 1);<br />&nbsp; &nbsp; &nbsp; &nbsp; $request = preg_replace(&#039;/&lt;ns1:(\w+)/&#039;, &#039;&lt;$1&#039;, $request);<br />&nbsp; &nbsp; &nbsp; &nbsp; $request = str_replace(array(&#039;/ns1:&#039;, &#039;xmlns:ns1=&quot;&#039;.$this-&gt;namespace.&#039;&quot;&#039;), array(&#039;/&#039;, &#039;&#039;), $request);<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; // parent call<br />&nbsp; &nbsp; &nbsp; &nbsp; return parent::__doRequest($request, $location, $action, $version);<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; function setNamespace($sNamespace)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;namespace=$sNamespace;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; <br />}&nbsp; </p><p>To make a new customer - I&#039;m only you can extend the function to add other details to the record.</p><p>function newKashflowCustomer($soapClient,$idAccount,$name,$address,$town,$postcode,$country,$email)<br />{<br />&nbsp; &nbsp; //returns customer id if ok else 0<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; $today = date(&quot;Y-m-d&quot;,mktime());<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; $customerArray = array(<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;CustomerID&quot;=&gt;&quot;&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Code&quot;=&gt;&quot;&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Name&quot;=&gt;&quot;$name&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Contact&quot;=&gt;&quot;&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Telephone&quot;=&gt;&quot;&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Mobile&quot;=&gt;&quot;&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Fax&quot;=&gt;&quot;&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Email&quot;=&gt;&quot;$email&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Address1&quot;=&gt;&quot;$address&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Address2&quot;=&gt;&quot;&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Address3&quot;=&gt;&quot;$town&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Address4&quot;=&gt;&quot;$country&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Postcode&quot;=&gt;&quot;$postcode&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Website&quot;=&gt;&quot;&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;EC&quot;=&gt;&quot;0&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Notes&quot;=&gt;&quot;&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Source&quot;=&gt;&quot;&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Discount&quot;=&gt;&quot;0&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;ShowDiscount&quot;=&gt;&quot;0&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;PaymentTerms&quot;=&gt;&quot;0&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;ExtraText1&quot;=&gt;&quot;1&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;ExtraText2&quot;=&gt;&quot;1&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;CheckBox1&quot;=&gt;&quot;1&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;CheckBox2&quot;=&gt;&quot;1&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Created&quot;=&gt;&quot;$today&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;Updated&quot;=&gt;&quot;$today&quot;);<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; $args = array (&quot;UserName&quot;=&gt;&quot;your username here&quot;, &quot;Password&quot;=&gt;&quot;your password here&quot;,&quot;custr&quot;=&gt;$customerArray);<br />&nbsp; &nbsp; $oResponse = $soapClient-&gt;InsertCustomer($args);<br />&nbsp; &nbsp; //handle any errors<br />&nbsp; &nbsp; if($oResponse-&gt;Status != &quot;OK&quot;)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; echo $oResponse-&gt;StatusDetail;<br />&nbsp; &nbsp; &nbsp; &nbsp; $return = 0;</p><p>&nbsp; &nbsp; }<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; $id = $oResponse-&gt;InsertCustomerResult;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; $return = $id;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; return $return;<br />}</p>]]></description>
			<author><![CDATA[dummy@example.com (videocapture1)]]></author>
			<pubDate>Thu, 10 Sep 2009 06:01:04 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/21979/php-examples/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[RAMSES modes of address]]></title>
			<link>http://punbb.informer.com/forums/topic/22036/ramses-modes-of-address/new/posts/</link>
			<description><![CDATA[<p>How works the four modes of address in RAMSES ?<br />Direct, Indirect, Immediate and Indexed<br />If possible, an example with the four modes.</p><p>Thanks in advance....</p>]]></description>
			<author><![CDATA[dummy@example.com (andrewmoquin)]]></author>
			<pubDate>Thu, 20 Aug 2009 08:44:23 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/22036/ramses-modes-of-address/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[PHP loop through database and limit number of entries]]></title>
			<link>http://punbb.informer.com/forums/topic/21982/php-loop-through-database-and-limit-number-of-entries/new/posts/</link>
			<description><![CDATA[<p>Hello,<br />Going to try to explain this as best I can. I have a bunch of stuff in a database and I need to display this info within a table. This isn&#039;t a problem at all but, I need it to only display 3 td tags per line and then move on to the row.</p><p>so i need it to do :</p><p>code:</p><p>&lt;table&gt;<br />&lt;tr&gt;<br />&lt;td&gt;My First Row&lt;/td&gt;<br />&lt;td&gt;My First Row 2&lt;/td&gt;<br />&lt;td&gt;My First Row 3&lt;/td&gt;<br />&lt;/tr&gt;</p><p>&lt;tr&gt;<br />&lt;td&gt;My Second Row&lt;/td&gt;<br />&lt;td&gt;My Second Row 2&lt;/td&gt;<br />&lt;td&gt;My Second Row 3&lt;/td&gt;<br />&lt;/tr&gt;<br />&lt;/table&gt;</p><br /><br /><p>and continue to do this through every entry in the database table.</p><p>so I have something like this that will display the info:</p><p>code:</p><p>for ($i = 1; $i &lt;= $num; $i++){<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; $chairArray = mysql_fetch_array($chairResult);<br />&nbsp; &nbsp; &nbsp; &nbsp; $chairName = $chairArray[&#039;name&#039;];<br />&nbsp; &nbsp; &nbsp; &nbsp; $chairDescription = $chairArray[&#039;description&#039;];<br />&nbsp; &nbsp; &nbsp; &nbsp; $chairImage = $chairArray[&#039;image&#039;];<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;tr&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;td&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;img src=\&quot;images/catalog/ottomans/thumbs/$chairImage\&quot; width=\&quot;157\&quot; height=\&quot;147\&quot; /&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;br /&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo $chairName;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;/td&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; echo &quot;&lt;/tr&gt;&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; }</p>]]></description>
			<author><![CDATA[dummy@example.com (Utchin)]]></author>
			<pubDate>Sat, 15 Aug 2009 19:13:26 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/21982/php-loop-through-database-and-limit-number-of-entries/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[can someone help me code this right]]></title>
			<link>http://punbb.informer.com/forums/topic/21502/can-someone-help-me-code-this-right/new/posts/</link>
			<description><![CDATA[<div class="codebox"><pre><code>    echo &quot;&lt;td&gt;&lt;a href=\&quot;&quot;.PUN_ROOT.&quot;gallery/&quot;.$file.&quot;\&quot;&gt;&quot;.$file.&quot;&lt;/a&gt;&lt;/td&gt;\n&quot;;</code></pre></div><p>i want to replace the hyper link to a image link<br />i want a fixed size of 50px for both width and height.</p><p>width=&quot;50&quot; height=&quot;50&quot;</p><p>&nbsp; &nbsp; </p><div class="codebox"><pre><code>echo &quot;&lt;td&gt;&lt;img src=\&quot;&quot;.PUN_ROOT.&quot;gallery/&quot;.$file.&quot;\&quot;&gt;&quot;&lt;/td&gt;\n&quot;;</code></pre></div><br /><p>Q</p>]]></description>
			<author><![CDATA[dummy@example.com (fisher39)]]></author>
			<pubDate>Thu, 13 Aug 2009 17:57:56 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/21502/can-someone-help-me-code-this-right/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Redefining PHP Classes]]></title>
			<link>http://punbb.informer.com/forums/topic/21980/redefining-php-classes/new/posts/</link>
			<description><![CDATA[<p>Hey there,</p><p>I have a class A that uses class B. Class B also uses class A. This is recursive and am wondering if you can redefine PHP classes like in C++.</p><p>class A{}</p><p>class B{<br />&nbsp; &nbsp; private $classA;</p><p>&nbsp; &nbsp; public function __construct($classA){<br />&nbsp; &nbsp; &nbsp; &nbsp;$this-&gt;classA = $classA;<br />&nbsp; &nbsp; }</p><p>&nbsp; &nbsp; public function someFunc(){ echo &#039;blah&#039;; }<br />}</p><p>class A{<br />&nbsp; &nbsp; private $classB;</p><p>&nbsp; &nbsp; public function __construct($classB){<br />&nbsp; &nbsp; &nbsp; &nbsp; $classB-&gt;someFunc();<br />&nbsp; &nbsp; }<br />}</p>]]></description>
			<author><![CDATA[dummy@example.com (gilbertsavier)]]></author>
			<pubDate>Thu, 06 Aug 2009 05:49:04 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/21980/redefining-php-classes/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[function parameters]]></title>
			<link>http://punbb.informer.com/forums/topic/21872/function-parameters/new/posts/</link>
			<description><![CDATA[<p>Hi,<br />In the code below, I understand the $place variable and how it&#039;s working. What I can&#039;t understand is how I&#039;M getting the output &quot;he played 1, 2, etc... How is that function and the $stanza variable returning a single digit number? Thanks<br />&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&quot;&gt;<br />&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;<br />&lt;title&gt;Param Old Man&lt;/title&gt;<br />&lt;/head&gt;</p><p>&lt;body&gt;</p><p>&lt;h1&gt;Param Old Man&lt;/h1&gt;<br />&lt;h3&gt;Demonstrates use of function parameters&lt;/h3&gt;<br />&lt;?php</p><p>print verse(1);<br />print chorus();<br />print verse(2);<br />print chorus();<br />print verse(3);<br />print chorus();<br />print verse(4);<br />print chorus();</p><p>function verse($stanza)<br />{<br />&nbsp; &nbsp; switch($stanza)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; case 1:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $place = &quot;thumb&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; case 2:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $place = &quot;shoe&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; case 3:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $place = &quot;knee&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; case 4:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $place = &quot;door&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />&nbsp; &nbsp; &nbsp; &nbsp; default:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $place = &quot;I don&#039;t know where&quot;;<br />&nbsp; &nbsp; } //end switch</p><p>&nbsp; &nbsp; $output = &lt;&lt;&lt;HERE<br />&nbsp; &nbsp; This old man, he played $stanza&lt;br&gt;<br />&nbsp; &nbsp; He played knick-knack on my $place&lt;br&gt;&lt;br&gt;<br />HERE;<br />&nbsp; &nbsp; return $output;<br />} //end veruse</p><p>function chorus()<br />{<br />&nbsp; &nbsp; $output = &lt;&lt;&lt;HERE<br />&nbsp; &nbsp; ...with a knick-knack&lt;br&gt;<br />&nbsp; &nbsp; paddy-wack&lt;br&gt;<br />&nbsp; &nbsp; give a dog a bone&lt;br&gt;<br />&nbsp; &nbsp; this old man came rolling home&lt;br&gt;<br />&nbsp; &nbsp; &lt;br&gt;&lt;br&gt;<br />HERE;<br />&nbsp; &nbsp; return $output;<br />}// end chorus</p><p>?&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;</p>]]></description>
			<author><![CDATA[dummy@example.com (Garciat)]]></author>
			<pubDate>Fri, 10 Jul 2009 03:30:50 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/21872/function-parameters/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[php sort using associative array]]></title>
			<link>http://punbb.informer.com/forums/topic/21871/php-sort-using-associative-array/new/posts/</link>
			<description><![CDATA[<p>Hi,<br />I&#039;m using krsort, ksort, arsort and asort in a script. Fine all goes perfectly, except that the sort field is based on file names from the directory contents, and they are (historically) ugly, as in MMDDYY, not YYYYMMDD, causing the different years to be interspersed together.<br />if($_GET[&#039;sort&#039;] == &#039;alpha&#039;){<br />&nbsp; &nbsp; if($_GET[&#039;mode&#039;] == &#039;desc&#039;){<br />&nbsp; &nbsp; &nbsp; &nbsp; krsort($files);<br />&nbsp; &nbsp; &nbsp; &nbsp; $highlight = &#039;alpha_desc&#039;;<br />&nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; ksort($files);<br />&nbsp; &nbsp; &nbsp; &nbsp; $highlight = &#039;alpha_asc&#039;;<br />&nbsp; &nbsp; }<br />} else {<br />&nbsp; &nbsp; if($_GET[&#039;mode&#039;] == &#039;asc&#039;){<br />&nbsp; &nbsp; &nbsp; &nbsp; asort($files, SORT_NUMERIC);<br />&nbsp; &nbsp; &nbsp; &nbsp; $highlight = &#039;date_asc&#039;;<br />&nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; &nbsp; arsort($files, SORT_NUMERIC);<br />&nbsp; &nbsp; &nbsp; &nbsp; $highlight = &#039;date_desc&#039;;<br />&nbsp; &nbsp; }<br />}</p>]]></description>
			<author><![CDATA[dummy@example.com (gilbertsavier)]]></author>
			<pubDate>Wed, 08 Jul 2009 07:14:18 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/21871/php-sort-using-associative-array/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Creating Indexes]]></title>
			<link>http://punbb.informer.com/forums/topic/21839/creating-indexes/new/posts/</link>
			<description><![CDATA[<p>Hi,<br />Database indexes help to speed the retrieval of data from MySQL database server faster. When retrieving the data, MySQL first check whether the indexes exists; If yes it will use index to select exact physical corresponding rows without scanning the whole table.</p><p>In general, it is suggested that you should put indexes on columns you usually use in retrieval such as primary key columns and columns used in join and sorts. Why not index every column? The most significant is that building and maintaining an indexes tables take time and storage space on database.</p><p>Usually you create indexes when creating tables. Any column in creating table statement declared as PRIMARY KEY, KEY, UNIQUE or INDEX will be indexed by MySQL. In addition, you can add indexes to the tables which has data. The statement to create index in MySQL as follows:</p><p>CREATE [UNIQUE|FULLTEXT|SPATIAL] INDEX index_name<br />USING [BTREE | HASH | RTREE] <br />ON table_name (column_name [(length)] [ASC | DESC],...)</p><p>First you specify the index based on the table types or storage engine:</p><p>&nbsp; &nbsp; * UNIQUE means MySQL will create a constraint that all values in the index must be distinct. Duplicated NULL is allowed in all storage engine except BDB.<br />&nbsp; &nbsp; * FULLTEXT index is supported only by MyISAM storage engine and only accepted columns which have data type is CHAR,VARCHAR or TEXT.<br />&nbsp; &nbsp; * SPATIAL index supports spatial column and available in MyISAM storage engine. In addition, the column value must not be NULL.</p><p>Then you name the index using index types such as BTREE, HASH or RTREE also based on storage engine. Here are the list:<br />Storage Engine &nbsp; &nbsp; Allowable Index Types<br />MyISAM &nbsp; &nbsp; BTREE, RTREE<br />InnoDB &nbsp; &nbsp; BTREE<br />MEMORY/HEAP &nbsp; &nbsp; HASH, BTREE<br />NDB &nbsp; &nbsp; HASH</p> <br /><p>Finally you declare which column on which table using the index.</p><p>In our sample database you can add index to officeCode column on employees table to make the join operation with office table faster as follows:</p><p>CREATE INDEX officeCode ON employees(officeCode)</p>]]></description>
			<author><![CDATA[dummy@example.com (TheGardener)]]></author>
			<pubDate>Sat, 04 Jul 2009 03:13:46 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/21839/creating-indexes/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Little PHP help please (PunBB related)]]></title>
			<link>http://punbb.informer.com/forums/topic/21815/little-php-help-please-punbb-related/new/posts/</link>
			<description><![CDATA[<p>Don&#039;t shoot me, but I&#039;m a SQL Server, ASP, ASP.Net guy, but like all good programmers, we can quickly adapt to other languages given time.&nbsp; </p><p>So I&#039;m trying to edit a bit of the PunBB &quot;pun_pm&quot; extension.&nbsp; After several hours of tracing code back and reading on the forum, I&#039;ve found that cache_hooks.php is where I want to make my edit.&nbsp; I&#039;ve also found the exact snippet I want to update, but I can&#039;t get it to work yet.</p><p>Idea: When a user gets a PM, show a large flashy image or something to actually get attention.&nbsp; I&#039;ve gone several weeks not noticing the New Message (1) hyperlink.&nbsp; I&#039;m not the only one either.&nbsp; So basically I want to say &quot;when New Message count &gt; 0, show big flashy image, otherwise, business as usual&quot;</p><p>Here&#039;s the code in cache_hooks.com</p><div class="codebox"><pre><code>        $visit_elements[\&#039;&lt;!-- forum_visit --&gt;\&#039;] = preg_replace(\&#039;#(&lt;p id=&quot;visit-links&quot; class=&quot;options&quot;&gt;.*?)(&lt;/p&gt;)#\&#039;, \&#039;$1 &lt;span&gt;&lt;a href=&quot;\&#039;.forum_link($forum_url[\&#039;pun_pm_inbox\&#039;]).\&#039;&quot;&gt;\&#039;.pun_pm_unread_messages().\&#039;&lt;/a&gt;&lt;/span&gt;$2\&#039;, $visit_elements[\&#039;&lt;!-- forum_visit --&gt;\&#039;]);</code></pre></div><p>Here&#039;s what I&#039;m trying to do:<br /></p><div class="codebox"><pre><code>If (pun_pm_unread_messages() &gt; 0)
{
        $visit_elements[\&#039;&lt;!-- forum_visit --&gt;\&#039;] = preg_replace(\&#039;#(&lt;p id=&quot;visit-links&quot; class=&quot;options&quot;&gt;.*?)(&lt;/p&gt;)#\&#039;, \&#039;$1 &lt;span&gt;&lt;a href=&quot;\&#039;.forum_link($forum_url[\&#039;pun_pm_inbox\&#039;]).\&#039;&quot;&gt;&lt;img src=&quot;http://www.blah.com/mybigflashygif.gif&quot;&gt;&lt;/a&gt;&lt;/span&gt;$2\&#039;, $visit_elements[\&#039;&lt;!-- forum_visit --&gt;\&#039;]);
}
else (same as original)
{
        $visit_elements[\&#039;&lt;!-- forum_visit --&gt;\&#039;] = preg_replace(\&#039;#(&lt;p id=&quot;visit-links&quot; class=&quot;options&quot;&gt;.*?)(&lt;/p&gt;)#\&#039;, \&#039;$1 &lt;span&gt;&lt;a href=&quot;\&#039;.forum_link($forum_url[\&#039;pun_pm_inbox\&#039;]).\&#039;&quot;&gt;\&#039;.pun_pm_unread_messages().\&#039;&lt;/a&gt;&lt;/span&gt;$2\&#039;, $visit_elements[\&#039;&lt;!-- forum_visit --&gt;\&#039;]);
}</code></pre></div><p>Thanks for all help</p>]]></description>
			<author><![CDATA[dummy@example.com (Parpalak)]]></author>
			<pubDate>Thu, 25 Jun 2009 09:57:07 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/21815/little-php-help-please-punbb-related/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Can any one help me with this c++ programming question?]]></title>
			<link>http://punbb.informer.com/forums/topic/21651/can-any-one-help-me-with-this-c-programming-question/new/posts/</link>
			<description><![CDATA[<p>Hi,</p><p>Can anyone write a c++ programme which allows the user to solve the following non-linear equation:</p><p>f(x) = sin(2 x / 5) - x + 1 = 0</p><p>to an accuracy of 10^(-5) using both the Bisection Method and the Newton-Raphson method. <br />The user has to input the appropriate initial estimates to the actual root.</p><p>Thanks For The Help!</p>]]></description>
			<author><![CDATA[dummy@example.com (Scripted)]]></author>
			<pubDate>Thu, 04 Jun 2009 03:03:44 +0000</pubDate>
			<guid>http://punbb.informer.com/forums/topic/21651/can-any-one-help-me-with-this-c-programming-question/new/posts/</guid>
		</item>
	</channel>
</rss>
