question about @PHP-BIN@, file placement in packages, more
| From: | Matthew Weier O'Phinney | Date: | Tue, 05 Jul 2005 13:33:51 +0000 |
| Subject: | question about @PHP-BIN@, file placement in packages, more | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-38447@lists.php.net to get a copy of this message | ||
I'm preparing to do a call for votes on File_Fortune,
http://pear.php.net/pepr/pepr-proposal-show.php?id=263
but I want to get a few items straightened out before doing so.
(1) I have an example in my package, and it's supposed to be an executable. I
have the shebang line as:
#!@PHP-BIN@
However, when I install the package with the PEAR installer (I'm on the
latest alpha of the 1.4 series), I find that this line is not re-written
with the path to my PHP executable. Should it be? Do I have the syntax
wrong?
(2) Speaking of examples... I have a number of subdirectories that are used for
non-PHP files -- things like docs, examples, and tests. Currently, my
directory hierarchy looks like:
File/
Fortune.php
Fortune/
Exception.php
Writer.php
doc/
(phpDoc generated docs)
examples/
phpFortune
tests/
(Fortune.php related tests and test data files)
Fortune/
(Fortune/Writer.php related tests and test data files)
My question is: what is the proper hierarchy for these subdirectories?
Should they be under File/ or under File/Fortune/ ?
(3) In my phpt test files, when I require() or include() one of the class files,
should I use dirname(__FILE__) to grab them, or simply 'File/Fortune.php',
etc.?
Thanks in advance for any tips/pointers/help!
--
Matthew Weier O'Phinney
mweierophinney@gmail.com
http://weierophinney.net/matthew/