From owner-freebsd-questions@FreeBSD.ORG Sun Mar 15 13:51:07 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C5459106564A for ; Sun, 15 Mar 2009 13:51:07 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 994C88FC15 for ; Sun, 15 Mar 2009 13:51:07 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from working (pool-72-95-226-5.pitbpa.ftas.verizon.net [72.95.226.5]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id B4F4DEBC0A; Sun, 15 Mar 2009 09:51:06 -0400 (EDT) Date: Sun, 15 Mar 2009 09:51:06 -0400 From: Bill Moran To: Drew Tomlinson Message-Id: <20090315095106.d63f3564.wmoran@potentialtech.com> In-Reply-To: <49BCFC98.3010602@mykitchentable.net> References: <49BCFC98.3010602@mykitchentable.net> X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: What Is Needed For SimpleXML Support in PHP? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Mar 2009 13:51:08 -0000 Drew Tomlinson wrote: > > I have php5-5.2.9 installed on my FBSD 6.3 system. I am attempting to > use a php script that fails with: > > Call to undefined function simplexml_load_string() > > Googling suggests that this function is part of the PHP software and is > installed by default unless built with the "--disable-simplexml" > configure option. > > On my system, almost everything including PHP has been installed using > portupgrade. I searched the ports and found one named php5-simplexml so > I installed it and tried the script again. It still failed with the > same error. > > More Googling and I found that "php -m" will show which modules are > available. Here's that output: > > blacklamb> php -m > [PHP Modules] > ... > SimpleXML > ... > > Thus it appears that SimpleXML is available. > > Can anyone tell me what I'm missing? I'm lost. Details? My guess is that this is a web script that you're running via a browser, and you didn't restart Apache after installing simplexml. Apache seems to cache the list of installed PHP modules. -- Bill Moran http://www.potentialtech.com