-2

I am trying to use unlink command on my server Apache/2.2.3 PHP Version 5.2.10. I have been using the same script on a bunch of other servers including my local PC. Unfortunately, the command doesn't work.

I tried this so far:

  • chmod everything to 777
  • putting new files and unlinking them
  • also I notice that I can't upload or saveXML files to the server

I am guessing that it is some kind of setting inside the php.ini file, but I don't know which.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Vadim.G
  • 15
  • 5

2 Answers2

0

May be it's a safe_mode?

gaRex
  • 4,144
  • 25
  • 37
0

Solved

Checking if it is writable first and then unlink it seem to do the trick

if (is_writable("$bannerlink")) unlink("$bannerlink");

thanks to everybody

Vadim.G
  • 15
  • 5