Socket Send and checking for user login in php?
<p>First, I would like to check to see if a user is logged in.  If not, the user should be redirected to the login.php page. </p>

<p>Second, I would like to send a socket in PHP. What I would like to happen is when the mute button is selected, a message is sent to the computer instructing it to do so.  </p>

<p>The purpose of this is for an app that I am creating but I'm not sure how to proceed.</p>

<pre><code>&lt;?php 

//session_start();

include("helper/DBOperation.php");

$dbObj = new DBOperation();

include("helper/check_user_login.php");

checkUserIsLogin();

?&gt;
</code></pre>
