Im a complete n00b at PHP so please forgive me if this i a stupid
question
Why wont the following work.
PHP Code:
<?php
foreach (glob('../images/profil/*.jpg') as $filename) {
echo "$filename <br>". "<a href="unlink('$ filename');">De lete</
a>";
}
?>
I want a list of files in the dir and a link next to each file that
deletes the file if clicked.
Any hints or solutions are very much appreciated.
-Effix
question
Why wont the following work.
PHP Code:
<?php
foreach (glob('../images/profil/*.jpg') as $filename) {
echo "$filename <br>". "<a href="unlink('$ filename');">De lete</
a>";
}
?>
I want a list of files in the dir and a link next to each file that
deletes the file if clicked.
Any hints or solutions are very much appreciated.
-Effix
Comment