hidden htaccess file

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

hidden htaccess file

Post by josh »

A host for one of my web sites (shared host) seems to have hidden htaccess's on ftp, and I can't write to it from PHP. Any way to get FTP to show the file again (in dreamweaver or ws_ftp)? I do not feel like using shell every time I want to edit it.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

You need to enable the "show hidden files" feature in your ftp-client. not kidding :o)

or manually enter "ls -la".
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Post by josh »

Yeah I knew -la I just didn't know how to get ws_ftp to manually or automatically prepend it to ftp commands because there was no "show hidden files" option, thanks anyways though tim.

I figured it out myself, here's the solution in case some one else every needs to know how:
It turns out you can type it [-la] in the little text box under "mkdir" and it will automatically add it to every FTP command, so I type -la in there and then refresh the file list and I can see it. Kind of like manually setting "show hidden files"
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

If you wish, you can set up WS_FTP to display these hidden files as follows. Click Connect and then select the site you wish to modify and click on Properties. Select the Startup tab and then enter the two characters -a in the Remote File Mask box. Finally, click OK to confirm the change.
The next time you make an FTP connection to your account you will be able to see a number of hidden files which were not visible before. As always, please be careful not to delete any pre-installed system files or folders, unless you know what you are doing, as many of these files are necessary for the smooth running of your account.
Post Reply