SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Nov 15, 2005, 09:45 #1
- Join Date
- Jun 2004
- Location
- NH
- Posts
- 140
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Username & Password in URL (IE problem)
Hi Folks,
I'm trying to download a cpanel daily backup by passing the username and password in the URL. It works perfectly in Firefox but I get a syntax error in IE. Someone told me IE doesn't support this anymore but this was the first time I had heard this.
This is my little script. Any suggestions to make this work appreciated. The file is in an htaccess password protected directory. The client wants to be able to download the file in IE without the use of FTP or actually logging into cpanel itself.
Thanks,
Rob.
Code:<?php $username = 'user'; $password = 'pass'; $domain = 'domain.com'; $filename = 'backup-'. $domain . '-' . date('n-j-Y') . '.tar.gz'; print '<a href="http://' . $username . ':' . $password . '@www.' . $domain . ':2082/getbackup/' . $filename . '">Daily Site Backup</a>'; ?>
-
Nov 15, 2005, 10:41 #2
- Join Date
- Apr 2004
- Location
- germany
- Posts
- 4,324
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by 1skydive
http://support.microsoft.com/default...en-us%3b834489
-
Nov 15, 2005, 11:01 #3
- Join Date
- Jun 2004
- Location
- NH
- Posts
- 140
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by stereofrog
I know now why I don't IE anymore.
Bookmarks