FormMail and realpath

Hi there

I’m working with the excellent FormMail script from http://www.tectite.com which includes a method to keep form recipients secret in a .ini file.

I have used this in a number of sites without a problem. However this time I’m getting an error message that the .ini file can’t be found and I suspect it’s because the path to the .ini file includes full stops.

Naturally I don’t want to give the actual path here but it is of the form:

/home/place1/www.domain.org/htdocs/tectite/formmail.ini"

Would I be correct in thinking it’s the extra full stops causing the problem and, if so, how can I get around this?

Thanks

Gordon

http://www.gordonlow.net


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

No, full stops would only cause a problem in this case if they were
used for directory traversal, as in:

/path/goes/here/…/or/here

which would really be the same as

/path/goes/or/here

If you are passing a root-relative path to the script, it should just
work, unless the path is incorrect. Try using Transmit to debug this.
Locate the ini file in your server. Click once on it so it’s
selected, then Edit/Copy to copy the full path to it. Paste that in a
text editor, and remove all the fluff before the double slash, so it
ends up having only a single slash at the beginning. See if there’s a
difference between what Transmit divines as the path and what you
have written.

Walter

On Aug 6, 2008, at 11:54 AM, Gordon Low wrote:

Hi there

I’m working with the excellent FormMail script from http://
www.tectite.com which includes a method to keep form recipients
secret in a .ini file.


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter. I’ve downloaded a copy of Transmit and with your usual words of wisdom I’ve finally managed to get everything working.

Many thanks

Gordon


offtopic mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options