PHP to connect to external site and perform some action
<p>I have my site called myDomain.com which has a PHP file called myDomainFile.php</p>

<p>Now inside this file (when it gets called), can I write code to connect to external site (otherDomain.com)
I need to login to otherDomain.com using some Username/Password, navigate to dashboard.php, which has a form (with one textbox). I need to populate this textbox, using values which I get from myDomain.com and then through my script and submit the form.</p>

<p>So in simple terms, it is like I want to automate the task of login to external site, adding URL manually there through PHP code.</p>

<p>Can I do this. Could someone please provide me some reference example.</p>
