BRADERY Posted June 2, 2010 Share Posted June 2, 2010 I need to make it to where I could add more then one iRepeatHeader and then have an option to tell that header how many time to repeat before going on to the next header in the script and then telling that header how many time to repeat and ETC I would need it to print out the xml in CLI as it is running also <?PHP $iRepeatHeader = "HEADER"; // Header to repeat... $iTimePause = 0; // Seconds to pause between each repetition. $iRepeatTimes = -1; // Repeat header how many times? -1 for unlimited... ////////////////////////////////////////////////////////////////////////// $iXMLPrint = "MESSAGE"; // XML section to print. MESSAGE works for most things. ////////////////////////////////////////////////////////////////////////// /////////////// DON'T EDIT BELOW THIS LINE /////////////////////////////// ////////////////////////////////////////////////////////////////////////// $iRepeatHeader = explode("&opensocial_authtype", str_replace("GET /proxy/relay.proxy?opensocial_url=", "", urldecode($iRepeatHeader))); for($i=1; $i!=$iRepeatTimes+1; $i++) { if(stristr($iFile=@file_get_contents($iRepeatHeader[0]), "fails security check")) { echo "Failed Security Check... Get a new link."; sleep(45324532); } else if(stristr($iFile, "CAPTCHA") || stristr($iFile, "terms")) { echo "You've got captcha... Wait a few days?"; sleep(45324532); } xml_parse_into_struct($iP=xml_parser_create(), $iFile, $iS, $iX);xml_parser_free($iP); echo "$i ::: ".strip_tags($iS[$iX[$iXMLPrint][0]]['value'])."\n\n"; sleep($iTimePause); } echo "Repeated approximately $iRepeatTimes times...\nYou can close this at any time."; sleep(45324532); ?> Link to comment https://forums.phpfreaks.com/topic/203642-need-help-adding-something-to-this-script/ Share on other sites More sharing options...
BRADERY Posted June 2, 2010 Author Share Posted June 2, 2010 anyone? Link to comment https://forums.phpfreaks.com/topic/203642-need-help-adding-something-to-this-script/#findComment-1066740 Share on other sites More sharing options...
BRADERY Posted June 2, 2010 Author Share Posted June 2, 2010 is this even possible? Link to comment https://forums.phpfreaks.com/topic/203642-need-help-adding-something-to-this-script/#findComment-1066844 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.