Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

htaccess on different domain

Status
Not open for further replies.

JRBeltman

IS-IT--Management
Feb 5, 2004
290
NL
Hi,
I am facing an issue where I try to get my PHP script to include another script on a different domain in a htaccess protected area.

I have been reading about getting this to work on the same domain, which seems no issue, but I am lost on how to get it working for a different domain.

Help?

JR (IT = Logic (except for a well known OS where it equals luck) -> Back to the Basics!
 
domains relate to the use of http or ftp or some other similar protocol that is not handled by the webserver. use the file protocol instead (which is the default).
 
hmm sorry,
I should have mentioned clearly that including is not the issue. But the htaccess authentication is... I want my parent script to authenticate for me.... cant get it to work.

JR (IT = Logic (except for a well known OS where it equals luck) -> Back to the Basics!
 
webservers do not authenticate file protocols (nor samba etc).

if you MUST use http or ftp to retrieve data then use the normal method of sending authentication data. nothing to do with php.
Code:
[URL unfurl="true"]http://username:password@www.somesite.com/someresource.php[/URL]
 
Hi Jpadie,
are you trying to tell me that this was a great idea of mine, but it cant be done? and I should go on dreaming :)

JR (IT = Logic (except for a well known OS where it equals luck) -> Back to the Basics!
 
I'm lost. i thought i posted the method by which it CAN be done?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top