[PHP] PHP as a proxy to an htaccess protected site. (STILL UNRESOLVED)

2002-06-24 Thread php

Hi people,

Iam trying to make a script that you give it the login and password for 
a determined password protected site, and it logs you in. It will be 
like a proxy.

So, what I have is something like this:



So now.. here I have two problems:
1.) If the user enters a login/pass that is not the correct this 
appears on the screen hundreds of times:

"Warning: Supplied argument is not a valid File-Handle resource .."

2.) /protected_area/index.html is a frame site, which means that if the 
pass/login are ok it will show you only the index.html, but this is 
made of frames, so then I have another login prompt for the frames.

My question is, is there anyway I can fix problem 1, and in problem 2 
is there anyway to proxy this in a better way, where you input the 
login once and it stay there so i dont get any more login prompts?

Thank You.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP as a proxy to an htaccess protected site.

2002-06-22 Thread Josepablo PĂ©rez - PHP -

Hello folks,

Iam trying to make a script that you give it the login and password for 
a determined password protected site, and it logs you in. It will be 
like a proxy.

So, what I have is something like this:



So now.. here I have two problems:
1.) If the user enters a login/pass that is not the correct this 
appears on the screen hundreds of times:

"Warning: Supplied argument is not a valid File-Handle resource .."

2.) /protected_area/index.html is a frame site, which means that if the 
pass/login are ok it will show you only the index.html, but this is 
made of frames, so then I have another login prompt for the frames.

My question is, is there anyway I can fix problem 1, and in problem 2 
is there anyway to proxy this in a better way, where you input the 
login once and it stay there so i dont get any more login prompts?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php