karthikeyan_coder
Members-
Posts
201 -
Joined
-
Last visited
Never
About karthikeyan_coder
- Birthday 10/02/1986
Contact Methods
-
AIM
karthikeyan2006
-
MSN
karthikeyan_coder@hotmail.com
-
Website URL
http://secureslash.com/
-
Yahoo
karthikeyan_coder
Profile Information
-
Gender
Male
karthikeyan_coder's Achievements
Regular Member (3/5)
0
Reputation
-
Hello, I have this text. $string = "blab blab some useless html tags here <strong>Downloads:</strong> 1,826 </p> and some other "; I need to get number of downloads only. I have no guess about this. how to fetch the data the resides between "Downloads:</strong>" and </p> Note: that page may have too many "Downloads" words and </strong> tags. so "Downloads:</strong>" would be a best initial needle for fetching.. Help me please.
-
Hello, I am trying to show youtube/metacafe & so vids in some other page. I need to make all video size fixed. $string = '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/shJ436747sE"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/shJ436747sE" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>'; I need width value = 400 & height = 325. I am tying this hardly in last couple of hours.. But no success yet!.. please help me.. I need result string with "width="400" " and "height=325"
-
hello, we know that @mysql_connect(); wont display errors... in the same way... i have a function call.... $con->striper(); I want to disable error for this function... How can i? Plz help me...
-
I need to get urls from this page.. http://crappytools.com/pingurls/list.asp i am using my own function to get urls. tell me how is it.. If you have any idea/suggestion then plz let me know. <?php function line_stripper($url,$checker,$filter) { $file = file_get_contents($url); $string = explode("\n",$file); $j=0; for($i=1;$i<=count($string); $i++) { $res=1; $res = strpos($string[$i],$checker); if($res === 0) { $short = strpos($string[$i],$filter); if($short == "" ) { $list[$j] = $string[$i]; $j++; } } } return $list; } $result = line_stripper("http://crappytools.com/pingurls/list.asp","http","fails"); print_r($result); ?> $checker= "http" As we need urls alone then $filter=We dont need failed urls. So we filter from result urls.
-
I have a string like below. $string = "Inner peace, which is peace of mind, is not the sole possession of yogis and hermits. You too can enjoy it without becoming a yogi or a hermit. Click here to read the article." I have to replace "Click here blablab" with ""; But we cannt guess the words followed by "Click here" so i need to replace a sub string which starts with "Click here or click here" and ends with ". or !" thanks in advance
-
Get cookie of a website using pfsockopen();
karthikeyan_coder replied to karthikeyan_coder's topic in PHP Coding Help
Thanks for the help with regex. I got above Header informations ONLY FROM "live http headers" plugin for firefox. My only one question is.. How can i get Header information like this from google.com page? #1: I need to get these information from google.com/blablab #2: Store it in a $PHP_Variable then do "String Findings" using Reg Ex You friends helping for #2.. I need your support for #1 -
Get cookie of a website using pfsockopen();
karthikeyan_coder replied to karthikeyan_coder's topic in PHP Coding Help
You can see two "Cookie:" in first and second secions... First Cookie: value is having low data... Second section's "Cookie:" is having more data... But it is having first secion's "Set-Cookie:" value as a part... I dont know how to get these values from those pages... -
Get cookie of a website using pfsockopen();
karthikeyan_coder replied to karthikeyan_coder's topic in PHP Coding Help
https://www.google.com/accounts/LoginAuth?service=blogger POST /accounts/LoginAuth?service=blogger HTTP/1.1 Host: www.google.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: https://www.google.com/accounts/Login?service=blogger&naui=8&skipvpage=true&alwf=true Cookie: __utmz=173272373.1178976993.22.5.utmccn=(referral)|utmcsr=freakitude.com|utmcct=/2007/02/08/gmail-open-for-all/|utmcmd=referral; __utma=173272373.1617290277.1173753241.1179329475.1179808574.29; GoogleAccountsLocale_session=en; __utma=173272373.1617290277.1173753241.1179808574.1180096851.30; __utmz=173272373.1180062305.29.6.utmccn=(referral)|utmcsr=72.249.25.177|utmcct=/~albaybi/new/|utmcmd=referral; __utmb=173272373; __utmc=173272373; rememberme=true; PREF=ID=cc03b169fb414456:FF=4:TB=2:LD=en:NR=10:TM=1172328518:LM=1177868161:DV=AA:GM=1:S=8V2P_LBiblPSVDDz; adsenseReferralSourceId=; adsenseReferralClickId=; WebmastersLocale=en; adsenseReferralSubId= Content-Type: application/x-www-form-urlencoded Content-Length: 105 service=blogger&naui=8&skipvpage=true&alwf=true&Email=ednremeterqg&Passwd=e028bc&rmShown=1&signIn=Sign+in HTTP/1.x 302 Moved Temporarily Content-Type: text/html; charset=UTF-8 Set-Cookie: rememberme=false;Domain=.google.com;Path=/;Expires=Mon, 22-May-2017 12:45:49 GMT Set-Cookie: SID=DQAAAGwAAACyNQrtVn4FOI0Da5WdH3aQfbGocYAnTlpKZTJPp5LyTAWLJRirIrbl4UnHt6kSLCLr6C5tvKBa4Fnxj9Vfis6YvH93sijKjAWZH0ZAiFU4iqNP6dpWWLMo1G2MdpNuIVfnYyg7L5iwzcnhCRduXi6_;Domain=.google.com;Path=/ Set-Cookie: LSID=EXPIRED;Domain=.google.com;Path=/;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: LSID=EXPIRED;Path=/;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: LSID=EXPIRED;Domain=www.google.com;Path=/accounts;Expires=Mon, 01-Jan-1990 00:00:00 GMT Set-Cookie: LSID=DQAAAG8AAADj279ak7iMxiwz0DhWSiHUGRpN_Nmbr6eT1PJJAKoNmdPk7rkOIpo3z4Dvz4pHrWJmZO79Oa18V42X2JQeN-mAaCcdVVtDY7-IjpHrrMv39e2UdNipyI46pJC3HmnUpsBRD4_hv4rWZkquIl_E-5Rf;Path=/accounts;Secure Location: https://www.google.com/accounts/CheckCookie?service=blogger&chtml=LoginDoneHtml&skipvpage=true&naui=8 Cache-Control: private Transfer-Encoding: chunked Content-Encoding: gzip Date: Fri, 25 May 2007 12:45:49 GMT Server: GFE/1.3 ---------------------------------------------------------- https://www.google.com/accounts/CheckCookie?service=blogger&chtml=LoginDoneHtml&skipvpage=true&naui=8 GET /accounts/CheckCookie?service=blogger&chtml=LoginDoneHtml&skipvpage=true&naui=8 HTTP/1.1 Host: www.google.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: https://www.google.com/accounts/Login?service=blogger&naui=8&skipvpage=true&alwf=true Cookie: __utmz=173272373.1178976993.22.5.utmccn=(referral)|utmcsr=freakitude.com|utmcct=/2007/02/08/gmail-open-for-all/|utmcmd=referral; __utma=173272373.1617290277.1173753241.1179329475.1179808574.29; GoogleAccountsLocale_session=en; __utma=173272373.1617290277.1173753241.1179808574.1180096851.30; __utmz=173272373.1180062305.29.6.utmccn=(referral)|utmcsr=72.249.25.177|utmcct=/~albaybi/new/|utmcmd=referral; __utmb=173272373; __utmc=173272373; LSID=DQAAAG8AAADj279ak7iMxiwz0DhWSiHUGRpN_Nmbr6eT1PJJAKoNmdPk7rkOIpo3z4Dvz4pHrWJmZO79Oa18V42X2JQeN-mAaCcdVVtDY7-IjpHrrMv39e2UdNipyI46pJC3HmnUpsBRD4_hv4rWZkquIl_E-5Rf; rememberme=false; PREF=ID=cc03b169fb414456:FF=4:TB=2:LD=en:NR=10:TM=1172328518:LM=1177868161:DV=AA:GM=1:S=8V2P_LBiblPSVDDz; adsenseReferralSourceId=; adsenseReferralClickId=; WebmastersLocale=en; adsenseReferralSubId=; SID=DQAAAGwAAACyNQrtVn4FOI0Da5WdH3aQfbGocYAnTlpKZTJPp5LyTAWLJRirIrbl4UnHt6kSLCLr6C5tvKBa4Fnxj9Vfis6YvH93sijKjAWZH0ZAiFU4iqNP6dpWWLMo1G2MdpNuIVfnYyg7L5iwzcnhCRduXi6_ HTTP/1.x 200 OK Content-Type: text/html; charset=UTF-8 Cache-Control: no-cache Pragma: no-cache Transfer-Encoding: chunked Content-Encoding: gzip Date: Fri, 25 May 2007 12:45:50 GMT Server: GFE/1.3 ---------------------------------------------------------- -
hello any help?
-
Yes.. Exactly you are right. I use pfsockopen mostly...
-
Hello, I am gonna install TOR in my Linux server. Can i configure/setup something in PHP to use TOR instead of actual ip ?
-
Hello, I am trying to get a browser cookie(not a text file cookie) value of a remote website. I've installed "Live HTTP headers" plugin for firefox, to trace all header information. I am using pfsockopen(); for reading a remote website... In header.. Two kinds of cookie values are there. 1. Set-Cookie: & 2. Cookie: I need Cookie value alone. Any help would be really appreciated.
-
Thanks chigley & MadTechie
-
Thank you friends... Done with simple explode();