| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/software/smsc smpp installer/software/Services/EmailPenpalAfrica/php/ |
Upload File : |
<?PHP
$filename = "PWC PA8.txt";
$fp = fopen($filename, "r");//open file in read mode
$contents = fread($fp, filesize($filename));//read file
//$contents = 'suiiuuiweuieuiiw jiei weiuie e<Node OfferId="5025" type="OfferNode">';
$cnt=1;
$cnt1=0;
$tdf_id_start =1;
while ($cnt ==1){
$tdf_id_first = strpos($contents,'<Node OfferId="',$tdf_id_start);
$tdf_id_second = strpos($contents,'"',$tdf_id_first+15);
$cnt1++;
if($tdf_id_first>0){
$offer = substr($contents,$tdf_id_first+15,$tdf_id_second-($tdf_id_first+15));
$replac_str1= "<ActiveOffer>$offer</ActiveOffer>";
}
if($tdf_id_first>0 && $offer !=""){
$tdf_id_fourth = strpos($contents,$replac_str1,$tdf_id_second);
if($tdf_id_fourth >0){
// echo $offer."\n";
$tdf_id_third = strpos($contents,$replac_str1,$tdf_id_second);
}else{
echo $offer."\n";
$tdf_id_third= $tdf_id_second+1;
}
}
$tdf_id_start= $tdf_id_third;
$offer="";
if($tdf_id_first>0)
$cnt=1;
else
$cnt=0;
}
echo "Done";
exit();
?>