Jump to content

[SOLVED] unlink problems


adam291086

Recommended Posts

<?php
$file = $_POST['delete'];
$file = $file;


error_reporting(E_ALL);
if (unlink($file)) {
echo "$file deleted successful\n";
} else {
echo "could not delete $file\n";
}

 

i keep getting the error Warning: unlink(admin/entry_form/form/adam.php) [function.unlink]: No such file or directory in /homepages/30/d227915861/htdocs/admin/rte/view_uploaded_items/delete.php on line 61

could not delete admin/entry_form/form/adam.php

 

when i take the admin/entry_form/form/adam.php and put it into bcyorkshire.co.uk/admin/entry_form/form/adam.php it loads the file. Also i have changed  the folder permissions to

Link to comment
https://forums.phpfreaks.com/topic/106186-solved-unlink-problems/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.