PHP problem
Jul. 1st, 2004 03:57 pmWhy does this 'if' statement work:
When this 'if' statement does not:
ARGH! WTF? Am I thinking in Perl here or something?
$filesize = filesize($inputFile);
if ($filesize > 0) {
//print "<br/>debug, $inputFile is $filesize\n";
$result = xslt_process($xh, $inputFile, "searchResults.xsl");
return $result;
}
When this 'if' statement does not:
if (filesize($inputFile) > 0) {
//print "<br/>debug, $inputFile is $filesize\n";
$result = xslt_process($xh, $inputFile, "searchResults.xsl");
return $result;
}
ARGH! WTF? Am I thinking in Perl here or something?
(no subject)
Date: 2004-07-01 01:08 pm (UTC)if ( (filesize($inputFile)) > 0 ). I'm not convinced this is right, though. I abhor PHP.