l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
April 7: Social gathering
Next Installfest:
Latest News:
Mar. 17: DavisGIG: municipal fiber for Davis
Page last updated:
2002 Dec 10 15:00

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] PHP Include File Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] PHP Include File Problem

--- Troy Arnold <troy-vox@zenux.net> wrote:
> Two options:
> One, include your xml declaration as a quoted
> string:
> echo '<?xml version="1.0"?>';
> Or, disable php's short_open_tags ( <? ?> vs. <?php
> ?> )
> Try sticking this in a .htaccess:
> php_flag short_open_tag off
> You might also be able to toggle that flag on a page
> by page basis with
> something like: <?php
> ini_set('short_open_tag','off'); ?>
> hth
> -ta
> > 
> > # ---------- html_header.php, called from
> include.php
> > <?php
> > function html_header_10_strict ( $css_ref, $h1,
> $h2 )
> > {
> > ?>
> > <?xml version="1.0"?>

Hi Troy,

Option 1 worked.  I replaced the xml line with:

echo '<?xml version="1.0"?>'; 
echo "\n";

Now I'll play with the second option.

> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> > Strict//EN"
> >   
> >
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
> > <html xmlns="http://www.w3.org/1999/xhtml";>
> > <head>


Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.