getting content of page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Ajdija
Forum Newbie
Posts: 6
Joined: Tue Feb 16, 2010 12:19 pm

getting content of page

Post by Ajdija »

I want to get value of "k parameter" from flash file of http://www.mybrutecheats.com/simulator/index.php .
The problem is that this flash file appear only if I insert some informations like:

First Brute Details
Name: ajdija Level: 300
Second Brute Details
Name: theajdija Level: 300

and press enter. I want to know how can I get contents of page with flash object so that I can parse it and get "k parameter", if you fill form like above example it's "k=540f8".
I tried with:

Code: Select all

$data = file_get_contents($url);
preg_match($regex,$data,$kParam);
but it seems not possible as it get only form.

It would be great if you also post some tutorial links about it.

Thanks in advance, Ajdija.

*As it's my first post here, hello everybody! , hope we spend great time together on this great forum!
Ajdija
Forum Newbie
Posts: 6
Joined: Tue Feb 16, 2010 12:19 pm

Re: getting content of page

Post by Ajdija »

maybe it's possible to fill it with curl and then get page content? can anyone gives me further instructions for that?
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: getting content of page

Post by AbraCadaver »

I couldn't find a terms of service or acceptable use policy or anything other than a copyright, so if the moderators think it's ok, I can give you some tips.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Ajdija
Forum Newbie
Posts: 6
Joined: Tue Feb 16, 2010 12:19 pm

Re: getting content of page

Post by Ajdija »

Disclaimer
[...]
Similar articles, comments and other phrases is strictly coincidental. Other images posted in the website are copyrighted to the rightful owners of the specific Brute. If you have any suggestions, complaints or comments, please don’t hesitate to contact us.
I think it's all fine
Ajdija
Forum Newbie
Posts: 6
Joined: Tue Feb 16, 2010 12:19 pm

Re: getting content of page

Post by Ajdija »

*bump*
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: getting content of page

Post by AbraCadaver »

Ajdija wrote:*bump*
I tested it out and you can successfully post data, but you have to fix up the URL to the swf in the response to get the flash to show, but it doesn't play because it can't find other files. But if all you want is the page so you can get a var:

Code: Select all

$player1 = 'ajdija';
$level1 = '300';
$player2 = 'theajdija';
$level2 = '300';
 
$post_vars = array( 'player_1_1' => $player1, 'level_1_1' => $level1,
                    'player_2_1' => $player2, 'level_2_1' => $level2);
 
$data = http_post_fields('http://www.mybrutecheats.com/simulator/index.php', $post_vars);
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply