469,336 Members | 6,100 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,336 developers. It's quick & easy.

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.
Jul 17 '05 #1
1 2575
On 13 May 2004 15:40:34 -0700, ko*****@yahoo.com (Alexandru) wrote:
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?


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 <an**@andyh.co.uk> / Space: disk usage analysis tool
http://www.andyh.co.uk / http://www.andyhsoftware.co.uk/space
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by 3A Web Hosting | last post: by
1 post views Thread by Chamomile | last post: by
1 post views Thread by David | last post: by
6 posts views Thread by Benjamin | last post: by
1 post views Thread by fcaserio | last post: by
15 posts views Thread by Morteneistrom | last post: by
18 posts views Thread by Coffee Pot | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.