سؤال

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.

هل كانت مفيدة؟

المحلول 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

نصائح أخرى

May be it's a safe_mode?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top