Hi Everyone,
I'm trying to figure out what's wrong with this script.
Basically there's a form where you can upload a .pdf file or delete it,
When I try to delete it I get this:
Warning: unlink(38_prosp ectus.pdf) [function.unlink]: Operation not permitted in /docs/pdf.del.php on line 7
Couldnt execute query.
The script for pdf.del.php is
[PHP]<?
require('../inc/baza.php');
$myFile = mysql_escape_st ring($_REQUEST['f']);
$naa = $myFile;
unlink($myFile) ;
$q = "DELETE FROM doc WHERE content='$naa'" ;
$r = mysql_query($q) or die ("Couldnt execute query.");
global $strana2;
$strana2 = "../admin/admin.php?p=exh &pp=exh&goo=edi t.full";
header("Locatio n: $strana2");
?>[/PHP]
Thanks
I'm trying to figure out what's wrong with this script.
Basically there's a form where you can upload a .pdf file or delete it,
When I try to delete it I get this:
Warning: unlink(38_prosp ectus.pdf) [function.unlink]: Operation not permitted in /docs/pdf.del.php on line 7
Couldnt execute query.
The script for pdf.del.php is
[PHP]<?
require('../inc/baza.php');
$myFile = mysql_escape_st ring($_REQUEST['f']);
$naa = $myFile;
unlink($myFile) ;
$q = "DELETE FROM doc WHERE content='$naa'" ;
$r = mysql_query($q) or die ("Couldnt execute query.");
global $strana2;
$strana2 = "../admin/admin.php?p=exh &pp=exh&goo=edi t.full";
header("Locatio n: $strana2");
?>[/PHP]
Thanks
Comment