File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -3807,7 +3807,7 @@ public function historyPerMpsAverage()
3807
3807
}
3808
3808
3809
3809
public function debatsInfos (){
3810
- echo "historyPerMpsAverage starting \n" ;
3810
+ echo "debatsInfos starting \n" ;
3811
3811
3812
3812
// 1. Create table if not exists
3813
3813
$ this ->bdd ->query ("CREATE TABLE IF NOT EXISTS `debats_infos` (
@@ -3828,7 +3828,16 @@ public function debatsInfos(){
3828
3828
if ($ zip ->open ($ file ) !== TRUE ) {
3829
3829
exit ("cannot open < $ file> \n" );
3830
3830
} else {
3831
- echo "file opened " ;
3831
+ for ($ i = 0 ; $ i < $ zip ->numFiles ; $ i ++) {
3832
+ $ filename = $ zip ->getNameIndex ($ i );
3833
+
3834
+ $ xml_string = $ zip ->getFromName ($ filename );
3835
+
3836
+ if ($ xml_string != false ) {
3837
+ echo "Filename: " . $ filename . " \n" ;
3838
+ $ xml = simplexml_load_string ($ xml_string );
3839
+ }
3840
+ }
3832
3841
}
3833
3842
3834
3843
You can’t perform that action at this time.
0 commit comments