Please help me implement a small function! Small grateful I want to use PHP file to delete a file under this category & nbsp; file name through url to transfer such as & nbsp; http://xxxx.com/del.php? 123.txtopen this connection to delete 123.txt. please help me implement a small function! Small gratitude
I want to use the php file to delete a file name under this category and transmit it through a url.
Like http://xxxx.com/del.php? 123. txt
Open the connection and delete the 123.txt file.
Ask the code to score immediately .. My hands help me with the exercises:
------ Solution --------------------
$ Fn = key ($ _ GET );
If (file_exists ($ fn) unlink ($ fn );
------ Solution --------------------
Wait, and the moderator's code is there.
Write the above code into del. php and put it into the root directory of the website. then, access the code in the browser.