473,490 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

access htaccess folder

228 New Member
Hi,
I have a folder within my root website (cant move it out cos of restrictions). I have placed htaccess file in it which works just fine. It displays the usual log in box when someone tries to access it. But my script needs to access the folder in a hidden way. is there nyway, i can pass the login info the htaccess files and log in to the folder without havin to display the login window?
May 17 '09 #1
3 2158
prabirchoudhury
162 New Member
hey...

when you are in FTP logged then right click on the folder and then go to properties or permission and give all three checked for owner .. that mighr solve your problem..
May 17 '09 #2
samvb
228 New Member
can't i pass the username and password from a script?
May 18 '09 #3
dlite922
1,584 Recognized Expert Top Contributor
@samvb
I think you may have confused what prab. was saying. .htaccess is for apache webserver, which is used when you access the site through the web browser, in simple terms.

Your host will most likely have a ftp server as well, allowing you a more "wholesome" access to your files. PHP can connect to an ftp server. For an example and how to do that, see the manual here:

http://us3.php.net/manual/en/ftp.examples-basic.php

You can pass your username and password there and have access to that file, read it, change it, and even save it if you wanted to.

Does that make sense?





Dan
May 18 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
11035
by: JW | last post by:
I have a directory protected with .htaccess / .htpasswd. After I'm validated, I run a php script which bombs out when trying to write a file to that directory. If I chmod 777 on the directory...
4
2961
by: Ivo | last post by:
Greetings newsgroup, I am moving some php scripts to a new host. While getting to know the server, I ran into a strange problem. If I add a .htaccess file, or more specifically: a .htaccess with...
4
10101
by: Bill | last post by:
Does ASP have a file whose function is similar to .htaccess on Apache? I'm looking to protect subdirectory content.
0
1985
by: Jack Hambabo | last post by:
Hi, I'm searching for a php script that can find out whether the current user (I know _SERVER will give me the name for non-cgi php) has the right to view a specific file. My dream is that I...
5
10176
by: Nosferatum | last post by:
I am in need of a solution on how to solve this problem: I need to limit access to six different folders. My users are validated in a system which check their prescence with a couple of...
1
1368
by: Nosferatum | last post by:
I need to query a database for users with password and retrieve these with a third variable, "level". That's easy. username, password, level If entered username and password exist, get these...
0
11274
by: asherwolf | last post by:
Hi, I'm trying to do something I think is pretty neat, but I've just about pulled my hair out by the behavior of my server. I'm hosting on GoDaddy, using a subdomain (www.mywebpage.com maps to...
1
2521
by: paitoon | last post by:
Helle I have problem about .htaccess in my site. My purpose is i want to protect a folder name's IMAGES in my site then i put .htaccess into that folder. But instead of the IMAGES folder will...
0
1506
by: adamjblakey | last post by:
Hi, I have a folder on my server which i want to protect. I though everything is setup fine and does protect the folder but also protects the public_html also even though the htaccess file is in a...
0
6974
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7146
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7183
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7356
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5448
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4878
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1389
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
628
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
277
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.