prob with web demo interface

+1 vote

whene i run the web demo :

Choose an available node to get started:

$rpc) if (isset($rpc['rpchost'])) echo '

'.html($rpc['name']).'
'; ?>

 

 

here is my config.txt (I'm running the multichain and webdemo server in the same node) :

default.name=default               # name to display in the web interface
default.rpchost=127.0.0.1           # IP address of MultiChain node
default.rpcport=7436               # see rpc-port from chain parameters
default.rpcuser=multichainrpc       # username for RPC from multichain.conf
default.rpcpassword=ByHLgbDZmBvseH2P7Q3yXNKFTLEGTJvqB45a9zEkyb2X # password for RPC from multichain.conf

 

asked Mar 7, 2017 by ja_mk

1 Answer

+1 vote

This happened with an earlier version of the web demo if the short_open_tags setting was not switched on for PHP. The latest version should fix it – can you please try downloading again?

answered Mar 7, 2017 by MultiChain
<?php

        foreach ($config as $chain => $rpc)

    if (isset($rpc['rpchost']))
                echo '<p class="lead"><a href="./?chain='.html($chain).'">'.html($rpc['name']).'</a><br/>';
?>

here is the php script in my version of web demo
i think that's the latest version
how should i fix this
Thanks
In that case it looks like your web server simply does not support PHP? You can check by making a single file test.php containing this single line:

<?php phpinfo();

Install it in your server, then retrieve http://your.web.site/test.php and see what's displayed. If nothing shows up, you don't have PHP working on your web server.
Yes it works now
Thank You
...