From: Andreas A. <a.a...@th...> - 2001-08-23 18:09:58
|
Andris, include_once('./prepend.php'); is also missing for the generated pagedef Andi |
From: Andris S. <an...@do...> - 2001-08-23 19:09:01
|
> Andris, > > include_once('./prepend.php'); > > is also missing for the generated pagedef > > Andi I'll try to commit the latest version of it all tomorrow (I'm going to figure out how to commit something at all as the day before yesterday was my first day with CVS). About "prepend'" , I wonder whether it works if we have a file,lets say, in /htdocs/mydircteory/something/file.php? And more: how can we know if we want our value to be quoted? I mean, sometimes something like this BC_PATH."/ext/metabase" is passed and it doesn't need usual quotes arround it.... Andris Spruds |
From: Andreas A. <a.a...@th...> - 2001-08-24 00:06:38
|
Hi Andris, > > include_once('./prepend.php'); > > is also missing for the generated pagedef > I'll try to commit the latest version of it all tomorrow (I'm going to > figure out how to commit something at all as the day before > yesterday was my first day with CVS). Cool. I'll help if you have probs. > About "prepend'" , I wonder whether it works if we have > a file,lets say, in /htdocs/mydircteory/something/file.php? prepend.php is replicated over all dirctories, i guess. > And more: how can we know if we want our value to be quoted? I mean, > sometimes something like this BC_PATH."/ext/metabase" is passed and it > doesn't need usual quotes arround it.... In fact it does not work with quotes. That's a problem. I just worked around it by setting IncludePath directly in QueryManager. But I don't like it. So xml2php should look for BC_* and act accordingly i.e. BC_PATH."path/to/" Another problem ist that xml2php translates structures with no more than one "entry" like: <langs> <lang> ... </lang> </langs> into $data = array( 'lang'= array (..); ); but what we want is $data = array( array( ... ) ); For the moment this was only a problem with datasources.php and i added a dummy entry to avoid this. Best, Andi |
From: Andris S. <an...@do...> - 2001-08-24 08:10:37
|
> > I'll try to commit the latest version of it all tomorrow (I'm going to > > figure out how to commit something at all as the day before > > yesterday was my first day with CVS). >Cool. I'll help if you have probs. Yup. The server said: cvs [server aborted]: "commit" requires write access to the repository... >prepend.php is replicated over all dirctories, i guess. Alex, what do u think? > In fact it does not work with quotes. That's a problem. I just worked around > it by setting IncludePath directly in QueryManager. But I don't like it. So > xml2php should look for BC_* and act accordingly i.e. BC_PATH."path/to/" The latest XMLUtils does just that. > Another problem ist that xml2php translates structures with no more than one > "entry" like: Not sure I understand what you mean, but with latest XMLUtils & xml2php and the xml file definitions I sent to Alex, the only thing one needs to change is passwords in datasources.php. After that, even the query_example works. Andris Spruds |
From: Andreas A. <a.a...@th...> - 2001-08-24 10:55:41
|
Hi Andris, [cvs] > Yup. The server said: cvs [server aborted]: "commit" requires write > access to the repository... Hmm.. Did you set up the SSH stuff correctly? You can also use pserver with sourceforge but thats readonly. You're using windows right? There is a setup tool for sourceforge to set everything up in windows + wincvs. Try the following: ssh -l usersfaccount cvs.binarycloud.sourceforge.net type in your password Does this work? Important to cvs is, to have CVS recognize the ssh method. export CVS_RSH=ssh (bash) If you're under cygwin the ssh for cygwin does not work with wincvs. > > xml2php should look for BC_* and act accordingly i.e. BC_PATH."path/to/" > The latest XMLUtils does just that. Cool. Alex, did you do a sync ? > > Another problem ist that xml2php translates structures with no more than > > one"entry" like: > Not sure I understand what you mean, but with latest XMLUtils > & xml2php > and the xml file definitions I sent to Alex, the only thing one needs to > change is passwords in datasources.php. After that, even the query_example > works. So does it work if you have more than one entry in your datasources.xml.php? With only _one_ record in the source xml.php file: <datasources> <datasource> <name>value</includepath> <database>value</database> </datasource> </datasources> The generated php looks like: $QueryManager->datasources = array( 'datasources' => array( name => value, database => value ), ); If I put another "datasource" to the xml.php file... <datasources> <datasource> <name>value</includepath> <database>value</database> </datasource> <datasource> <name>value2</includepath> <database>value2</database> </datasource> </datasources> .. i get this: $QueryManager->datasources = array( array( name => value, database => value ), array( name => value2, database => value2 ), ... ); And that's exactly what we have in langs.php and going to have in queries, and to be in sync also with datasources (I've already modded querymanager to support this and will commit if everything works fine with your latest xml stuff). So xml2php behaves right if at least 2 datasources, langs, queries etc are defined. Andi |
From: Alex B. <en...@tu...> - 2001-08-24 18:12:09
|
>>> I'll try to commit the latest version of it all tomorrow (I'm going to >>> figure out how to commit something at all as the day before >>> yesterday was my first day with CVS). >> Cool. I'll help if you have probs. > Yup. The server said: cvs [server aborted]: "commit" requires write > access to > the repository... > >> prepend.php is replicated over all dirctories, i guess. > Alex, what do u think? We're going to have to use BC_PATH_HTDOCS to do the include from now on. But that's set in user constants, so all should be well :) >> In fact it does not work with quotes. That's a problem. I just worked > around >> it by setting IncludePath directly in QueryManager. But I don't like it. > So >> xml2php should look for BC_* and act accordingly i.e. BC_PATH."path/to/" > The latest XMLUtils does just that. > >> Another problem ist that xml2php translates structures with no more than > one >> "entry" like: > Not sure I understand what you mean, but with latest XMLUtils & xml2php > and the xml file definitions I sent to Alex, the only thing one needs to > change is passwords in datasources.php. After that, even the query_example > works. > > Andris Spruds _a |
From: Andreas A. <a.a...@th...> - 2001-08-24 19:12:05
|
Hi Alex, > >> prepend.php is replicated over all dirctories, i guess. > > Alex, what do u think? > We're going to have to use BC_PATH_HTDOCS to do the include from now on. > But that's set in user constants, so all should be well :) ??? I thought the user constants are loaded with the init process, init reqires BC_PATH and init is importet by import() that is provided by ./prepend.php. So how should BC_PATH_HTDOCS work without init. Or am i missing something? Andi |
From: Alex B. <en...@tu...> - 2001-08-24 19:23:43
|
> Hi Alex, > >>>> prepend.php is replicated over all dirctories, i guess. >>> Alex, what do u think? >> We're going to have to use BC_PATH_HTDOCS to do the include from now on. >> But that's set in user constants, so all should be well :) > > ??? I thought the user constants are loaded with the init process, init > reqires BC_PATH and init is importet by import() that is provided by > ./prepend.php. So how should BC_PATH_HTDOCS work without init. Or am i > missing something? > > Andi you aren't, we can set it earlier. I think that we'll end up doing something like include_once(BC_PATH."user/conf/prepend.php") or something, so we don't have to do anything special. prepend was put into htdocs by default, no by design, and I would prefer to move it out entirely. _a |