From: Thomas Goirand <thomas@goirand.fr>
To: mlmmj@mlmmj.org
Subject: Re: [mlmmj] Is using the include path for php-admin a good idea?
Date: Sun, 17 Oct 2010 15:39:09 +0000 [thread overview]
Message-ID: <4CBB189D.7080803@goirand.fr> (raw)
In-Reply-To: <4CA87D1F.6030009@yahoo.com.au>
Ben Schmidt wrote:
>>>> As a longtime php-coder, here's my opinion:
>>>> - Putting it in the include path is a bad idea
>>>> - hardcoding the path also
>>>> So best of all: figure out the current filepath, put it in a variable
>>>> and start from there (don't put this in a config file, it can be
>>>> determined automatically), something like "dirname(__FILE__);" or to
>>>> have the parent dir "basename(dirname(__FILE__));"
>>
>> I agree that here, there's absolutely no point in adding the include
>> path. That one is to use ... include, not at all for opening files
>> like the php-admin would need. It makes no sense in this context.
>
> Have a look at my attached proposed patch. The interface was already
> updated since the bug report was filed, but looking for tunables.pl
> relative to $templatedir seems senseless to me, so I've added another
> variable, $confdir. I've removed hard-coded paths and used paths
> relative to __FILE__ instead. Finding config.php in the first place
> could still be difficult, but at least the require directive for it is
> at the top of each file, so it's easy to find what to change.
>
> What do you think?
>
> Ben.
Hi Ben,
Has this patch been applied? I think it would fix this:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bugY9183
As this would almost certainly fix this bug which is "release critical"
in Debian, I would like to know if you have tested it and applied it to
your HG repo. I didn't find it in the log on the web. I'd happily apply
it if I have confirmations that it fixes the issue (if nobody tests it,
I might be able to, but not right now, as I'm busy with other stuff).
Cheers,
Thomas
next prev parent reply other threads:[~2010-10-17 15:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-03 12:54 [mlmmj] Is using the include path for php-admin a good idea? Ben Schmidt
2010-10-03 13:49 ` Franky Van Liedekerke
2010-10-03 13:53 ` Franky Van Liedekerke
2010-10-05 9:30 ` Thomas Goirand
2010-10-05 11:24 ` Ben Schmidt
2010-10-05 17:33 ` Thomas Goirand
2010-10-05 23:43 ` Ben Schmidt
2010-10-17 15:39 ` Thomas Goirand [this message]
2010-10-17 23:16 ` Ben Schmidt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CBB189D.7080803@goirand.fr \
--to=thomas@goirand.fr \
--cc=mlmmj@mlmmj.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.