Hi, I was wondering whether anyone would be able to help me with a serious aesthetically-based PHP parsing issue on TinyPortal.
Using
JPDeni's "
Greetings: Birthday, Holiday, Time of Day" block code snippet
(Link: http://www.tinyportal.net/index.php?topic=9940), and a
phpbox block, I keep on getting weird characters appearing in the box, along with the greetings
(see my earlier post: http://www.tinyportal.net/index.php?topic=9940.msg87222#msg87222).The box, for example displays a greeting (ie. Good Afternoon), along with the user's name...however, it also displays weird characters preceding the greeting, something like this:
QuoteïÃ,»Ã,¿ ïÃ,»Ã,¿ Good Afternoon
dy
With the phpbox having the code:
global $context;
require('UserFunctions.php');
echo '<span style="font-size: 8pt;"> ',greeting(),'<br /><b>'.$context['user']['name'],'</b></span><br />';After discussing with
JPDeni, we have come to the conclusion that the block code snippet has nothing to do with it, so I'm wondering whether any part of the PHP parsing that TinyPortal deals with, has anything to do with it.
>> I have also tried creating a file,
trial.php, placing it in the
Sources directory with the code in it:
<?php
echo 'Trial. If this prints, then this test is complete.';
?>>> Then creating a
phpbox with the code:
require('Trial.php');>> This then provides the output:
QuoteïÃ,»Ã,¿Trial. If this prints, then this test is complete.
>> Looking at the page source, this is what is there:
<div class="tborder" style="margin-bottom: 2px;">
<div class="windowbg" style="padding:4px; " id="block24">ïÃ,»Ã,¿Trial. If this prints, then this test is complete.</div>
</div>So, without fail,
both methods still provide weird characters. I'm thinking it could have something to do with the
require() function and any other 'defined' php function.
I will greatly appreciate any help anyone can give me! (Sorry about the long post!)