Hi,
Im having a slight problem in that the script im using doesn't delete the file from a server when it should do.
When you click delete via the browser, the script that is run is :
if (!file_exists("userfiles/$filename"))
{
echo "
<a href=\"index.php?action=deletefile&filename=$filename&directory=userfiles&\">
However, this little function is further up my page :
function DeleteFile($filename)
{
if (file_exists("$filename"))
unlink("$filename");
if (file_exists("$filename.desc"))
{unlink("$filename.desc");}
Is the first bit of script not working because of this function? Im not too sure as to what I should have as my "delete script" behind my delete button on the page?
Can anyone help or advise?
🙁