Link to home
Start Free TrialLog in
Avatar of teksavers
teksavers

asked on

can a php script auto log into a page that requires an HTACCESS login?

If so how is this done?
I require loggining into a site via a php script and auto filling a form.

Avatar of rowejd
rowejd
Flag of United States of America image

I think this is what you're looking for:

http://www.php.net/manual/en/features.http-auth.php
Another option (which has its risks, and which certain browsers disable) is to use a URL such as:

http://username:password@www.yoursite.com/secure_directory/
Avatar of teksavers
teksavers

ASKER

What I am trying to do is create a script that will log into a page and pull the data back into the code for display.

The reason is we have a single login and I cannot give it out to my floor. I need to give them an internal page that will connect to the site for them so they can view the data with out logging into this site.
ASKER CERTIFIED SOLUTION
Avatar of rowejd
rowejd
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Did I supply you with enough info to assign points and close out the question?
Any update?