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.

1

Friday, July 29th 2022, 3:54am

Exec Krpano whit PHP

Hello, good evening, can someone help me with the php code? I'm inexperienced, and despite searching a lot I don't find answers. Krpano is in a folder on the server, the folder has permission 777 and the files permission 775, I tested two codes but when I access the server nothing happened. The intention was for KRpanotool to automatically create a VTOUR, thanks for the help.





EXAMPLE CODE 1


exec("/domains/imerso360.com.br/public_html/testekrpano/krpanotools makepano -config=/domains/imerso360.com.br/public_html/testekrpano/templates/normal.config /domains/imerso360.com.br/public_html/testekrpano/IMG_20190106_190848_313.jpg", $output);


EXAMPLE CODE 2


exec("ftp://imerso36@ftp.imerso360.com.br/domains/imerso360.com.br/public_html/testekrpano/krpanotools makepano -config=ftp://imerso36@ftp.imerso360.com.br/domains/imerso360.com.br/public_html/testekrpano/templates/normal.config ftp://imerso36@ftp.imerso360.com.br/domains/imerso360.com.br/public_html/testekrpano/IMG_20190106_190848_313.jpg", $output);

Douglas Rhiner

Intermediate

Posts: 137

Location: San Anselmo, CA

Occupation: Code-Slave

  • Send private message

2

Sunday, July 31st 2022, 5:41pm

Example 1 seems to be on the best track.

Here is a code snippet that creates multires panos that might give you some clues on how to pull this off.

Source code

1
exec('/xplorit/krpanotools makepano -config=' . $config_path . ' -tilepath=' . $new_path . 'the.tiles/[mres_c/]l%Al/%Av/l%Al[_c]_%Av_%Ah.jpg -previewpath=' . $new_path . 'the.tiles/preview.jpg -thumbpath=' . $new_path . 'the.tiles/thumb.jpg -xmlpath=' . $new_path . 'xml_' . $media_id . '.xml ' . $equi_path);


And you might want to look at this post for more clues:
https://krpano.com/forum/wbb/index.php?p…&threadID=18888

If you can get any output either browser-side or PHP logs please post.

3

Wednesday, August 3rd 2022, 11:06pm

It's your own server and not just some kind of webspace an you have permissions to run krpano, right?

BTW: The FTP one looks wild. You shouldn't do something like that :-D

4

Friday, August 5th 2022, 2:21pm

Douglas Rhiner

Thanks for sharing, it helped a lot. I need to study the code more and find the solution, step by step I'm getting it.


s-maier


That's one of my mistakes, the server is shared. From what I researched and studied for this type of task, I need a server of my own to run krpano. Thank you very much, I will research more on this.

Douglas Rhiner

Intermediate

Posts: 137

Location: San Anselmo, CA

Occupation: Code-Slave

  • Send private message

5

Thursday, August 18th 2022, 7:41pm

If it is a shared server but you have access to SSH you should be able to pull this off. I’ve done it in a CPanel environment, on a shared server, with no issues.

6

Wednesday, August 24th 2022, 8:17pm

Do you work with this? Would you be able to set up a programming routine for me, if I paid you, that would use krpano on my server to convert a user-submitted image into a virtual tour?