I have a php throwing this error : Notice: A non well formed numeric value encountered
if ($is_admin_for_product) {
echo "<tr valign='Bottom'><td NOWRAP><p><a href='../download.php?run=fun&var=" .
basename( $stat['name'] ) . "&id=" . $KBID . "'>" .
basename( $stat['name'] ) .
"</a></p></td><td width='1%' align='right' NOWRAP><p>" .
date('M d, Y',$fileinfo[9] . "</p></td>");
} else {
echo "<tr valign='Top'><td NOWRAP><p><a href='../download.php?run=fun&var=" .
basename( $stat['name'] ) . "&id=" . $KBID . "'>" .
basename( $stat['name'] ) .
"</a></p></td><td width='1%' align='right' NOWRAP><p>" .
date('M d, Y',$fileinfo[9] . "</p></td>");
}
I saw previous questions but could not understand the solution to this.
$fileinfo[9]
is most likely not a timestamp. Please provide the output ofprint_r($fileinfo);
– ʰᵈˑ$fileinfo[9]
isn't a valid timestamp. – ʰᵈˑ