Solved

Sending uid & pw info to .htaccess via url?

Posted on 2003-11-24
3
225 Views
Last Modified: 2008-07-03
Hi,

Is there some way to send uid and pw info to an .htaccess script?  I need to write some PHP that logs into my routers firmware, reads the log, and reports back.

It seems there must be a way to do it, I just can't figure out how.

Thanks,

Raydot
0
Comment
Question by:Raydot
3 Comments
 
LVL 6

Accepted Solution

by:
andreif earned 125 total points
ID: 9814699
Do you want to open .htaccess protected page with script?
If yes, try to open this URL

http://username:password@yourURL.com/
0
 
LVL 19

Expert Comment

by:Michael701
ID: 9815550
best setup and use an httpS:// connection. won't want to be transmitting user / password across non-secure protocals
0
 
LVL 3

Author Comment

by:Raydot
ID: 9815956
Good point, Michael, but it's all local.

Thanks andreif, that's just what I was looking for.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now