Skip to content
Advertisement

Tag: header

How can I resolve a cross-site Google Analytics cookie `SameSite=None` warning in Chrome on Apache 2.4 and PHP 7.1?

My client’s website is getting these SameSite cookie warnings in Chrome. I’ve searched all over and I can’t get the warnings to go away. The cookies are due to Google Ad Conversion Tracking on a Wordpress Site. The site is on a Apache/2.4.7 (Ubuntu) hosted by DreamHost running PHP 7.1 for compatibility reasons. To my .htaccess file, I’ve tried adding:

Pico CMS custom header

Im trying to include dynamc custom header in PicoCMS. Simple “include ‘header.php’;” wont work since the theme have only index.html file and and I cant include PHP in it. My guess is I would have to make a custom plugin for this to work but Im not shure how to do it. They have some documentation about it http://picocms.org/docs.html#plugins but

correct PHP headers for pdf file download

I’m really struggling to get my application to open a pdf when the user clicks on a link. So far the anchor tag redirects to a page which sends headers that are: this doesn’t seem to work, has anybody successfully sorted this problem in the past? Answer Example 2 on w3schools shows what you are trying to achieve. Also remember

php email headers with MIME-Version: 1.0

I have these lines of code: I need the MIME type because I am using file_get_contents for an html file, my problem is under the headers it displays as “email@domain.comMIME-Version:1.0” and I want it just to say “email@domain.com” how do I take out the MIME type in the from displaying in the header? Thanks Answer Just add rn after the

Advertisement