How to confirm is the pathinfo enabled or not?

xmg · 5月12日 · 2020年 ·

Just creat a php file such as “ok.php” and upload it to your website’s root directory, the ok.php should include the belowing contents:

Echo phpinfo();

Now visit the address “your domain/ok.php, if you can see the following infomation: enabled
cUrl.information X.X.X. (such as 7.12.3)

Those mean that the pathinfo is enabled and for safety reasons you should delete the ok.php after you finish your job.

0 条回应