How use block for script

help me use block this script in kodular
<script src=""></script>


<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, ""); curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); $data = curl_exec($ch); curl_close($ch); $data = str_replace('', "", $data); $split = explode(',', $data); if (empty($split[6])) { $title = "The current song is not available "; } else { $count = count($split); $i = "6"; while($i<=$count) { if ($i > 6) { $title .= "," . $split[$i]; } else { $title .= $split[$i]; } $i++; } } $title = substr($title, 0, -1); echo $title; ?>

Why you want to use that script…
I mean purpose of using that script?

Is this how you use the block?

that not show …:frowning:

1 Like

This is the json i think…

1 Like

You can use evaluate js block available in webviever blocks and and just put script in it.


For this you simply goto url in webviever from this src

1 Like

And for php this is server side scripting

1 Like

You can load it to WebViewer by instering a HTML file to assets or use Evaluate JS block to execute JavaScript for adding piece of HTML to the current page.

1 Like