php header
<html>
<?php
/* This will give an error. Note the output
* above, which is before the header() call */
header('Location: http://www.example.com/');
exit;
?>
php header
<html>
<?php
/* This will give an error. Note the output
* above, which is before the header() call */
header('Location: http://www.example.com/');
exit;
?>
php title
function set_page_title(){
global $page_title;
/*
you should make the variable global so the function can access it and set it to the page title
otherwise you will get an error.
*/
if(isset($page_title)){ /*Check if my code has that variable*/
echo $page_title;
}
else{
echo "Page Title";
}
}
/*
HTML Layout
<!DOCTYPE html>
<head>
<title><?php set_page_title() ?></title>
</head>
...
*/
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us