skaterdav85 Posted August 24, 2011 Share Posted August 24, 2011 I'm using the SoapClient class, and when i move over my app to a test server, i get the following:Fatal error: Class 'SoapClient' not found in /public/info/ami/Aeropops.php on line 20When I do a phpinfo(), under Configuration Command I see this:--enable-soap=sharedAny idea what might be wrong? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 24, 2011 Share Posted August 24, 2011 Check to see if there's an extension for SOAP in php.ini that isn't enabled. There's also a thread here where a guy was getting different results in CLI vs. server:http://www.phpbuilder.com/board/showthread.php?t=10346166 Link to comment Share on other sites More sharing options...
skaterdav85 Posted August 24, 2011 Author Share Posted August 24, 2011 so does the enable command above just compile SOAP with PHP, but then you have to enable the extension through an ini file? I dont have much experience configuring PHP, so this is pretty new to me.I dont have access to the ini file. This is a company server so i'll have to go through some hoops to get that done. Could I just write an ini file in my directory, and that one directive will be modified? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 24, 2011 Share Posted August 24, 2011 I'm not sure about SOAP specifically. One thing to check would be the phpinfo page and see if the SOAP client and server are listed there. Link to comment Share on other sites More sharing options...
skaterdav85 Posted August 24, 2011 Author Share Posted August 24, 2011 its not. the only thing that shows up with the word soap is--enable-soap=sharedand im not quite sure what that means though. on my local dev environement, i am using XAMPP and when i do phpinf(), i see it as one of the extensions active, like libxml, simplexml, curl, etc. Link to comment Share on other sites More sharing options...
boen_robot Posted August 24, 2011 Share Posted August 24, 2011 When enabling any extension, you must talk to your host. There are various ways in which they might let you enable extensions yourself (and for some reason, they never list it in any help files or anything), or they might not allow it at all, and hence require you to contact them, telling them to enable it (the configure thing is just about them having the extension available to load in case someone asks for it). Link to comment Share on other sites More sharing options...
skaterdav85 Posted August 24, 2011 Author Share Posted August 24, 2011 so in my case, the SOAP extension is there, but it isn't enabled? Link to comment Share on other sites More sharing options...
boen_robot Posted August 24, 2011 Share Posted August 24, 2011 Exactly. And whether you're allowed to enable it yourself, and how, depends on the way your host has set it up. Link to comment Share on other sites More sharing options...
skaterdav85 Posted August 24, 2011 Author Share Posted August 24, 2011 so i guess either the host will enable it in their php.ini file or the host will allow users to create custom php.ini files in their own directory and certain directives can be overridden? Link to comment Share on other sites More sharing options...
boen_robot Posted August 24, 2011 Share Posted August 24, 2011 so i guess either the host will enable it in their php.ini file or the host will allow users to create custom php.ini files in their own directory and certain directives can be overridden?...or allow you to edit .htaccess files, or tweak certain settings from a control panel, or some other sort of semi-half control of PHP. Link to comment Share on other sites More sharing options...
skaterdav85 Posted August 25, 2011 Author Share Posted August 25, 2011 thanks boen! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.