note 68587 added to ref.strings

From: Date: Wed, 02 Aug 2006 18:00:20 +0000
Subject: note 68587 added to ref.strings
Groups: php.notes 
Request: Send a blank email to php-notes+get-115489@lists.php.net to get a copy of this message
Well for you egold users out ther I wrote this to just return the balance ONLY If anyone knows a better way to write this lemme know as im a novice function _GetBalance($from, $frompass) { $defined_vars = get_defined_vars(); $_url = 'https://www.e-gold.com/acct/balance.asp'; $_url_p = "AccountID=" . $from . "&PassPhrase=" . $frompass .""; $ch = curl_init(); curl_setopt($ch, CURLOPT_POST,1); curl_setopt($ch, CURLOPT_POSTFIELDS,$_url_p); curl_setopt($ch, CURLOPT_URL,$_url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_USERAGENT, $defined_vars['HTTP_USER_AGENT']); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); $content = curl_exec ($ch); curl_close ($ch); $content=strtolower($content); $content=strstr($content,"</select></font></th></form></tr>"); $content=strip_tags($content); $content=strrev($content); $content=strstr($content,"eseht :eton"); $content=str_replace("eseht :eton","",$content); $content=ltrim($content); $content=rtrim($content); $content=substr($content,0,11); $content=strrev($content); $content=ltrim($content); return $content; } ---- Server IP: 216.194.113.175 Probable Submitter: 72.87.179.103 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/ref.strings.php Edit -- https://master.php.net/note/edit/68587 Del: integrated -- https://master.php.net/note/delete/68587/integrated Del: useless -- https://master.php.net/note/delete/68587/useless Del: bad code -- https://master.php.net/note/delete/68587/bad+code Del: spam -- https://master.php.net/note/delete/68587/spam Del: non-english -- https://master.php.net/note/delete/68587/non-english Del: in docs -- https://master.php.net/note/delete/68587/in+docs Del: other reasons-- https://master.php.net/note/delete/68587 Reject -- https://master.php.net/note/reject/68587 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#115489) next »