|
-
Feb 15th, 2004, 01:00 PM
#1
Thread Starter
Member
How to chmod files on IIS?
Hi, im totally new to php programming. Im trying to make a simple counter that:
1. Reads number of visists from a file.
2. Increase the number by one.
3. Write to file the new number.
But when im trying to load the "counter.txt" file with "r+", it´s say: Permission denied...
Im have tried to use:
chmod ("counter.txt", 0777);
But then again: "Permission denied".
How can i give permission to modify that textfile?
I don´t belive i got a ftp account to my iis server so connecting with a ftp client is not a option...
Unless someone know who to add ftp support.
-
Feb 15th, 2004, 03:15 PM
#2
New Member
Ok first off i see one problem, you are using IIS with php. Bad idea. IIS is a bad idea all together, get apache. Hell get the pre-bundled php/apache package at http://www.firepages.com.au/ .
-
Feb 15th, 2004, 03:47 PM
#3
Thread Starter
Member
I downloaded Apache 2.0.48 two days ago so try that one first.
If not working i try the one you recommend.
-
Feb 15th, 2004, 05:58 PM
#4
Stuck in the 80s
chmod = unix server, not a windows server. I think you have to change the file permissions manually on a windows server. Not sure, though.
-
Feb 15th, 2004, 08:20 PM
#5
Thread Starter
Member
You can choose properties on files & folders in IIS, and select Write & Read options. But nothing happens if i choose write?!?
tempest1 - The boundle works great.. But can i move the "www" dir too example: "E:\www"?
If answer = Yes Then how?
Didn´t install apache 2.x.xx becuase i read in the php-install.txt that the apache 2 support is experimental so i choose not to use it...
-
Mar 2nd, 2004, 10:53 PM
#6
Frenzied Member
You can easily make the file writable for IIS and PHP in windows using the security tab on the file's properties. Add modify/write access for [servername]\IUSR_[servername]. So for example if your server was called cheese: cheese\IUSER_cheese.
-
Mar 3rd, 2004, 09:57 AM
#7
Frenzied Member
Originally posted by tempest1
Ok first off i see one problem, you are using IIS with php. Bad idea. IIS is a bad idea all together, get apache. Hell get the pre-bundled php/apache package at http://www.firepages.com.au/ .
I know this thread is old but I thought I'd reply to this...
There is nothing wrong with using IIS and PHP. I use it just fine. Granted, I too am an Apache junkie, but my company only supports IIS (go figure). So that's what I use. It's not horrible (except I had a little bit of a problem getting PHP to talk to MS SQL Server, although it was only because a php dll was missing, but still).
Also, I've used the latest 2.x.x.x version of Apache and it works great.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|