No, I am trying to make an online configuration/editor program. It reads
in an XML formatted PHP file and ouputs the configuration of a state
machine via a page on the web. With some simple mouse clicks, one will
be able to program the desired behavior of the program.
The XML formatting is transparent to the php program, like so:
<doc>
//<SO_editor_state>
$SO_editor_state="done";
//</SO_editor_state>
//<state_object>
//<class_declare>
class SObj{
//</class_declare>
//<SO_state>
$state;
//</SO_state>
//<SO_events>
$events;
//</SO_events>
//<SO_response_code>
//put code here
//</SO_response_code>
//<class_close>
}
//</class_close>
//</state_object>
//</doc>
All that would be necessary to import this into a DOM tree would be to
replace
all '//<' with '<'.
I needed some kind of tags for the configuration/editor to find the
parts it needed to massage/edit, and instead of reinventing the wheel, I
just use XML tags commented out.
As a temporary, intermediate step, (a.k.a. incremental programming), I
am just trying to output the 'session.inc' file in the phplib to the
screen. It no workee! Any help would be appreciated. The file opens and
reads fine, just doesn't output.
"George E. Papadakis" wrote:
>
> hm..
> Is include () or require () what you are talking about or I am wrong?
>
> -- GP
>
> > I have read in the lines from a php file into a $buff.
> >
> > Each line is set and the total corresponds to the number of lines in the
> > file.
> >
> > But trying to ouput the lines results in blank lines.
> >
> > do I have to pass the lines through something like chop(), or
> > html_spec_chars?
> >
> > How do you guys display php files to the screen in the HTML stream?
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]