Forums
This topic is locked
Running a server command via PHP
Posted 16 Jan 2002 00:14:25
1
has voted
16 Jan 2002 00:14:25 Stephen Bateman posted:
Can anyone help me with a script to create a password file for a .htaccess file.What I need to do it run a command:
htpasswd -b /home/sites/site15/user.lst username password
once I can run this I can export my users and have a protected site.
Replies
Replied 16 Jan 2002 22:12:41
16 Jan 2002 22:12:41 Tim Green replied:
If you visit:-
phpclasses.upperdesign.com/browse.html/package/411
You will find a PHP Class file, and all the instructions you need to easily manage htaccess files via PHP. Be warned though, if your web host has got command line scripts disabled, you will never be able to get this kind of functionality to work.
Hope this helps
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
phpclasses.upperdesign.com/browse.html/package/411
You will find a PHP Class file, and all the instructions you need to easily manage htaccess files via PHP. Be warned though, if your web host has got command line scripts disabled, you will never be able to get this kind of functionality to work.
Hope this helps
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 17 Jan 2002 00:25:18
17 Jan 2002 00:25:18 Stephen Bateman replied:
Thanks again!!! Tim
Are you going to be at the conference in Feb, so I can at long last buy you one of the many drinks I owe you ?
Thanks again.
Stpehen
Are you going to be at the conference in Feb, so I can at long last buy you one of the many drinks I owe you ?
Thanks again.
Stpehen
Replied 19 Jan 2002 02:30:08
19 Jan 2002 02:30:08 Tim Green replied:
Always a pleasure <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
If you look long and hard at www.dynamiczonesconference.com website, you'll see that I'm giving 3 presentations there <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
And I never turn down an offer of alcohol. I'll look forward to seeing you there!
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
If you look long and hard at www.dynamiczonesconference.com website, you'll see that I'm giving 3 presentations there <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
And I never turn down an offer of alcohol. I'll look forward to seeing you there!
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>