-
Posts
266 -
Joined
-
Last visited
Everything posted by devWhiz
-
what do you mean?
-
<?php $HitlistHeader = file_get_contents(url); $Hitlist = simplexml_load_string($HitlistHeader); foreach($Hitlist->xml->entry as $entry) { foreach($entry->target_user as $target) { $TargetID=$target->user_id; $TargetName=urldecode($target->mob_name); } foreach($entry->paid_user as $paiduser) { $PaidID=$paiduser->user_id; $PaidName=urldecode($paiduser->mob_name); } $Amount=$entry->amount; $TimeAgo=$entry->placed_time_ago; $Level=$entry->level; } for($cwb=1; $cwb!=count($entry); $cwb++) { echo $TargetID[$cwb]."\n"; echo $TargetName[$cwb]."\n"; echo $PaidID[$cwb]."\n"; echo $PaidName[$cwb]."\n"; echo $Amount[$cwb]."\n"; echo $TimeAgo[$cwb]."\n"; echo $Level[$cwb]."\n\n"; } sleep(100000); ?> it only echoes one character on only a few of the variables, I dont know what the problem could be.. Anyhelp to resolve this is appreciated
-
I need to use something else than cURL to create the code to login to myspace accounts, I have to be able to enter postfields, Thanks
-
<?php error_reporting(0); $email = ""; $password = ""; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://www.myspace.com/auth/login"); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, 'formLocation=splashForm&captchaHandler=%2FModules%2FPageEditor%2FHandlers%2FLogin%2F%7B0%7D.ashx&captchaResponse=&hash=MIGcBgkrBgEEAYI3WAOggY4wgYsGCisGAQQBgjdYAwGgfTB7AgMCAAECAmYDAgIAwAQIWWaRadlhotEEEA15tDCUhuiBjy8nd6RN3nEEUOoYRIpPoA1uOadO5d%252bIlVuABvbaJHaznd%252fYWuR4TWNS2GUAl1G3GQZjRPA3SL%252fUrRZuPbiFT3fBtQzYnvOaR1sP8KzrzVcLGCeUlIObGSsg&SMSVerifiedCookieToken=&NextPage=&js=1&Email='.urlencode($email).'&Password='.urlencode($password).'&Remember=true&loginBtn='); curl_setopt($ch, CURLOPT_REFERER,'http://www.myspace.com/index.cfm?fuseaction=splash'); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_COOKIEFILE, 'login.txt'); curl_setopt($ch, CURLOPT_COOKIEJAR, 'login.txt'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_VERBOSE, 0); file_put_contents('output.txt', curl_exec($ch)); curl_setopt($ch, CURLOPT_URL, "http://www.myspace.com/games/play/104283"); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)'); curl_setopt($ch, CURLOPT_POST, 0); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_COOKIEFILE, 'login.txt'); curl_setopt($ch, CURLOPT_COOKIEJAR, 'login.txt'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $output2=curl_exec($ch); if(stristr($output2, 'render.app#')){ preg_match('/\sid="apppanel_104283_canvas".*?render.app#([^&]+).*?viewerId=([0-9]+)/is', $output2, $matches); $GameLink = "http://api.msappspace.com/apprendering/104283/canvas/04082011040014/1_0_0/render.app#".$matches[1]; echo '<font style="BACKGROUND-COLOR: 15317E"><a href="'.$GameLink.'"><font color="white">'.$email.'</font>'; } sleep(1000); curl_close($ch); ?> I know this is possible to do the same exact thing with fsockopen, but I cannot get it for the life of me, any help is appreciated
-
<?php $IPaddress = $_SERVER['REMOTE_ADDR']; if(stristr($IPaddress, "123.456.58.451") || stristr($IPaddress, "123.126.456.10") || stristr($IPaddress, "123.126.456.10")) { echo "<center><b><i>CWB permits you to views this page...</i></b></center></br>"; echo '<center><b><font size="5">'.$IPaddress.'</font></b></center>'; } else { echo "<center><b>CWB DOES NOT PERMIT YOU TO VIEW THIS PAGE</b></center>"; } exit; ?> how do I make it to where I dont have to keep adding on to if(stristr($IPaddress, "123.456.58.451") || stristr($IPaddress, "123.126.456.10") || stristr($IPaddress, "123.126.456.10"))
-
Do you know if it is possible or not thorpe?
-
So I want to be able to make a function that will will parse the XML from my string every time it is called, so say I have this $Result = file_get_contents('http://www.example.com'); Which loads this <outer> <xml> <viewer> <user> <name>bradley</name> <age>18</age> <location>ohio</location> </user> </viewer> </xml> </outer> I parse it with $xml = simplexml_load_string($Result); foreach($xml->xml->viewer->user as $xml2) { $name = $xml2->name; $age = $xml2->age; $location = $xml2->location; } Is there a way possible maybe a function that will be able to allow me to do something like this <?php $Result = file_get_contents('http://www.example.com'); xml_parse($Result); echo $name; $AnotherResult = file_get_contents('http://www.example.com'); xml_parse($AnotherResult); echo $name; ?> Is it possible for me to make a function that stores the xml parse information and it uses it every time it is called on the string that is in the "( )" I am completely illiterate to making functions so every bit of help I can receive is appreciated Thanks
-
Yeah, visual studio is what a buddy of mine uses to make a shell for his php scripts to protect the code, Do you think I could make a good living knowing C#, I want to go to college for network administration and to become a programmer.. what should I look into the prepare? Thanks
-
The second code looks somewhat similar to php in my opinion, thats c# right? what is the first one? vb? also can you point me in the right direction to learn some C#? Thanks for taking the time to explain it to me, I've had 20 people try and youre repsonse was the best, thanks again
-
Making a program that has a GUI and text fields, buttons, and such that would automate things on facebook and myspace, in example, logging in and accepting friend requests on multiple accounts and stuff like that, so It would have to be able to interact with websites such as facebook and myspace as mentioned, what do you think would be the best for this? I would like to learn something that I could possibly make a living with it as well, selling programs.. I was thinking of VB.net, My buddy says that vb.net is the most powerful programming language out right now, and it is still being developed.. growing fast..he keeps suggesting vb.net, What do you guys suggest? btw I usually write scripts to automate facebook and myspace tasks but I want something with a GUI, does vb.net have an alternative to cURL? I use cURL for the login process of the accounts.. Here is an example of something I would like to be able to write.. and Idk, My buddy just swears by vb.net.. says it is the most powerful programming language today, one reason he said vb.net was better than c++ was because vb.net is still being developed as c++ is not.. What do you guys think about this? Thanks
-
Best way to turn a php script into an executable?
devWhiz replied to devWhiz's topic in PHP Coding Help
Yes sir I sure have, the only I have had semi success with was the bambalam compiler, and it doesnt seem to want to work with cURL after its in .exe format... do you have anything in mind for me thorpe? Thanks for the replies btw -
Best way to turn a php script into an executable?
devWhiz replied to devWhiz's topic in PHP Coding Help
Oh, I'm trying to get something that compiles the php file into an exe, so no one can view the code in the script -
Best way to turn a php script into an executable?
devWhiz replied to devWhiz's topic in PHP Coding Help
Hmm, it didnt compile it into an .exe, any help is appreciated,, thanks! -
Best way to turn a php script into an executable?
devWhiz replied to devWhiz's topic in PHP Coding Help
what do you mean "run it as such " run_php.bat some_php_file.php -
That does not have brackets, begin if or end if?
-
I've tried to use this http://www.bambalam.se/bamcompile/ .. but I cant get curl to work using the option to set the extension.. I need it to be able to sign into myspace or facebook with curl when it is in an exe.. everything else works fine with bambalam, everything but curl and connecting to an mysql db, I dont need to have mysql support, only curl.. what would be the easiest way to make this happen? btw the exe should just open a CLI and run the script, thanks
-
Best language for automation of anything
devWhiz replied to devWhiz's topic in Other Programming Languages
which 3 languages would you suggest? -
Best language for automation of anything
devWhiz replied to devWhiz's topic in Other Programming Languages
Bachelor of Science in Computer Information Systems, Networking Option, Thats what Akron U in Ohio offers, Was wanting to become a software developer as well as looking into some kind of network security.. As for learning the C languages, any websites and/or books you guys would recommend? Thanks again -
Best language for automation of anything
devWhiz replied to devWhiz's topic in Other Programming Languages
Well I plan to go to college for some kind of computer programming, I wanted to kind of prepare for that, I'm only 18. Right now I run scripts in CLI and sometimes on servers to provide faster results As for going to school for programming and software developement, What would you recommend for me to do to prepare for that? If you could point me in the right direction that would be great, thanks! -
Best language for automation of anything
devWhiz replied to devWhiz's topic in Other Programming Languages
Well I know php, didnt know if there for any other options, I want to get a few languages under my belt -
What would be the best language to use for any kind of automation of anything from creating user accounts on websites, automating stuff on myspace or facebook like accepting friend requests on accounts or installing applications, automating actions in myspace and facebook applications, just stuff like that.. what would be the best language for me to learn in order to do this kind of stuff? Thanks