Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


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

Home >> 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



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


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






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |