[sword-devel] Re: PHP format
Sun, 12 Jan 2003 13:48:39 -0700
Thank you, that is the information. I may do well at being able to decipher
the code coming from the sword source itself. I say that because I have been
programming in C/C++ for over 10 years. Another question that came up, is
does anybody have any information for PHP and regular expression searching,
I ask this because I am trying to decipher some of the tagging code that
converts the THML information produced by the sword side of things and
render hyperlinked HTML from it.
I am not sure who first started the latest thread on the Post Nuke topic,
but if whoever it is wants to see the code I am writing to do these things,
contact me and I will figure a way to send it to you. I have it in two
files, a viewable file similar to diatheke.pl and a file containing
functions that interact with the sword stuff which may change once I get
certain parts started. I am going to try using swig with it so that the
speed of the slowness in the exe can be fixed and also have it better for
By the Grace of God,
Dan Adams - infoChi@infomagic.net
1 Peter 4:10 (NIV)- Each one should use whatever gift he has received to
serve others, faithfully administering God's grace in its various forms.
[mailto:email@example.com] On Behalf Of Glen Prideaux
Sent: Saturday, January 11, 2003 11:48 PM
Subject: [sword-devel] Re: PHP format
Daniel Adams wrote:
>It makes sense to me, I am working at re-doing diatheke right now and
>am dealing with the diatheke.pl -> .php part of the formatting. I will
>ask, once again, what would the function be, or which file is it
>located in, that does the verse retrieval and also module lists?
>I am currently designing diatheke in a php format guiding from the perl
>By the Grace of God,
>Dan Adams - infoChi@infomagic.net http://dana.ucc.nau.edu/~dpa3
> 1 Peter 4:10 (NIV)- Each one should use whatever gift he has
>received to serve others, faithfully administering God's grace in its
The perl script works by calling the command line diatheke. It's the
command line program that does the work of retrieving the verses. What
the perl script does is allow you to interactively specify the
parameters to the command line program and then display the outputs.
Your PHP code could do just the same. This may require diatheke to
reside in a particular directory (the PHP safe_mode_exec_dir) if the
server is running PHP in "safe mode".
If you want to look inside the command line program, the main file is
apps/console/diatheke/corediatheke.cpp of the Sword distribution,
containing the function doquery. But whether you'll be able to make any
sense out of that depends on how good you are at reading other people's
C++ code, and really doquery is really just an interface to the API.
You'd probably get more from reading the comments in swmgr.h. I know I do.
sword-devel mailing list