l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
April 21: Google Glass
Next Installfest:
TBD
Latest News:
Mar. 18: Google Glass at LUGOD's April meeting
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
<snip> 
> > 
> > # ---------- 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:

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

Now I'll play with the second option.
Thanks,
Jim

> > <!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>

<snip>


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
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:
EDGE Tech Corp.
For donating some give-aways for our meetings.