Welcome Guest, Not a member yet? Register   Sign In
function calls
#6

[eluser]shobekhan[/eluser]
I have trace code

// TRACE

$trace = "function - product \n" . " Came in product at " . date("Y-m-d H:iConfused") . "\n\n";

$filename = "trace/trace.txt";



// Let's make sure the file exists and is writable first.

if (is_writable($filename)) {

if (!$handle = fopen($filename, 'a')Wink {

echo "Cannot open file ($filename)";

exit;

}



// Write $somecontent to our opened file.



if (fwrite($handle, $trace) === FALSE) {

echo "Cannot write to file ($filename)";

exit;

}



fclose($handle);

}

// TRACE


when I comment this line

$this->parser->parse('shop/productdetail', $data);

it comes only once in the function

otherwise it comes 4 times


Messages In This Thread
function calls - by El Forum - 11-15-2007, 04:31 AM
function calls - by El Forum - 11-15-2007, 05:18 AM
function calls - by El Forum - 11-15-2007, 08:01 AM
function calls - by El Forum - 11-15-2007, 08:02 AM
function calls - by El Forum - 11-15-2007, 08:44 AM
function calls - by El Forum - 11-15-2007, 10:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB