E
E
expressrus2016-08-16 14:55:57
PHP
expressrus, 2016-08-16 14:55:57

PHP is it possible to implement filtering all POST/GET requests globally?

Hello everyone, recently I got tired of passing them to the filtering functions on each page / script individually when receiving $_GET[] and $_POST['] arrays. And once I completely forgot to do it (
The question is, maybe there are ways like hooks to specify filtering functions somewhere, and php itself would always use them, but in the get and post arrays I would get secure content?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pretor DH, 2016-08-16
@PretorDH

I am using a custom static filter class.

M
Marina Lebedeva, 2016-08-16
@Margo_shka

Through the session, maybe?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question