Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP XML functions

Status
Not open for further replies.

tweenerz

Programmer
Mar 25, 2002
202
US
I created an application on my local PC machine to communicate with Filemaker on another server. Eventually I got everything to work fine with the use of the FX class. Now when I moved it to the Unix production server (of which I have no admin access) if received the following error:
Code:
Fatal error: Call to undefined function: xml_parser_create() in .../httpdocs/adm/src/FX.php on line 467

I am assuming, since this is a PHP function, that something was not bundled in during the install. From what I read, it should have been installed by default.

Does anyone have an idea why 1. I get this error and 2. if there are any workarounds since I don't have admin access to the server. I don't think there is anything in the ini file to set for this.

Thanks
 
I recommend as a first step that you talk to your hosting provider about this.


You're getting the error because the family of functions you need is disabled in the installation. Since this extension is, indeed, enabled by default, I would imagine this was a deliberate action on the part of your hosting provider. Have you asked them about this?


As a workaround, you might try invoking expat externally. But only your hosting provider can say for certain whether this is possible.


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Thanks sleipner,

I have unsuccessfuly tried to get an answer out of the hosting company as to why the expat library has not been installed and, better yet, if it can be enabled.

I have also contacted other companies and inquired about the support of expat and a couple of them said they don't have it enabled. Obviously, they can simply be blowing me off and don't want to find out what it is, since most phone technical and (especially) sales people probably don't know what it is.

Now to my question:

Assuming the hosting company intentionally disabled it, can you think of any security reasons, or any possible rationale for not installing it?

Thanks
 
Can you run a phpinfo() call against the server,you may have old version of PHP. I would think they would not switch on XML as it can be quite CPU intensive. The phpinfo() will tell you lots and lots about the environment your in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top