| | |
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 (Social Media and Online Communities)
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 |
.htaccess ajax apache api array back basic beginner binary broken cakephp checkbox class cms code computing cron curl customizableitems database date delete display dynamic echo email error file files filter folder form forms function functions gc_maxlifetime google host href htaccess html image include insert integration ip java javascript joomla limit link login loop mail memmory memory menu mlm mod_rewrite multiple mysql navigation oop parsing paypal pdf php problem query radio random recursion regex remote script search server sessions sms snippet soap source space sql syntax system table thesishelp trouble tutorial update upload url validation validator variable video web xml youtube





