| | |
Authenticate Windows User with PHP
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hi,
I have a requirement where i have a windows server with IIS and PHP 5. My PHP script creates a file and windows OS is not allowing me to create a file using fopen function. It gives Permission Denied error.
Can anyone give an idea where i can internally authenticate the user (may be ftp user) and the file is created. I dont want to give the anonymous (777 Type) access to that folder where the file is created.
I read a couple of articles as well where HTTP Authentication was mentioned. But this method gives a pop up box. Preferably, i dont want this type of solution as my script generates the file internally without any user intervention.
I have a requirement where i have a windows server with IIS and PHP 5. My PHP script creates a file and windows OS is not allowing me to create a file using fopen function. It gives Permission Denied error.
Can anyone give an idea where i can internally authenticate the user (may be ftp user) and the file is created. I dont want to give the anonymous (777 Type) access to that folder where the file is created.
I read a couple of articles as well where HTTP Authentication was mentioned. But this method gives a pop up box. Preferably, i dont want this type of solution as my script generates the file internally without any user intervention.
•
•
Join Date: Aug 2009
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Hi,
I have a requirement where i have a windows server with IIS and PHP 5. My PHP script creates a file and windows OS is not allowing me to create a file using fopen function. It gives Permission Denied error.
Can anyone give an idea where i can internally authenticate the user (may be ftp user) and the file is created. I dont want to give the anonymous (777 Type) access to that folder where the file is created.
I read a couple of articles as well where HTTP Authentication was mentioned. But this method gives a pop up box. Preferably, i dont want this type of solution as my script generates the file internally without any user intervention.
Hi,
You have to ad write permission or full to IIS user on security tab by getting folder properties.
![]() |
Similar Threads
- changing windows user password using windows application (C#)
- Pass Windows User (domain\userid) to report url in ASCX page (ASP.NET)
- Get machine IP for logged on windows user (C#)
- Lost Windows XP user password (Windows NT / 2000 / XP)
- Installation of PHP on Windows (PHP)
- get width of windows user control in inches (C#)
- question about connecting odbc to sql through php script (PHP)
- Problems with the user.php file (Growing an Online Community)
Other Threads in the PHP Forum
- Previous Thread: Display new Record in bold??...
- Next Thread: URL file-access is disabled in the server configuration
| Thread Tools | Search this Thread |
# 5.2.10 access alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search server sessions sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube





