too many files - ptv webviewer!?   [SOLVED] - View the solution

This forum is fully dedicated to Panotour / Panotour Pro bug reports as well as feature discussion.
no avatar
moffoys
Member
 
Topic author
Posts: 13
Likes: 1 post
Liked in: 1 post
Joined: Sun Nov 17, 2013 4:43 pm
Info

too many files - ptv webviewer!?

by moffoys » Tue Jan 31, 2017 12:36 pm

Hello,

my webhoster has a file limit on 256.000 files. i host many tours and we need more than 256.000 files.
the problem is, one tour has over 6.000 files, this is many. Is it possible to compress the tour to a zip and read this zip as a normal tour? an another solution are a ptv webviewer.

Anyway, the handling from one file are better than 6.000 files. I need a solution to make from 6000 files (as sample) to 1 file on my webspace :-) i don't know is this possible.

no avatar
moffoys
Member
 
Topic author
Posts: 13
Likes: 1 post
Liked in: 1 post
Joined: Sun Nov 17, 2013 4:43 pm
Info

Re: too many files - ptv webviewer!?

by moffoys » Tue Jan 31, 2017 4:17 pm

self resolved with PHP! zip your Tour, upload it and make an index.php with follow code:

<?php
$handle = fopen('zip://vr.zip#index.html', 'r');
$result = '';
while (!feof($handle)) {
$result .= fread($handle, 8192);
}
fclose($handle);
echo $result;
?>

it works!!! the php open the tour from the zip file. awesome!

User avatar
bdd
Kolor Team
 
Posts: 2802
Likes: 14 posts
Liked in: 130 posts
Joined: Tue Jan 18, 2011 4:05 pm
Info

Re: too many files - ptv webviewer!?

by bdd » Tue Jan 31, 2017 4:26 pm

With such workaround, you will face other limits.

Try for example to access your tour on different devices at same time.

Your server may face some memory limits as the tour will be unzipped in memory on server side.

Gérald

no avatar
moffoys
Member
 
Topic author
Posts: 13
Likes: 1 post
Liked in: 1 post
Joined: Sun Nov 17, 2013 4:43 pm
Info

Re: too many files - ptv webviewer!?

by moffoys » Tue Jan 31, 2017 4:36 pm

yeah, it doesnt work. it only open the index.html, blank site! is there a solution to make it possible?

User avatar
Annis
Kolor Team
 
Posts: 6063
Likes: 801 posts
Liked in: 444 posts
Joined: Mon Aug 12, 2013 12:47 pm
Location: France
Info

Re: too many files - ptv webviewer!?  [SOLVED]

by Annis » Mon Feb 06, 2017 12:05 pm

There is no solution, you can't englobe the entire virtual tour (which is a web page) in a single file with all it's resources.

That was only possible in Flash.


Who is online

Users browsing this forum: No registered users and 2 guests