How PHP automatically closes the current page: Use the echo function to output the "" statement. close() is used to close the browser window.
The operating environment of this tutorial: windows7 system, PHP7.1 version, DELL G3 computer
php automatically closes the current page
<?php echo "<script type='text/javascript'>document.onload = window.close();</script>"; ?>
Description:
echo() function outputs one or more strings.
The close() method of window is used to close the browser window.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of How to automatically close the current page in php. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Linux new version
SublimeText3 Linux latest version

WebStorm Mac version
Useful JavaScript development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment
