Snippets tagged “header”
10 snippets use this tag.
- How to Automatically Start a Download in PHP?PHP
To automatically start a download in PHP, you can use the header() function to send the appropriate headers to the browser indicating that a file download should begin.
- How to Create Animation on Page LoadCSS
In this snippet, you will find information and examples on creating an animation on page load. For that, use CSS @keyframes and some animation properties.
- How to Fix "Headers Already Sent" error in PHPPHP
One of the common errors that you can meet in PHP is the “Headers already sent” error. Here, we are going to show you the solution to such an error.
- How to Make a Fixed Page Header Not Overlap In-Page AnchorsCSS
On this page, we’ll demonstrate how to make a fixed header not overlap in-page anchors. For that, you’ll need CSS properties. Read the tutorial and find examples.
- How to Redirect a Web Page with PHPPHP
In PHP, you can use several functions to make a redirect from one web page to another. Learn how to do it accurately with W3docs.
- How to Set HTTP Header to UTF-8 in PHPPHP
If you want to learn how to set the HTTP header to UTF-8 in PHP, then read this snippet, examine and run the examples, that are demonstrated in it.
- Output an Image in PHPPHP
In PHP, you can output an image using the built-in function header() to set the content type to an image format and the readfile() function to read the image file and output its contents.
- PHP generate file for download then redirectPHP
In PHP, you can use the header() function to send a "Content-Disposition" header to prompt the user to download a file.
- PHP header redirect 301 - what are the implications?PHP
A 301 redirect in PHP using the "header" function tells the browser that the page has permanently moved to a new location.
- WordPress Issue: Cannot modify header information - headers already sent byPHP
This error message appears when a PHP script is trying to modify the headers of an HTTP response after the headers have already been sent.