Question

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.

Was it helpful?

Solution 2

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

OTHER TIPS

May be it's a safe_mode?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top