You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

a.pu

Trainee

  • "a.pu" started this thread

Posts: 70

Location: Default city, Russia

Occupation: Vtour dev, design, UX and photography

  • Send private message

1

Monday, June 17th 2019, 12:08pm

Merge krpano sources into one file

Subj.

I have 30 separate files with code in a project.
I'd like to have a tool to merge all files in one before encrypting and uploading.
Does anyone have experience in that?

jordi

Intermediate

Posts: 428

Location: Barcelona

Occupation: creating ideas & coding them

  • Send private message

2

Monday, June 17th 2019, 4:51pm

You can easily do that in php for example.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
$location = "/yourLocation/toFiles/"
$destination = "/yourDestination/"

$krpanoFiles = ["fileA","fileB",...];

foreach ($krpanoFiles as $file) {
	$mergedFile = $mergedFile."\n".file_get_contents($location.$file.'.xml');

	... do any extra function you need
}


file_put_contents($destination.'yourMergedXML.xml', $mergedFile);


You can execute that php directly on your computer without a server.
If you would like some custom code or any further feature here, please direct message me
everpano.com smart virtual tours