use Curl![]()
How to grab page needs session plz some1 tell me the code
use Curl![]()
I know i must use curl but how to set the session?
Please tell me whats worng at that code
PHP Code:<?
$ch = curl_init('http://mig33.com/sites/index.php?c=chatroom&v=midlet&a=setup_moderators&roomName='.$room);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, 'Googlebot/2.1 (http://www.googlebot.com/bot2.html)');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$text = curl_exec($ch);
curl_close($ch);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookiefile");
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookiefile");
curl_setopt($ch, CURLOPT_COOKIE, session_name() . '=' . session_id());
echo $text;
?>
oh flooding tools for mig33 ..........
Sorry but your going to have to figure this out on your own as im not contributing to such script
its not flooding tool,
it showing room moderators for easy report![]()
Set all the options before you call exec()
Otherwise, the cookie settings won't be set.
Move $text = curl_exec
($ch); to the the bottom just before echo.
Already told you I could do this script easy.Well, goodluck!
that code not working too
please give me the right codePHP Code:<?
$ch = curl_init('http://mig33.com/sites/index.php?c=chatroom&v=midlet&a=setup_moderators&roomName=egypt-kisses');
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_USERAGENT, 'Googlebot/2.1 (http://www.googlebot.com/bot2.html)');
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookiefile");
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookiefile");
curl_setopt($ch, CURLOPT_COOKIE, session_name() . '=' . session_id());
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$text = curl_exec($ch);
curl_close($ch);
echo $text;
?>
its not flood tool or ileagl script...
please some1 help there![]()
try this..Code:<?php $strCookie = 'PHPSESSID=' . $_COOKIE['PHPSESSID'] . '; path=/'; session_write_close(); $ch = curl_init('http://mig33.com/sites/index.php?c=chatroom&v=midlet&a=setup_moderators&roomName=egypt-kisses'); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_USERAGENT, 'Googlebot/2.1 (http://www.googlebot.com/bot2.html)'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt( $ch, CURLOPT_COOKIE, $strCookie ); $text = curl_exec($ch); curl_close($ch); echo $text; ?>
not working bro, it giving error
Moved Permanently
The document has moved here
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks