Emotion not working when i upload it web server
<p>I am facing problem when i upload my code to server.</p>

<p>on localhost they work fine.</p>

<pre><code>function smilies($text) {
        $smilies = array(
            '&gt;:('    =&gt;  '&lt;img src="image/icon/angry.png" alt="angry" class="icon_smile" /&gt;',
            '(angry)'    =&gt;  '&lt;img src="image/icon/angry.png" alt="angry" class="icon_smile" /&gt;',
            '(Angry)'    =&gt;  '&lt;img src="image/icon/angry.png" alt="angry" class="icon_smile" /&gt;',
            '(ANGRY)'    =&gt;  '&lt;img src="image/icon/angry.png" alt="angry" class="icon_smile" /&gt;',

            'B|'    =&gt;  '&lt;img src="image/icon/cool.png" alt="cool" class="icon_smile" /&gt;',
            '(cool)'    =&gt;  '&lt;img src="image/icon/cool.png" alt="cool" class="icon_smile" /&gt;',
            '(Cool)'    =&gt;  '&lt;img src="image/icon/cool.png" alt="cool" class="icon_smile" /&gt;',
            '(COOL)'    =&gt;  '&lt;img src="image/icon/cool.png" alt="cool" class="icon_smile" /&gt;',

            '(cry)'    =&gt;  '&lt;img src="image/icon/cry.png" alt="cry" class="icon_smile" /&gt;',
            '(Cry)'    =&gt;  '&lt;img src="image/icon/cry.png" alt="cry" class="icon_smile" /&gt;', 
            '(CRY)'    =&gt;  '&lt;img src="image/icon/cry.png" alt="cry" class="icon_smile" /&gt;', 

            '^_^'    =&gt;  '&lt;img src="image/icon/veryhappy.png" alt="veryhappy" class="icon_smile" /&gt;',

            '(drunk)'    =&gt;  '&lt;img src="image/icon/drunk.png" alt="drunk" class="icon_smile" /&gt;',
            '(Drunk)'    =&gt;  '&lt;img src="image/icon/drunk.png" alt="drunk" class="icon_smile" /&gt;',
            '(DRUNK)'    =&gt;  '&lt;img src="image/icon/drunk.png" alt="drunk" class="icon_smile" /&gt;',

            ':D'    =&gt;  '&lt;img src="image/icon/happy.png" alt="happy" class="icon_smile" /&gt;',
            ':d'    =&gt;  '&lt;img src="image/icon/happy.png" alt="happy" class="icon_smile" /&gt;',
            '(happy)'    =&gt;  '&lt;img src="image/icon/happy.png" alt="happy" class="icon_smile" /&gt;',
            '(Happy)'    =&gt;  '&lt;img src="image/icon/happy.png" alt="happy" class="icon_smile" /&gt;',
            '(HAPPY)'    =&gt;  '&lt;img src="image/icon/happy.png" alt="happy" class="icon_smile" /&gt;',

            ':)'    =&gt;  '&lt;img src="image/icon/smile.png" alt="smile" class="icon_smile" /&gt;',
            '=)'    =&gt;  '&lt;img src="image/icon/smile.png" alt="smile" class="icon_smile" /&gt;',            
            '(smile)'    =&gt;  '&lt;img src="image/icon/smile.png" alt="smile" class="icon_smile" /&gt;',
            '(Smile)'    =&gt;  '&lt;img src="image/icon/smile.png" alt="smile" class="icon_smile" /&gt;',
            '(SMILE)'    =&gt;  '&lt;img src="image/icon/smile.png" alt="smile" class="icon_smile" /&gt;',


            '8)'    =&gt;  '&lt;img src="image/icon/nerd.png" alt="nerd" class="icon_smile" /&gt;',
            '(nerd)'    =&gt;  '&lt;img src="image/icon/nerd.png" alt="nerd" class="icon_smile" /&gt;',
            '(Nerd)'    =&gt;  '&lt;img src="image/icon/nerd.png" alt="nerd" class="icon_smile" /&gt;',
            '(NERD)'    =&gt;  '&lt;img src="image/icon/nerd.png" alt="nerd" class="icon_smile" /&gt;',

            ':3'    =&gt;  '&lt;img src="image/icon/blush.png" alt="blush" class="icon_smile" /&gt;',
            '(blush)'    =&gt;  '&lt;img src="image/icon/blush.png" alt="blush" class="icon_smile" /&gt;',
            '(Blush)'    =&gt;  '&lt;img src="image/icon/blush.png" alt="blush" class="icon_smile" /&gt;',
            '(BLUSH)'    =&gt;  '&lt;img src="image/icon/blush.png" alt="blush" class="icon_smile" /&gt;',

            ':o'    =&gt;  '&lt;img src="image/icon/ohh.png" alt="ohh" class="icon_smile" /&gt;',
            '(ohh)'    =&gt;  '&lt;img src="image/icon/ohh.png" alt="ohh" class="icon_smile" /&gt;',
            '(Ohh)'    =&gt;  '&lt;img src="image/icon/ohh.png" alt="ohh" class="icon_smile" /&gt;',
            '(OHH)'    =&gt;  '&lt;img src="image/icon/ohh.png" alt="ohh" class="icon_smile" /&gt;',


            ':(('    =&gt;  '&lt;img src="image/icon/sadblush.png" alt="sadblush" class="icon_smile" /&gt;',
            '(SADBLUSH)'    =&gt;  '&lt;img src="image/icon/sadblush.png" alt="sadblush" class="icon_smile" /&gt;',
            '(Sadblush)'    =&gt;  '&lt;img src="image/icon/sadblush.png" alt="sadblush" class="icon_smile" /&gt;',
            '(sadblush)'    =&gt;  '&lt;img src="image/icon/sadblush.png" alt="sadblush" class="icon_smile" /&gt;',

            ':P'    =&gt;  '&lt;img src="image/icon/lick.png" alt="lick" class="icon_smile" /&gt;',
            '=p'    =&gt;  '&lt;img src="image/icon/lick.png" alt="lick" class="icon_smile" /&gt;',
            ':p'    =&gt;  '&lt;img src="image/icon/lick.png" alt="lick" class="icon_smile" /&gt;',
            '=P'    =&gt;  '&lt;img src="image/icon/lick.png" alt="lick" class="icon_smile" /&gt;',
            '(lick)'    =&gt;  '&lt;img src="image/icon/lick.png" alt="lick" class="icon_smile" /&gt;',
            '(Lick)'    =&gt;  '&lt;img src="image/icon/lick.png" alt="lick" class="icon_smile" /&gt;',
            '(LICK)'    =&gt;  '&lt;img src="image/icon/lick.png" alt="lick" class="icon_smile" /&gt;',

            ':('    =&gt;  '&lt;img src="image/icon/sad.png" alt="sad" class="icon_smile" /&gt;',
            '=('    =&gt;  '&lt;img src="image/icon/sad.png" alt="sad" class="icon_smile" /&gt;',
            '(SAD)'    =&gt;  '&lt;img src="image/icon/sad.png" alt="sad" class="icon_smile" /&gt;',
            '(Sad)'    =&gt;  '&lt;img src="image/icon/sad.png" alt="sad" class="icon_smile" /&gt;',
            '(sad)'    =&gt;  '&lt;img src="image/icon/sad.png" alt="sad" class="icon_smile" /&gt;',

            ';)'    =&gt;  '&lt;img src="image/icon/wink.png" alt="wink" class="icon_smile" /&gt;',
            '(WINK)'    =&gt;  '&lt;img src="image/icon/wink.png" alt="wink" class="icon_smile" /&gt;',
            '(wink)'    =&gt;  '&lt;img src="image/icon/wink.png" alt="wink" class="icon_smile" /&gt;',
            '(Wink)'    =&gt;  '&lt;img src="image/icon/wink.png" alt="wink" class="icon_smile" /&gt;',

        );
    return str_replace( array_keys( $smilies ), array_values( $smilies ), $text );
}
</code></pre>

<p>I am not sure what i am missing or i need to enable something.</p>

<pre><code>$yourText = $row['content'];

$yourdisplay = smilies( $yourText );

echo '&lt;div class="mycomment"&gt;

    &lt;div id="postpic"&gt;

        &lt;img id="profile_pic" width="50px" height="150px" src="' . $post-&gt;image . '" class="" /&gt;

    &lt;/div&gt;

    &lt;div class="mycommentpost"&gt;                     

        &lt;a class="postername" href="profile.php?userID=' . $post-&gt;id . '"&gt;' . $post-&gt;fname . ' ' . $post-&gt;lname . ': &lt;/a&gt;&lt;br /&gt;

        ' . $yourdisplay . '

    &lt;/div&gt;

&lt;/div&gt;';
</code></pre>

<p>They are not showing up anything. </p>

<p>Thanks :)</p>
