Home / Tips / Programming languages / Scripting languages / PHP / How to remove X-PHP-Originating-Script header from emails in PHP

How to remove X-PHP-Originating-Script header from emails in PHP

PHP
 
PHP
  • Currently 0 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Rating: 0/5 (0 votes cast)

Thank you for rating!

You have already rated this page, you can only rate it once!

Your rating has been changed, thanks for rating!

Log in or create a user account to rate this page.


Sometimes X-PHP-Originating-Script header has to be removed for security reasons.

To do this the configuration directive mail.add_x_header must be set to value Off.

It can be changed in php.ini file:

mail.add_x_header = Off

To find where in the system php.ini is, use the function phpinfo in PHP script:

phpinfo();

This will show information about PHP configuration.

Then find the option "Loaded Configuration File":

Loaded Configuration File   /usr/local/etc/php.ini

 

Read also

What is PHP?

What is PHP?

Classes and objects in PHP

Classes and objects in PHP

How to access classes and objects in PHP

How to access classes and objects in PHP

Discussion (total 2 comments)

Jasonrocky
February 08, 2017 at 02:13 am
agree ended this <a href=http://onlinecasinos-x.com/>online casino</a> where you can prevail in real notes with the avoid of this guidebookPlaying <a href=http://onlinecasinos-x.com/online-casino-games.html>casino games</a>
Winstonirold
February 18, 2017 at 01:30 am
thanks due to the fact that this significant informative website, obstruct up the great jobless check out this <a href=http://onlinecasinos-x.com>casino online</a> offers

Post comment

basicuse.net
html5_css
106160485398655174790

Quick navigation

General navigation