rmdir and chmod help for Windows XP Home!

From: Daniel (daniel_at_dlpage.com)
Date: 10/11/03


Date: Sat, 11 Oct 2003 12:48:33 +0200

Hi,

 From what I read from the PHP manual, chmod on a Windows platform
should have no effect, and that seems totally normal (unless someone on
sourceforge has a windows port of that!).

I create a directory on my Windows box, and set chmod 777 on it (that
should be full access for everyone if my memory serves me correctly),
but when I want to rmdir that directory, I get a permission denied
message (I can delete contents from that directory with no problems, and
I can create/delete subdirectories either by hand or by script with no
problems.

I tried creating a subdirectory with the same name and without the chmod
in a test script and everything went OK...

I then commented out the chmod line in my script, and now, directory
creation and delete works fine!

So, for PHP on windows (xp home?), chmod 777 makes the file undeletable
for another PHP script, but not for Windows explorer or the windows/dos
command line...?!?!

Anyone got an explanation for this? I'm intrigued!

Cheers,
Daniel



Relevant Pages

  • Re: Which PHP am I running?
    ... php-win.exe) that is currently running (ie. how was this script called) ... apache2handler when I'm running php as a web server module. ... But why does it matter if its using the nix or the windows php ...
    (comp.lang.php)
  • Re: Which PHP am I running?
    ... php-win.exe) that is currently running (ie. how was this script called) ... apache2handler when I'm running php as a web server module. ... But why does it matter if its using the nix or the windows php ... The point is that it makes good sense to differentiate between the two ...
    (comp.lang.php)
  • RE: [PHP] Is it possible to restart Windows Apache (service) on a PHP script?
    ... I'm sorry I didn't read the fact that this was on Windows. ... [PHP] Is it possible to restart Windows Apache ... on a PHP script? ... It works the same in every country." ...
    (php.general)
  • Re: Which PHP am I running?
    ... php-win.exe) that is currently running (ie. how was this script called) ... apache2handler when I'm running php as a web server module. ... But why does it matter if its using the nix or the windows php ... If you're worried about differences between environment variables ...
    (comp.lang.php)
  • Re: [PHP] location of the PHP executable
    ... most windows machines will probably have there php binary at: ... find the exe and on failure offers the user a prompt to say where it ... to a working Windows installation, yet it needs to work on Windows as well. ... be run within the context of the calling script - if you run it inside ...
    (php.general)