Hi everyone, I have a problem to call external functions.
I wrote this:
Code:
<?php
function header(){
?>
<!DOCTYPE html>
<html>
<head>
</head>
<?php
}
?>
in a php file named header.php
in the index page i've included the function in this way:
Code:
<?php
include_once 'tiles/header.php';
header();
?>
when I watch this page on the browser I get this error:
Code:
Fatal error: Cannot redeclare header() in /var/www/vhosts/../header.php on line 9
any suggestion on how to solve this?