Our web service has a solution that allows you to
use PHP and interact with scripts with the main system. The
initial API is also implemented, which can be used both for scripts and for something else, for the same mobile applications. In the near future, this functionality will be "tested in combat", and will continue to evolve in accordance with demand and demand.
In addition, the interest may be even more in this: if you believe the
statistics of Yandex (and Google), and you can believe it, then at the request of the “scripts”, it is primarily looking for “scripts for yukoz”.
Until today, in this way, we were looking for JS scripts for all sorts of chips on their sites, sometimes, however, quite serious and necessary features. Now, however, php-scripts sharpened under yukoz will obviously begin to look, and this may already be much more serious solutions. Which obviously can not only distribute, but also sell. I hope a certain market will eventually form.
')
I hope that the information on the Habré public will be interesting, and I count on criticism and suggestions on this matter.
And yet, for the sake of boasting, I’ll note that for SaaS products we are pioneers in this type of solutions, it’s interesting to see what happens. But it seems to us that it should turn out interesting and useful.
For those who are interested in those. Details "without departing from the cash register":
How does it look in practice?Consider the example of a script that stores any additional information about the user. The script creates a
form on the page
with additional fields for the current user, which he fills in and clicks the “Refresh” button.
A script reference code is added to the page template:
<?IF($USER_ID$)?> <div align="center"> <p> <b> </b> </p> </div> <hr> <?$PHPCODE$("http://phpexample.ucoz.net/php/example001/example001.php?uid=",$USER_ID$)?> <?ELSE?> <div id="phpdiv"> <p> . , </p> </div> <?ENDIF?>
And in the root of the folder is placed the file
example001.php with the contents:
<?php if(count($_POST)>0) { $___notjson=1; $lines = file('additiondata.dat'); if ($_POST['f0'] && $_POST['f1'] && $_POST['f2'] && $_POST['f3'] && $_POST['f4']) { foreach ($lines as $line_num => $line) { trim($line); list ($id, $data) = split("\t",$line,2); if ($id==$_POST['userid']) { unset($lines[$line_num]); file_put_contents('additiondata.dat', $lines); break; } }
More information about the intricacies of the functions can be read in the
instructions .
API usage description