How Delete

Started on the old forum in February 2008 · view the original in the archive · old links redirect here

4 replies · 636 views · started 18 years ago · 1 min read

2 participants
jacks Newbie · 2 posts #1

how delete uploads files from uploads section? pls halp my

Attachments: index.php
blackhowk Senior · 411 posts #3

pls help

<?php unlink(p.jpg); ?>

$myFile = "testFile.txt"; $fh = fopen($myFile, 'w') or die("can't open file"); fclose($fh);

Now to delete testFile.txt we simply run a PHP script that is located in the same directory. Unlink just needs to know the name of the file to start working its destructive magic.

$myFile = "testFile.txt"; unlink($myFile);

The testFile.txt should now be removed.

Guest #4

anybody know how to delete from database?

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close