loading kmz file created at runtime

how can i load kmz file created using php file at runtime.
var path2 = ‘http://localhost/cip_cesium/cesium/sample/kml_district.php’;


only creates the kmz file but dont load the kmz file to cesium.

loadUrl dont work.

Your code looks fine. Have you tried to load the file you are generating manually to make sure it works as expected? If it doesn’t load manually either, can you share it so we can have a look?