CodeLobster IDE

Free cross-platform PHP IDE (HTML, PHP, CSS, JavaScript code editor) with support Drupal, Joomla, Twig, JQuery, BackboneJS, LaravelJS, Node.js, Fhalcon, CodeIgniter, CakePHP, Laravel, Magento, MeteorJS, Phalcon, Symfony, VueJS, WordPress, Yii
It is currently Fri Dec 14, 2018 4:38 pm

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to trap the phpinfo function event
PostPosted: Mon Jan 15, 2018 2:38 am 
Offline

Joined: Mon Jan 15, 2018 2:20 am
Posts: 1
I disabled my phpinfo listing on my server. However when i test that i just get an empty page. I had assumed i would get the "not enabled message" displayed via the browser but its not displayed at all, its just an empty page. It is however in my error log but no error code, and i dont want to display errors.

What i would like to do is to trap the attempted execution of phpinfo and then display the message that it has been disabled.

In the phpinfo docs it does show how to trap it via running the same file, in other words if you have one file that you run you can set a $value to a key in phpinfo, then you can check if $value is set, if not then display the message. However this is not what i need to do. I need a domain global solution not just one file.

So if someone tries to run phpinfo on the domain at all, i would like to trap that and display a message in the browser.

But not sure how to do that as i am unable to find an error code or other hook type event to use for the trap.

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2016 phpBB Group