Current location: Hot Scripts Forums » Programming Languages » PHP » Passing values to "file_get_contents"


Passing values to "file_get_contents"

Reply
  #1 (permalink)  
Old 02-04-10, 12:13 PM
Sprinterx Sprinterx is offline
New Member
 
Join Date: Feb 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Passing values to "file_get_contents"

Hey All.

I am working on a small tool that will auto log you into a chat on Blogtv with a random user name.

I have created the random user names that will be used and I have managed to do what I want to do, but the details I use expire after a length of time, making it useless.

At the moment, I search the chat page the clients goes to and grab the relevant information and enter the values into the remote chat that I have created. There are only two values that are unique to the client that are needed to enter the chat. The example shows 5 possible user names the client would use when they used the remote chat.

PHP Code:

//btvbots1

$btvbots1UserId "1669192";
$btvbots1userNameEnc "UMvVjvLGVNlOjejGUMfVRnpnbFfOheb6TMvVj4pka4pnU6lOhVx4Um45d54nZFjOifhFUMvVdfpngH";

//btvbots2
$btvbots2UserId "1669210";
$btvbots2userNameEnc "UofSjfNGU3jSZnzGUMvkRnpnbFfOhebFUMfUdfpXa4nnbFfOjfz4Um45j4pgdodSifdEUMVuj58nf3R";

//btvbots3
$btvbots3UserId "1669211";
$btvbots3userNameEnc "UMfUW4prbFdhhVxGUfj5j4prf6hShej5UofUdOtSjf8vUUfYW4LtdNjSZVhFUMvVjnpnbFhSjfh5";

//btvbots4
$btvbots4UserId "1669212";
$btvbots4userNameEnc "UMvkW4pvgwhOZnlGUMVwRnpnbFfOheb6Tm8VjvnTa58nf3lhhf0ETUfSRnpnbFfOheb6Tm8VjvnT";

//btvbots5
$btvbots5UserId "1669214";
$btvbots5userNameEnc "Ue8SdM8rgwjSZVhETUVudE8rfodSiflwUUfWa4pvZwjhZNxFTnj5j586dodSifdEUMVwdM8veoR";

//btvbots6
$btvbots6UserId "1669216";
$btvbots6userNameEnc "UMfSjU8nUojSif0GUe45j4prf6hShej5UUVwj1tSjfhEUMvYW58gdodhfFhFUMvVjnpnbFhhhejF"
The final code looks like this once everything is completed by php (this would let you enter chat under the user name "btvbots1":

HTML Code:
<!doctype HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>      
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      <script src="http://www.blogtv.com/en/Include/swfobject.js" type="text/javascript"></script>
      <script src="http://www.blogtv.com/en/include/UserPageJS.js" type="text/javascript"></script>
      <script type="text/javascript" src="submit.js"></script>
</head>
<body>

<form id="myform" action="">
  Blogtv Show: <input style='width:330px;' type='text' name='show' id='show' value=www.blogtv.com/people/techpureHD>
  
  &nbsp;&nbsp;&nbsp;<input type='Submit' onClick='javascript: submitform()' value='Submit'>		
</form>


<script language="JavaScript" type="text/javascript">
var _FLASH_URL = "http://www.blogtv.com/Flash/";
var FLASH_XML_URL = "http://www.blogtv.com/en/FXml/";
var CookieUsrId =1669211;
var _UserCurrentAge =30;
var _OwnerProgramId=842460;
var _ProgId = "842460";
var _OwnerUserId=1006887;
var _ownerUserId = "1006887";
var _BroadCasterUserid = "1006887";
var _ownerUserName = "techpureHD";
var _UserId = "1669211";
var _ProFriendList = 2106;
var _LiveEnc = "Ze_HbmPDbGFDb27Fbm_";
var _liveEncEmbed="Ze_HbmPDbGFDb27Fbm_";
var _UserBoxBG = "#FFFFFF";
var _PlayerName = "techpureHD";
var _OwnerUserPageUrl = "http://www.blogtv.com/people/techpureHD";
var _SWF_CACHE_VER = "4.6";
var _channelId = "7";
var _keyId = "";
var _FMServerName = "fms180.blogtv.com";
var _userNameEnc = "UMvVjvLGVNlOjejGUMfVRnpnbFfOheb6TMvVj4pka4pnU6lOhVx4Um45d54nZFjOifhFUMvVdfpngH";
var _fcaPlayerName = "FCA_54";
</script>

<!--CHAT-->
<div class="posRel" id="Vod_Spacer" style="display:none;" ><div>BTV Bots.</div></div>
<div id="FCAobject" class="posAbs Vi_V" style="left:477px;top:35px;width:507px; height:406px;">   

<script type="text/javascript" language="javascript">
var _flash_Chat_Div = "FCAobject";
Write_FCA();
</script>
</div>
</body>
</html>
But. the "var _userNameEnc" value expires after a length of time and I do not know how to generate this code or grab it without manually logging in and looking at the source and copy/paste the relevant values into my php code again.

I am wondering if there's anyway to either generate a value that is dynamic and works each time, or is there anyway to grab it, for example using "file_get_contents($url)" but using a user name and password, or fool it into thinking its is the user "btvbots1" and grab the latest "var _userNameEnc" value??

Can anyone help me on this one or see an alternative way of doing it?

Thanks in advance.

(Also, willing to reward via paypal if needed)
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Auto Dealer Script nuzzle PHP 17 04-14-10 08:34 PM
Problem with passing values kavionly PHP 6 06-15-09 05:57 AM
Passing Array values into the db Stripe-man PHP 2 05-14-05 02:59 AM
Passing Listbox values Addict JavaScript 2 01-22-04 04:52 PM


All times are GMT -5. The time now is 08:10 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.