Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: Make Writable

  1. #1
    Regular Coder dswimboy's Avatar
    Join Date
    Nov 2003
    Location
    mostly in Ann Arbor
    Posts
    458
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Make Writable

    i have a file "signs.html" in a subdirectory "pages" of the script "save.php"

    The script is attempting to save a new version of "signs.html". When tested if it's writeable, returns false.

    I am developing on a Win XP system, using IIS. the folder is a Virtual Directory Link.

    Attributes are not Read-Only or Hidden from Properties Dialoge Box.

    How can i make the file writeable?
    "There is more than one way to do it."

  • #2
    New Coder
    Join Date
    Apr 2004
    Location
    NC
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try making the chmod 777

  • #3
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    Should already be readable I think? BTW josh, chmod isn't for windows systems

  • #4
    New Coder
    Join Date
    Apr 2004
    Location
    NC
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Nightfire
    Should already be readable I think? BTW josh, chmod isn't for windows systems
    I did not know that

  • #5
    Super Moderator
    Join Date
    May 2002
    Location
    Perth Australia
    Posts
    4,058
    Thanks
    10
    Thanked 96 Times in 94 Posts
    the folder is a Virtual Directory Link.
    by that do you mean a shortcut or symbolic link ? if so PHP does not currently read symlinks on win32 as well as it does on *NIX , server links (like alias's in apache) would work (though how IIS handles them internally I could not say), though for is_writable() you should be using a path (c:/folder) rather than a url

    if you are using a path , try is_writable() against the results of realpath($path) ?
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #6
    Regular Coder dswimboy's Avatar
    Join Date
    Nov 2003
    Location
    mostly in Ann Arbor
    Posts
    458
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i do not know if it is a shortcut or symbolic link. the IIS admin allows you to create Virtual Directories on your server. The root website is located at C:\inetpub\wwwroot. you can "Add Virtual Directories" in other locations like C:\websites\this-one\ on the admin page. this allows you to access http://localhost/this-one/.

    blah, what a horrible explanation. a yahoo search returned a rather long explanation at http://www.winnetmag.com/Web/Article...Web_15605.html
    "There is more than one way to do it."


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •