Topic: When calling PHP from XAJAX, problem using Include statement. Help.

I am trying to use a PHP include in my called function to store my DB connection variables.   When I uncomment the include below and comment out the variables, my code does not work.   I successfully use this  PHP include in many other places, but only when called from XAJAX does this not work.   This is a complete mystery to me.  Thanks in advance for any of your suggestions.   



<?PHP

require_once("./xajax/xajax_core/xajax.inc.php");

function process_form_data($form_data, $menu_update, $new_menu, $button)
{

$host = "xxxx";
$dbuser = "xxxx";
$dbpassword = "xxxx";
$dbname = "xxx";

/*include( "DBinfo.inc");*/

Re: When calling PHP from XAJAX, problem using Include statement. Help.

I suppose that your DBinfo.inc file contains whitespaces that breaks the XML response. Please doublecheck that script for whitespaces and/or a UTF8 BOM and let me know if it works wink

Re: When calling PHP from XAJAX, problem using Include statement. Help.

It worked!  You're the man q_no.   Thanks so much!

Re: When calling PHP from XAJAX, problem using Include statement. Help.

This thread helped me out a bunch too, thanks!