Hi guys,
I am running Apache Server and I have some secured folders(Secured with passwords and usernames) but I have to update their passwords permanently from php and I do not know how to crypt the passwords. I used a Web-Site which did this for me but now I need to do this from Php.
How to do this?
BTW:I use a remote server and I do not have any access to the Apache configuration file. I know about the apache tool which can be used to solve the problem above but I have not access to it. I need to do it in Php.
Apache secured folders from Php
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Reply
There is not problem for this. I just use "../" until I reach where I want to. For example if my root is like this:
+www//Web Root
+passwds
I can reach the passwds folder from www by using this:"../passwds/...".
I have found something on the Internet and I wonder whether it would do the job for me(I t does it on my local host but my application must beportable and it is supposed to run on many systems.).
Link:http://elonen.iki.fi/code/misc-notes/ht ... passwd.inc
+www//Web Root
+passwds
I can reach the passwds folder from www by using this:"../passwds/...".
I have found something on the Internet and I wonder whether it would do the job for me(I t does it on my local host but my application must beportable and it is supposed to run on many systems.).
Link:http://elonen.iki.fi/code/misc-notes/ht ... passwd.inc