parse problem with PHP4 and horde

Theodore Vaida tfvaida at rmi.net
Wed Nov 8 10:26:59 PST 2000


I get the following message from /horde/test.php3

--
test.php3: parse error, expecting `'('' on line 3
error_reporting(E_ALL); // we want to be as verbose as possible here
--

I have installed php4 with imap and pgsql support but I get the 
following message when trying to access the horde pages  this is with 
horde-latest,
php-latest and apache-latest (as of Friday).


A file with
<?phpinfo()?>

works correctly


Is this a new problem with PHP4 or something incorrect in my 
httpd.conf file for apache - how should I be mapping the php3 pages 
to the PHP4 module?

heres the application map in my httpd.conf:
# php4
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3

Here is the output of phpinfo:
--------
PHP/FI Version 2.0.1

by Rasmus Lerdorf (rasmus at lerdorf.on.ca)

The PHP/FI Web Site is at http://php.iquest.net/

This program is free software; you can redistribute it and/or modify 
it under the terms of the GNU General Public
License as published by the Free Software Foundation; either version 
2 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but 
WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE. See the GNU General
Public License for more details.

You should have received a copy of the GNU General Public License 
along with this program; if not, write to the Free
Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


Unix version: Linux concord.vaida.net 2.2.15-2.9.0 #1 Tue Mar 7 
20:09:37 MST 2000 ppc unknown

Environment:

PWD=/usr/local/src/php-4.0.3pl1
HOSTNAME=concord.vaida.net
QTDIR=/usr/lib/qt-2.1.0
LESSOPEN=|/usr/bin/lesspipe.sh %s
ENV=/root/.bashrc
KDEDIR=/usr
USER=root
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
MACHTYPE=powerpc-yellowdog-linux-gnu
MAIL=/var/spool/mail/root
INPUTRC=/etc/inputrc
DISPLAY=co58:0.0
LOGNAME=root
SHLVL=3
SHELL=/bin/bash
USERNAME=root
HOSTTYPE=powerpc
OSTYPE=linux-gnu
HISTSIZE=1000
TERM=xterm
HOME=/root
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
_=/bin/nice


Apache defined variables available to PHP/FI:

DOCUMENT_ROOT = /home/httpd/html
HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
image/png, */*
HTTP_ACCEPT_CHARSET = iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING = gzip
HTTP_ACCEPT_LANGUAGE = en
HTTP_CONNECTION = Keep-Alive
HTTP_HOST = www.vaida.net
HTTP_USER_AGENT = Mozilla/4.08 (Macintosh; U; PPC, Nav)
PATH = /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
REMOTE_ADDR = 209.38.110.17
REMOTE_PORT = 1563
SCRIPT_FILENAME = /home/httpd/html/phptest.php
PATH_TRANSLATED = /home/httpd/html/phptest.php
SERVER_ADDR = 209.38.110.18
SERVER_ADMIN = www at vaida.net
SERVER_NAME = concord.vaida.net
SERVER_PORT = 80
SERVER_SIGNATURE =
Apache/1.3.12 Server at concord.vaida.net Port 80

SERVER_SOFTWARE = Apache/1.3.12 (Unix) (Linux) PHP/4.0.3pl1
GATEWAY_INTERFACE = CGI/1.1
SERVER_PROTOCOL = HTTP/1.0
REQUEST_METHOD = GET
QUERY_STRING =
REQUEST_URI = /phptest.php
PATH_DIR =
PATH_INFO = /phptest.php
PHP_SELF = /phptest.php

Request HTTP Headers:

Accept:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Charset:iso-8859-1,*,utf-8
Accept-Encoding:gzip
Accept-Language:en
Connection:Keep-Alive
Host:www.vaida.net
User-Agent:Mozilla/4.08 (Macintosh; U; PPC, Nav)

Send HTTP Headers:

Connection:close
Content-Type:text/html

Information on /home/httpd/html/phptest.php
Type: ordinary file
Permission Bits: 0644
Number of Links: 1
Owner: www From Group: users
Group: users
Size: 14
Last Access: Wed Nov 8 08:08:16 2000
Last Modification: Tue Nov 7 08:52:15 2000
Last Status Change: Tue Nov 7 08:52:15 2000

Working Directory: /home/httpd/html
Include Path: .
GDBM support enabled
Apache module support enabled
GD support enabled
SAFE MODE Enabled!
-- 
--
Theodore Vaida, 303-448-7710, mailto:tfv at lsil.com
LSI Logic Corporation., North America SOC Methodology
Suite 201, 4940 Pearl E. Circle, Boulder CO 80301
Colorado, land of SouthPark, now that's not saying much!




More information about the horde mailing list