I'm doing my final project in PHP with a Soap webservice
In the client script (PHP) 3 files are read into a string
these strings and the name of the 3 files need to be passed to the
webservice
( python ) where he does some stuff with it and than normally returns "ok"
the code below works , but instead of the contents of the files
$Code_xxx_Conte nts I putted a fixed string.
if i try to put the name of the varialbe i don't get the wanted result
only "array"
//Strings with content of the 3 files
$Coded_Ncd_Cont ents = getFileContent( $Prefix , $Ncd_File_Name );
$Coded_Pcf_Cont ents = getFileContent( $Prefix , $Pcf_File_Name );
$Coded_Ini_Cont ents = getFileContent( $Prefix , $Ini_File_Name );
//put all the necasarry items in an array called parameters.
$parameters=arr ay( "task"=> array("integer" => $TaskNumber),
"subtask"=> array("integer" => 0),
"ncd_filena me" => $Ncd_File_Name,
"ncd_file"= > " this is the new ncd-contents" ,
"ini_filename"= > $Ini_File_Name,
"ini_file"= > "contents of ini-file",
"pcf_filename"= > $Pcf_File_Name,
"pcf_file"= > "this is the new pcf-contents");
//create new soap connection with server
require_once('n usoap.php');
$cliente=new soapclient('htt p://192.168.1.4:808 0/'); // my IP (wireless)
//call the function
$out=$cliente->call('exec_tas k_a_dyp', $parameters, "PE");
?><br>output : <? print $out;
Does anyone know how i get the contents of the files passed to the Python
server ?
##-----------------------------------------------#
Article posted from PHP Freaks NewsGroup
Get Addicted: comp.lang.ph
##-----------------------------------------------##
Comment