Fiji Web Design
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Joomla not response after adding php code. (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Joomla not response after adding php code.
#1161
RodoCapo (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Joomla not response after adding php code. 2 Years ago Karma: 0  
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.
 
Report to moderator   Logged Logged  
 
Last Edit: 2010/01/20 18:31 By RodoCapo.
  The administrator has disabled public write access.
#1163
RodoCapo (User)
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
Re:Joomla not response after adding php code. 2 Years ago Karma: 0  
Well, I am trying another solution, using file_get_contents php function but it didn't recover data.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Joomla Downloads

DownloadsDownload our free Joomla! Components, Modules and Plugins.