Can someone explain me what this code means
require_once “nxs-api/nxs-api.php”
it is from a script I found on this site
<?php
require_once “nxs-api/nxs-api.php”;
$email = admin@admin.com’;
$pass = ‘admin’;
$msg = ‘Have a nice #day’;
$imgURL = ‘https://images.wordpress.com/2014/08/photo1.jpg’;
$link = ‘https://mysite.wordpress.com/2014/08/02/link /’;
$boardID = ‘ ‘;
$nt = new nxsAPI_PN();
$loginError = $nt->connect($email, $pass);
if (!$loginError)
{
$result = $nt -> post($msg, $imgURL, $link, $boardID);
}
else echo $loginError;
if (!empty($result) && is_array($result) && !empty($result[‘post_url’]))
echo ‘New Post‘;
else
echo “
".print_r($result, true)."
“;
?>
I guess I need that script, but where can I find it or can I also remove it?
How can I get this script above working?
Pease help.