dswimboy
04-06-2004, 03:21 AM
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?
Nightfire
04-06-2004, 05:05 AM
Should already be readable I think? BTW josh, chmod isn't for windows systems
Josh_
04-06-2004, 03:56 PM
Should already be readable I think? BTW josh, chmod isn't for windows systems
I did not know that :eek:
:D
firepages
04-06-2004, 04:20 PM
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) (http://www.php.net/realpath) ?
dswimboy
04-06-2004, 10:43 PM
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/ArticleID/15605/Web_15605.html