Re:IPFS Pics
by Breefield on Friday October 23, 2015 @01:44AM
(#10437002)
[edit] derp I am dumb, was not familiar with https://ipfs.io/
this explains my questions
[ Parent
| on HN ]
It looks like the PHP code is the front facing web code which then makes curl calls into the server.js code as you suspected. Presumably server.js is run using node which listens on port 8090 and exposes a few ipfs methods which just calls into the local ipfs binary on the system using exec calls.
IPFS is an interesting project and this is a pretty cool usage of it.
Re:IPFS Pics
by steckerbrett on Friday October 23, 2015 @01:49AM
(#10437011)
It's just POSTing the image to a web server running from something else.
I don't understand why they are doing dumb things like passing everything to a shell when PHP has curl support of its own, and imagemagick.
Not to mention that index.php contains only HTML.