Hello, I create a .php file with this code en works ok, but when i used it in php module the page didn't show.
This is one of my first php code so it probably have an error.
<?php
$myFile = "sls/php/dedic_monitor/dedic_monitor.txt";
$handle = fopen($myFile, 'r'

;
while (!feof($handle))
{
$data = fgets($handle, 512);
echo $data;
echo "<br>";
if ($leer==0) $posname = strpos($data,"Name=Porsche"

;
if ($posname==7)
{
$leer=1;
$posact = strpos($data,"Active=1"

;
if ($posact==7)
{
echo "<IMG SRC='sls/php/styles/gtrpl/dedic_green.gif'>";
$leer=0;
echo "<br>";
}
$posact = strpos($data,"Active=0"

;
if ($posact==7)
{
echo "<IMG SRC='sls/php/styles/gtrpl/dedic_red.gif'>";
$leer=0;
echo "<br>";
}
}
}
fclose($handle);
?>
Thank you very much.