crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Code to delete PHP file by using unlink function?
Question Posted on 09 May 2022Home >> PHP >> PHP Questions >> Code to delete PHP file by using unlink function?

Code to delete PHP file by using unlink function?
To delete file in PHP by using unlink() function is very easy. And this unlink() function will accepts only one argument. And this is same as UNIX unlink() function. And you will get E_WARNING level error if file is not deleted. This will return True if file is delete and if file is not deleted then it will return false.

Syntax:-

unlink function

In above code $filename will represent the name of file to be deleted.

Syntax to delete File in PHP:-


Delete Code Unlink()
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

difference between echo and print

method to past value from one page to another in php

differenc between mysql_connect and mysql_pconnect

What is htaccess file

Code to combine or concatenate two variables in php






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap