|
From: Alex B. <en...@tu...> - 2001-08-23 17:59:52
|
> Hi Andris.
>
>> 2) whether you have enabled register_argc_argv and
>> register_globals in your php.ini file.
> OK. That was the problem.
>
> Fantastic. It works!!
>
andreas: can you commit it?
or andris?
if it works, I want it :) gimme gimme! heh
> 1) to get arount the register_global/arg stuff you can put this into the
> xml2php
> ini_set('register_globals', on);
> $argv = $HTTP_SERVER_VARS["argv"];
yes, we should set that in all of the command line scripts.
then again, we _could_ integrate that into Init::_ini_set with some sort of
constant flag like
define("HEY_IM_ON_THE_COMMAND_LINE_HERE", true); :)
> 2) The output for datasources is not quite correct. (see. Lang)
>
> global $QueryManager;
> $QueryManager->datasources = array(...)
>
> Uuups. I think i have to change init/qm as well to support the same format
> as in Lang.
cool.
> datasources(
> array(data),
> array(data)
> );
>
>
> currently:
> datasources(
> 'hook' => array(data),
> 'hook2' => array(data)
> );
>
> 3) We should find a way to have a the interpreter line in the php files more
> flexible through the different platforms. Perl has a trick to do so
> eval 'exec perl -S $0 "$@"'
> Maybe we find a way to handle that better.
agreed, I was going to suggest a simple ./configure.sh which would do a grep
for a php command line key.
any other ideas?
_a
|