Jump to content


Photo

HTTP validation through php


  • Please log in to reply
3 replies to this topic

#1 GrayFox

GrayFox
  • Members
  • Pip
  • Newbie
  • 3 posts

Posted 16 May 2006 - 07:22 PM

Hi all

Got a little question:

Can anyone tell me how to do this HTTP validation using a php script. For example

I got phpmydmin under htaccess password, there's this box that asks for user and pass.

Is there a away to send the pass through php so that no box appears and you go directly to phpmyadmin?

#2 GrayFox

GrayFox
  • Members
  • Pip
  • Newbie
  • 3 posts

Posted 17 May 2006 - 01:42 PM

I know this works in a very simple way - nothing to do with php - in firefox:
[a href=\"http://user:password@domain.com/\" target=\"_blank\"]http://user:password@domain.com/[/a]

I don't use IE, but there are those who still do, any ideia why it doesn't work on IE?

#3 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 17 May 2006 - 03:14 PM

PHP will handle HTTP authentication, and you may be able to write a script to allow you to bypass the popup, but you'll have to read up on how to implement something like that. check out this page in the manual to help you out: [a href=\"http://us3.php.net/features.http-auth\" target=\"_blank\"]HTTP AUTHENTICATION[/a]
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#4 GrayFox

GrayFox
  • Members
  • Pip
  • Newbie
  • 3 posts

Posted 18 May 2006 - 09:33 PM

[!--quoteo(post=374684:date=May 17 2006, 10:14 AM:name=obsidian)--][div class=\'quotetop\']QUOTE(obsidian @ May 17 2006, 10:14 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
PHP will handle HTTP authentication, and you may be able to write a script to allow you to bypass the popup, but you'll have to read up on how to implement something like that. check out this page in the manual to help you out: [a href=\"http://us3.php.net/features.http-auth\" target=\"_blank\"]HTTP AUTHENTICATION[/a]
[/quote]


TY for the reply - thought i was talking to myself for a while there.

Already read it some time ago and did not find any clues for what i want...

Also i've been googling, and found some ppl with the same question and without answer, kinda weird actually.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users