I thought I had read some time ago that to use cgi scripts you had to have your web site in the root htdocs folder. Maybe something has changed since.
Another victim of the hideously complicated PlusNet webspace setup (it's all there for a reason, but it is difficult to work out at first).
Essentially PlusNet do not allow any server side scripting at all on standard webspace (sometimes called the "www") server. If you upload a PHP script to the standard server and then navigate to it with your browser it won't run, instead there will be an "open with" dialogue when your operating system asks you what to do with it. This is for security reasons, mostly because of the rash of security holes that were found in PHP, and the ability for hackers to use these to trash people's websites.
If you want to use server side scripting (this doesn't include javascript or flash, these run in the visitor's browser) then you need to use the dedicated CCGI server. This needs to be activated in website settings (not available on some legacy account types) and files are then uploaded to ccgi.plus.net using your username and your password
at the time you created the CCGI space.
Domain names can be pointed to the CCGI space if you want to use a lot of scripting but, due to limitations of the PlusNet implimentation, only one domain name can be pointed to each customer's space, and only to to the root folder. This is probably what you have read previously. There is a work around for this
involving .htaccess files.
It is also possible to create a sub-domain (e.g. ccgi.businessdomainname.co.uk) that points to your CCGI space. Raise a ticket to request this.
So, I divide htdocs into two subfolders. Put the business pages in one folder and point my co.uk site at it (does anything have to be changed with the cgi scripts?). Put photos in the others and presumably that will be found using the address
http://www.username.plus.com/photos/index.htmlThat's correct. The CGI script should be on a completely seperate server (see above) thus nothing should need changing.
Can .htaccess be used on a folder to prevent public access to all files in the folder, or does it have to be used on individual files?
.htaccess controls access to all files the directory and any sub-directories. There's a tutorial
here that may help you.