update problem

If you have anything to say - or advice to give - on the creation or publishing of ManiaLinks, here is the place to do it!

Moderator: TM-Patrol

Post Reply
jouko100
speedy pilot
speedy pilot
Posts: 375
Joined: 10 Mar 2007 09:33
Location: finland
Contact:

update problem

Post by jouko100 » 22 Jan 2009 19:02

i have manialink name test

<manialink>
<type>default</type>
<format textsize="6"/>
<background bgcolor="000f" bgborderx="2" bgbordery="1.5"/>
<include url="http://xxxxxxxx/tulosta.php"/>


<frame>
<quad posn="-50 400 2" sizen="100 80" style="Bgs1InRace" substyle="BgWindow2" />
</frame>

</manialink>

----------------------------------------------------------------------------------

and php name tulosta


<?php
//hae tila
$myFile = "lotonneet_log.txt";
$fh = fopen($myFile, 'r');
$lotonneet = fread($fh, filesize($myFile));
fclose($fh);



print "<label
posn='-60 45 0'
size='40 35'
textsize='1'
text='$lotonneet'
autonewline='1'
maxline='50'
/>
";



?>
-----------------------------------------------------------------------------------------

and textfile lotonneet_log.txt

data1
data2

if i add one row more=data3 and run test
output is not updated.I still get
data1
data2

if i shut down tmnf and open it again ans run test the output is ok
data1
data2
data3

what is wrong or what can i do.Pls help

v000nix
happy cruiser
happy cruiser
Posts: 138
Joined: 09 Jan 2008 19:26
Owned TM-games: TMN, TMU, TMUF
Manialink(s): v000nix, TManiacs
Location: Germany
Contact:

Re: update problem

Post by v000nix » 22 Jan 2009 22:26

<manialink>
<type>default</type>
<timeout>0</timeout>

<format textsize="6"/>
<background bgcolor="000f" bgborderx="2" bgbordery="1.5"/>
<include url="http://xxxxxxxx/tulosta.php"/>

==================================
With the timeout-tag you can disable caching on manialinks :sweet:

jouko100
speedy pilot
speedy pilot
Posts: 375
Joined: 10 Mar 2007 09:33
Location: finland
Contact:

Re: update problem

Post by jouko100 » 23 Jan 2009 02:41

v000nix wrote:<manialink>
<type>default</type>
<timeout>0</timeout>

<format textsize="6"/>
<background bgcolor="000f" bgborderx="2" bgbordery="1.5"/>
<include url="http://xxxxxxxx/tulosta.php"/>

==================================
With the timeout-tag you can disable caching on manialinks :sweet:
Lot of thanks.It works

Post Reply