CodeLobster IDE

Free cross-platform PHP IDE (HTML, PHP, CSS, JavaScript, Python code editor) with support Drupal, Joomla, Twig, JQuery, BackboneJS, LaravelJS, Node.js, CodeIgniter, CakePHP, Laravel, Magento, MeteorJS, Phalcon, Symfony, VueJS, WordPress, Yii
It is currently Thu Mar 28, 2024 9:23 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to trap the phpinfo function event
PostPosted: Thu Jan 05, 2017 8:59 am 
Offline

Joined: Tue Dec 06, 2016 9:48 am
Posts: 3
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

Relax: instrumental ringtones, country ringtones, sms tones . Good fun!


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: Google [Bot] and 56 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:  
cron
Powered by phpBB © 2016 phpBB Group