problem with unlink function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alexandru

    problem with unlink function

    Hello fellows.
    i have a problem with unlink function. if i'm trying to use uplink
    like this:

    unlink("../home/meks_party.jpg" ); i got the message:
    Warning: unlink(../home/meks_party.jpg) : No such file or directory in
    /home/alphadyn/public_html/wakeboarding/manage/doAction.php on line 24

    where could be the problem?

    Thank you.
  • Andy Hassall

    #2
    Re: problem with unlink function

    On 13 May 2004 15:40:34 -0700, kojoute@yahoo.c om (Alexandru) wrote:
    [color=blue]
    >i have a problem with unlink function. if i'm trying to use uplink
    >like this:
    >
    >unlink("../home/meks_party.jpg" ); i got the message:
    >Warning: unlink(../home/meks_party.jpg) : No such file or directory in
    >/home/alphadyn/public_html/wakeboarding/manage/doAction.php on line 24
    >
    >where could be the problem?[/color]

    On line 24. There's apparently no such file or directory
    "../home/meks_party.jpg" .

    Where do you think '..' is? Where does PHP think '..' is? Use
    http://uk.php.net/manual/en/function.realpath.php to find out.

    --
    Andy Hassall <andy@andyh.co. uk> / Space: disk usage analysis tool
    http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space

    Comment

    Working...