UnitedForums - UK Web Hosting Forum UnitedHosting Community Hosting Forums
Network and Server StatusCustomer SupportUK Web Hosting
UnitedHostingUnitedHosting Sitemap UK Hosting ForumUK Web HostingWeb Hosting ForumsUK Reseller HostingWeb Host CommunityUK Managed Dedicated ServersHosting Help and SupportUK Domain Name Registration

Go Back   UnitedForums.co.uk > UnitedHosting Community > Website Applications

Reply
 
Thread Tools Rate Thread Display Modes
Old 10th March 2008, 10:43 AM   #1 (permalink)
yashaswi
Registered User
 
Join Date: Mar 2008
Posts: 5
How to get contents when htaccess is on

hello all,

I have one folder on one server which is protected with htaccess password. now i wann to read all the file listing and file content of that folder through ftp commands. as its protected its nt allwing me to access through FTP .
yashaswi is offline   Reply With Quote
Old 10th March 2008, 10:44 AM   #2 (permalink)
Simon
Dedicated to life!
 
Simon's Avatar
 
Join Date: Jul 2005
Location: 36°38'4.48"N - 4°42'18.52"W
Posts: 2,058
Send a message via MSN to Simon Send a message via Yahoo to Simon Send a message via Skype™ to Simon
FTP is totally seperate to Apache, and therefore .htaccess will not be the problem in this case. Your problem is with something else...
__________________
Freelance PHP Programming
__________________
Simon is offline   Reply With Quote
Old 10th March 2008, 10:47 AM   #3 (permalink)
yashaswi
Registered User
 
Join Date: Mar 2008
Posts: 5
file_get_contents(http://www.abc.com/test/yashaswi/xml...2008_09_57.xml) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in C:\Documents and Settings\yashaswi\Desktop\xampp\htdocs\Exapro\host _datacron.php on line 60
yashaswi is offline   Reply With Quote
Old 10th March 2008, 10:48 AM   #4 (permalink)
yashaswi
Registered User
 
Join Date: Mar 2008
Posts: 5
the above error i am gettign while working wid comamnds
yashaswi is offline   Reply With Quote
Old 10th March 2008, 10:48 AM   #5 (permalink)
Simon
Dedicated to life!
 
Simon's Avatar
 
Join Date: Jul 2005
Location: 36°38'4.48"N - 4°42'18.52"W
Posts: 2,058
Send a message via MSN to Simon Send a message via Yahoo to Simon Send a message via Skype™ to Simon
Thats not ftp....
__________________
Freelance PHP Programming
__________________
Simon is offline   Reply With Quote
Old 10th March 2008, 10:50 AM   #6 (permalink)
yashaswi
Registered User
 
Join Date: Mar 2008
Posts: 5
ya its nt ftp.. but i am connectin through ftp and then workign wid file commands. now how do i provide authorization details here..
yashaswi is offline   Reply With Quote
Old 10th March 2008, 10:52 AM   #7 (permalink)
Simon
Dedicated to life!
 
Simon's Avatar
 
Join Date: Jul 2005
Location: 36°38'4.48"N - 4°42'18.52"W
Posts: 2,058
Send a message via MSN to Simon Send a message via Yahoo to Simon Send a message via Skype™ to Simon
Try

http://user@pasword:www.abc.com/test...2008_09_57.xml)
__________________
Freelance PHP Programming
__________________
Simon is offline   Reply With Quote
Old 10th March 2008, 11:00 AM   #8 (permalink)
yashaswi
Registered User
 
Join Date: Mar 2008
Posts: 5
nope its nt working
yashaswi is offline   Reply With Quote
Old 10th March 2008, 11:05 AM   #9 (permalink)
Simon
Dedicated to life!
 
Simon's Avatar
 
Join Date: Jul 2005
Location: 36°38'4.48"N - 4°42'18.52"W
Posts: 2,058
Send a message via MSN to Simon Send a message via Yahoo to Simon Send a message via Skype™ to Simon
file_get_contents works a lot better with local file paths, is it not possible to specify the relative path to the file? this would then mean you don't need the username and password..
__________________
Freelance PHP Programming
__________________
Simon is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 05:00 PM.

UK Web Hosting  |  UK Reseller Hosting  |  UK Dedicated Servers UnitedHosting  |  UnitedSupport  |  UnitedForums  |  SEO by vBSEO 3.0.0
Copyright © 1998-2008 United Communications Limited. All Rights Reserved. Registered in England and Wales 3651923 - VAT Reg No. 737662309