Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
|
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2003, 09:28 AM
Authorized User
 
Join Date: Jul 2003
Posts: 73
Thanks: 0
Thanked 0 Times in 0 Posts
Default hyperlinking with password

I am trying to set up a URL hyperlink with parameters which automatically forwards and activates the username and password set up by my ISP (Shared Apache Hosting) which uses .htaccess to password control sub-directories.

I basically want the client to be able to download files without being hit with the dialogue password box.

Hope somebody can help!!

Cheers Ray
__________________
Cheers Ray
 
Old October 6th, 2003, 12:36 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can pass the username and password in the URL but be warned that this is a security risk and is not a recommended practice.

You can do this:

<protocol>://<username>:<password>@<host>/

For example:
  https://joeuser@[email protected]=getvalue

For more info:
  http://www.ietf.org/rfc/rfc2396.txt
Search down to "Server-based Naming Authority"



Take care,

Nik
http://www.bigaction.org/
 
Old November 10th, 2003, 07:59 AM
Authorized User
 
Join Date: Oct 2003
Posts: 19
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to phpsharma Send a message via Yahoo to phpsharma
Default

HI
I am not sure
this may work or may not. Convert your password using md5() and pass it through url and counter check at the desitination page.

i hope to hear from u.

bye


God Knows better than US





Similar Threads
Thread Thread Starter Forum Replies Last Post
password encryption kosla78 Classic ASP Professional 6 July 12th, 2006 03:50 PM
hyperlinking to other pages jinxyfeet Dreamweaver (all versions) 1 October 9th, 2005 08:31 AM
Password rajuru PHP Databases 1 February 10th, 2005 12:05 AM
hyperlinking from access field marketingmaggie Classic ASP Basics 3 February 26th, 2004 07:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.