Operation Not Permitted

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jenn23
    New Member
    • Jul 2007
    • 3

    Operation Not Permitted

    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
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    Probably it might be a permission problem to the file.

    Comment

    Working...