I've got a program that can export files to xml format, and I wanted to
use this to put up these files on my site for easy access from various
locations as well as show/tell amongst the people I associate with.
However I'm running into issues (d'uh, or I wouldn't be writing this) and
I haven't had luck trying to dig through the archives.

Here's my current setup:

altaica:/usr/local/apache/bin# ./httpd -V
Server version: Apache/1.3.27 (Unix)
Server built:   Apr 17 2003 18:30:21
Server's Module Magic Number: 19990320:13
Server compiled with....
 -D HAVE_MMAP
 -D HAVE_SHMGET
 -D USE_SHMGET_SCOREBOARD
 -D USE_MMAP_FILES
 -D HAVE_FCNTL_SERIALIZED_ACCEPT
 -D HAVE_SYSVSEM_SERIALIZED_ACCEPT
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D HARD_SERVER_LIMIT=256
 -D HTTPD_ROOT="/usr/local/apache"
 -D SUEXEC_BIN="/usr/local/apache/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
 -D DEFAULT_LOCKFILE="logs/httpd.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
 -D ACCESS_CONFIG_FILE="conf/access.conf"
 -D RESOURCE_CONFIG_FILE="conf/srm.conf"


altaica:/usr/local/lib# php -v
PHP 4.3.1 (cli) (built: Apr 17 2003 20:23:19)
Copyright (c) 1997-2002 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
altaica:/usr/local/lib# php -m
[PHP Modules]
bz2
calendar
ctype
dba
mysql
ncurses
openssl
overload
pcre
posix
session
standard
tokenizer
xml
zlib

[Zend Modules]


I've gotten the module loaded successfully, even have forums and such
running that use php code - but despite what you see here that shows the
xml module was built in php, I can't get it to parse on my server.

I tried editing the following line to add .xml and .xhtml but it didn't
help:

AddType application/x-httpd-php .php .phtml .php3 .xml .xhtml

The instructions located here aren't too helpful either:

http://us4.php.net/manual/en/ref.xml.php

Anyone have suggestions? Perhaps it's just the file itself that's causing
the problem..?

The first line is: <?xml version="1.0"?> and with the .xml and .xhtml in
the above httpd.conf entry I get the following error:

Parse error: parse error, unexpected T_STRING in
/home/tib/public_html/1250kroot.xml on line 1

Without it the url for the xml file just spits out a single line of text
that is useless for human consumption.

Thanks in advance.

<EOL>
Tib

Reply via email to