Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in PHP only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
PHP
How to delete or replace existing file from directory
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
mukeshrasm
Contributor
Join Date:
Nov 2007
Posts:
254
#1
How to delete or replace existing file from directory
Apr 17 '08, 12:45 PM
Hi
I want to delete or replace the existing file from directory using PHP. I don't want to rename the file.
Markus
Recognized Expert
Expert
Join Date:
Jun 2007
Posts:
6092
#2
Apr 17 '08, 01:54 PM
Originally posted by
mukeshrasm
Hi
I want to delete or replace the existing file from directory using PHP. I don't want to rename the file.
Use unlink() to delete the file.
You'd maybe check before with file_exists() and then use unlink()
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment