dimanche 3 octobre 2021

PHP error caused by array brackets after the parameter

First URL: http://dogcat/index.php?view=cat

Second URL: http://dogcat/index.php?view[]=ss

When I use the first URL every thing goes well however when I use the second one this error occures:

Warning: strpos() expects parameter 1 to be string, array given in /var/www/html/index.php on line 18

Warning: include(Array.php): failed to open stream: No such file or directory in /var/www/html/index.php on line 24

Warning: include(): Failed opening 'Array.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/index.php on line 24

I want to know why is this happening and how can I fix it keeping in mind I do not have the source code




Aucun commentaire:

Enregistrer un commentaire