Note that there are some explanatory texts on larger screens.

plurals
  1. POProblems Trying to showStatus Using identica-php
    text
    copied!<p>I'm using the <a href="http://code.google.com/p/identica-php/" rel="nofollow noreferrer">identica-php</a> to get a single post using <code>showStatus</code>, just like this:</p> <pre><code>&lt;?php ini_set('display_errors', 1); error_reporting(E_ALL); include '../scripts/identica.lib.php'; include '../misc.php'; // your identi.ca username and password $username = $_GET['u']; $password = $_GET['p']; $userid = $_GET['uid']; $postid = $_GET['pid']; // initialize the identi.ca class $identica = new Identica($username, $password, "Terrarium"); // fetch the timeline in xml format $xml = $identica-&gt;showStatus("xml", $postid); $identica_status = new SimpleXMLElement($xml); $status = $identica_status-&gt;status; $user = $status-&gt;user; echo '&lt;div id="singleStatus"&gt;' . $status-&gt;text . "&lt;/div&gt;&lt;br /&gt;"; echo '&lt;div class="single_posted_at"&gt;' . $status-&gt;created_at . " via " . $status-&gt;source . '&lt;/div&gt;'; echo '&lt;img src="' . $user-&gt;profile_image_url . '" class="identica_image"&gt;'; echo '&lt;a href="http://identi.ca/' . $user-&gt;screen_name . '" class="nameURL"&gt;' . $user-&gt;name . '&lt;/a&gt;: '; ?&gt; </code></pre> <p>But when I try to run the code everything I got is this:<br> <img src="https://i.stack.imgur.com/nsJQS.png" alt="Result of the code"></p> <p>What I'm doing wrong? An example of the XML result: <a href="http://pastebin.com/Q52yfQp9" rel="nofollow noreferrer">http://pastebin.com/Q52yfQp9</a></p> <p><em>PS: I've tried to show just the XML to do a test and it worked, so it won't be a problem with the Post ID or the XML, but in the code</em></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload