PHP Classes

not working

Recommend this page to a friend!

      MySQL Structure Magic  >  All threads  >  not working  >  (Un) Subscribe thread alerts  
Subject:not working
Summary:first 2 method work 3rd doesn't
Messages:2
Author:Adi Teo
Date:2008-08-18 16:19:28
Update:2008-08-18 17:48:08
 

  1. not working   Reply   Report abuse  
Picture of Adi Teo Adi Teo - 2008-08-18 16:19:28
getiihn the xml and php work but when i try to compare script outputs nothing.

seen that u have a asourcedata variable that is an array, and in the form and class it has been passed an non-array value

public function importPhp($sVarName,$sFileName)
{
if( !@include($sFileName) )
{
$this->errorHandle('Failed to open source file.',true);
}
$this->aSourceData = ($sVarName) ? ${$sVarName} : ${$mySqlStructMagic_sVarName};
}


  2. Re: not working   Reply   Report abuse  
Picture of Alen Pokos Alen Pokos - 2008-08-18 17:48:08 - In reply to message 1 from Adi Teo
$sVarName represents a variable name, when you export it in php, php data array is named by that variable, and it is also written in $mySqlStructMagic_sVarName for the autodetect feature.
Possible problem is that you may have changed the php export file or class itself, because all u have to change in demo.php to work on your server are config variables on lines 20-23.
If you post more information about the problem ?