Jump to content

millercj

Members
  • Posts

    94
  • Joined

  • Last visited

Everything posted by millercj

  1. Gottcha...thanks DateTime it is
  2. I'm attempting to add time: $a = mktime(0, 0, 12); $b = mktime(0, 0, 5); echo date('h:i:s', $a + $b); My echo is reading "03:00:17" Where the heck is the 3 hours coming from?
  3. I know how to send a text message using the php mail function but when this is sent the message shows "FRM" and "MSG" in the body of the text. How to i get rid of that? Want it to look like a real text.
  4. That was it...thanks
  5. Trying to write a basic php file upload script and am getting: Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpI0JnBe' to 'http://www.domain.com/up/filename.jpg' in /home/domain/public_html/up/uploadFile.php on line 14 This is my code, I'd assume it is a permissions issue but not sure how to fix that. Any help would be great... <?PHP echo "<table border=\"1\">"; echo "<tr><td>Client Filename: </td> <td>" . $_FILES["fileToUpload"]["name"] . "</td></tr>"; echo "<tr><td>File Type: </td> <td>" . $_FILES["fileToUpload"]["type"] . "</td></tr>"; echo "<tr><td>File Size: </td> <td>" . ($_FILES["fileToUpload"]["size"] / 1024) . " Kb</td></tr>"; echo "<tr><td>Name of Temporary File: </td> <td>" . $_FILES["fileToUpload"]["tmp_name"] . "</td></tr>"; echo "</table>"; move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], "http://www.domain.com/up/" . $_FILES["fileToUpload"]["name"]); ?>
  6. I'm using the php mail function and sending to Gmail accounts it shows "Unknown Sender" This is my header: $headers = "From: XXXXX\r\nReply-To: [email protected]"; $headers .= "\r\nContent-Type: text/html; charset='iso-8859-1' Content-Transfer-Encoding: 7bit"; I read somewhere that removing the "\r" would work but no luck... any help would be awesome
  7. Using the attached code below I'm sending an HTML email using PHP. It works fine, except with Gmail. If the email is sent to a Gmail account the email contents are blank and sender is unknown. I've looked around and it seems there is some widespread issue but i haven't found an answer/solution. Any help or light shed on this would be great. <?PHP //lots of stuff before this including variable setting, which all are working properly $to = $email; $subject = 'Your claim is in process!'; $random_hash = md5(date('r', time())); $headers = "From: The Insurance Agency\r\nReply-To: [email protected]"; $headers .= "\r\nContent-Type: multipart/alternative; boundary=\"PHP-alt-".$random_hash."\""; ob_start(); ?> --PHP-alt-<?php echo $random_hash; ?> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Dear <?PHP echo $fname?>, Thank you for submitting your claim on our website. We're sorry to hear about your loss on <?PHP echo $dateofloss ?>; our office has received your information and will contact you as soon as possible.Sincerely, Brian R Miller, Priciple --PHP-alt-<?php echo $random_hash; ?> Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 7bit <img src="http://beta.XXXXXXX.com/img/uniform/emailhead.gif" alt="" /> <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px; margin:15px 0 5px 0;">Dear <?PHP echo $fname ?>,</p> <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px; margin:0;">Thank you for submitting your claim on our website. We're sorry to hear about your loss on <?PHP echo $dateofloss ?>; our office has received your information and will contact you as soon as possible.</p> <p style="font-family:Arial, Helvetica, sans-serif; font-size:12px; margin:20px 0 0 200px;">Sincerely,</p> <p style="margin: 10px 0 0 200px;"><img src="http://beta.XXXXXX.com/img/uniform/briansig.gif" alt="" /></p> <p style="font-family:Arial, Helvetica, sans-serif; font-size:10px; margin:0px 0 0 200px;">Brian R Miller, priciple</p> <p style="font-family:Arial, Helvetica, sans-serif; font-size:10px; margin:200px 0 0 0">This email has been sent by an automated service</p> --PHP-alt-<?php echo $random_hash; ?>-- <?PHP $message = ob_get_clean(); mail($to, $subject, $message, $headers); ?>
  8. I'm trying to search a string for a certain syntax (to ultimately get the number of occurrences). I want to ignore spaces but I'm unsure of the best way to do that. Here is my code right now <?PHP $homepage = file_get_contents('http://www.legacy.com/obituaries/ldnews/obituary-browse.aspx?page=1&recentdate=0&entriesperpage=50'); $substring = '<div> <b>'; $substringCount = substr_count($homepage, $substring); echo $substringCount; another way I could accomplish what i'm trying to do is if there's a way to search for text that includes a wild card such as Taglist2Alpha, where the number is the wildcard something similar to $substring = 'Taglist*Alpha';
  9. Ok, so I did some reading up on cURL today and I've got it successfully logging in but If i have the page that it loads display it says "This object has moved, click here to view". I'm assuming that this is some sort of security measure the site has in place...is there a way to get around it? my code is below: <?PHP curl_login('https://www.XXXXXXXXXXX.com/siteminderagent/forms/aelogin.fcc?TYPE=33554433&REALMOID=06-7401944f-341e-4ee7-abe4-1d2985a80e59&GUID=&SMAUTHREASON=0&METHOD=GET&SMAGENTNAME=TbFKJX2BHQWFkDQ8G72HsB1rD0Y2SC4o7TyRG8OmwvoNmNVyPRbY222iQkyp07n5&TARGET=-SM-HTTPS%3a%2f%2fwww%XXXXXXXXX%2ecom%2fRiskManagement%2fCostGuides%2fToMSB%2easp%3fSite%3dRCT','SMENC=ISO-8859-1&SMLOCALE=US-EN&target=HTTPS%3A%2F%2Fwww.XXXXXXXXXXX.com%2FRiskManagement%2FCostGuides%2FToMSB.asp%3FSite%3DRCT&smauthreason=0&smagentname=TbFKJX2BHQWFkDQ8G72HsB1rD0Y2SC4o7TyRG8OmwvoNmNVyPRbY222iQkyp07n5&postpreservationdata=&USER=XXXXXX&PASSWORD=XXXXXX&x=24&y=13','','off'); echo curl_grab_page('https://www.XXXXXXXX.com/RiskManagement/CostGuides/ToMSB.asp?Site=RCT','','off'); function curl_login($url,$data,$proxy,$proxystatus){ $fp = fopen("cookie.txt", "w"); fclose($fp); $login = curl_init(); curl_setopt($login, CURLOPT_COOKIEJAR, "cookie.txt"); curl_setopt($login, CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($login, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"); curl_setopt($login, CURLOPT_TIMEOUT, 40); curl_setopt($login, CURLOPT_RETURNTRANSFER, TRUE); if ($proxystatus == 'on') { curl_setopt($login, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($login, CURLOPT_HTTPPROXYTUNNEL, TRUE); curl_setopt($login, CURLOPT_PROXY, $proxy); } curl_setopt($login, CURLOPT_URL, $url); curl_setopt($login, CURLOPT_HEADER, TRUE); curl_setopt($login, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($login, CURLOPT_FOLLOWLOCATION, TRUE); curl_setopt($login, CURLOPT_POST, TRUE); curl_setopt($login, CURLOPT_POSTFIELDS, $data); ob_start(); return curl_exec ($login); ob_end_clean(); curl_close ($login); unset($login); } function curl_grab_page($site,$proxy,$proxystatus){ $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); if ($proxystatus == 'on') { curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE); curl_setopt($ch, CURLOPT_PROXY, $proxy); } curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt"); curl_setopt($ch, CURLOPT_URL, $site); ob_start(); return curl_exec ($ch); ob_end_clean(); curl_close ($ch); } ?>
  10. I'm trying to come up with a real basic script to do the following below. I've never done something this back-end intensive so I'm looking for some pointers on the best way to do it. The user will go to a page hosted on my site and will type a keyword into an input box. After they hit submit, I'd like the script to log into another website (user name & password required), run a query in that sites search box using the keyword the user input on the original screen. I would then like it to return some elements from the HTML of the results page. What is the best way to do all this?
  11. I found it! and i want to hit myself. I was always using the same products to test it. One of them has an ' in the item name "Lover's Combo" and it was effing it all up.
  12. I've narrowed it down to where the problem is but it makes NO sense... It's the INSERT INTO query this works: $struery = "insert into OrderData(tid,itemname,itemnumber,qty) values ('".$txn_id."','".$_POST[$itemname]."','".$_POST[$itemnumber]."','".$_POST[$quantity]."')"; This does not: $struery = "insert into OrderData(tid,itemname,itemnumber,qty,price) values ('".$txn_id."','".$_POST[$itemname]."','".$_POST[$itemnumber]."','".$_POST[$quantity]."','123')";
  13. Yes my db structure is OrderData(tid, itemName, itemNumber, qty, price)
  14. As far as i'm concerned, the correct number
  15. Yes sir...But if i remove all this crap about unit price the code runs flawlessly. Ok I took that variable $num_cart_items and tried to put it into the price column of my table. That whole query put nothing into my table. Not sure what that means? $struery = "insert into OrderData(tid,itemname,itemnumber,qty,price) values ('".$txn_id."','".$_POST[$itemname]."','".$itemnumber[0]."','".$_POST[$quantity]."','".$num_cart_items."')";
  16. I'm going to assume it's correct it's getting sent back from paypal... There are no error logs in the folder :-\
  17. ok...it did and didn't work. It posted everything correctly for the first item but must have crashed after that. I altered the code that generates my form do the itemnumber would read 100-1:3.50 where 100-1 is the item number and 3.50 is the price. <input type="hidden" name="item_number_'.$i.'" value="'.$nextresult['PID'].':'.$nextresult['price'].'"> my ipn now looks like this: for ($i = 1; $i <= $num_cart_items; $i++) { $itemname = "item_name".$i; $itemnumber = "item_number".$i; $itemnumber = explode(":", $_POST[$itemnumber]); $on0 = "option_name1_".$i; $os0 = "option_selection1_".$i; $on1 = "option_name2_".$i; $os1 = "option_selection2_".$i; $quantity = "quantity".$i; $struery = "insert into OrderData(tid,itemname,itemnumber,qty,price) values ('".$txn_id."','".$_POST[$itemname]."','".$itemnumber[0]."','".$_POST[$quantity]."','".$itemnumber[1]."')"; } Not sure where the issue is
  18. Ok, I will but right now custom is only passed once (for the whole cart). Can it be passed within each item? ie: custom_1 custom_2 etc.
  19. Ok, what about this...I set "on0_"to be the the price as well. It properly saves to the database as long as there is only one product kind in the cart If there are more, it fails to write: for ($i = 1; $i <= $num_cart_items; $i++) { $itemname = "item_name".$i; $itemnumber = "item_number".$i; $on0 = "option_name1_".$i; $os0 = "option_selection1_".$i; $on1 = "option_name2_".$i; $os1 = "option_selection2_".$i; $quantity = "quantity".$i; $struery = "insert into OrderData(tid,itemname,itemnumber,qty,price) values ('".$txn_id."','".$_POST[$itemname]."','".$_POST[$itemnumber]."','".$_POST[$quantity]."','".$_POST[$on0]."')"; this is the form for one product: <input name="item_name_1" value="College Staple - 13oz Bag" type="hidden"> <input name="item_number_1" value="101" type="hidden"> <input name="amount_1" value="5.00" type="hidden"> <input name="on0_1" value="5.00" type="hidden"> <input name="quantity_1" value="1" type="hidden">
  20. You just confused the heck out of me... Itemname, Itemnumber, all that stuff that has $_POST[]'s works fine. It's just Amount. At the very begining of my code there's $item_name = $_POST['item_name']; $amount = $_POST['amount']; $business = $_POST['business']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; .... then the for loop where i need to add the number of item that it is...I'm not sure why you're saying to remove the posts If amount_x should work why should I use custom?
  21. Ok, I went back to my code and I ammending the for loop prior to the query as such: <?PHP for ($i = 1; $i <= $num_cart_items; $i++) { $itemname = "item_name".$i; $itemnumber = "item_number".$i; $amount = "amount_".$i; $on0 = "option_name1_".$i; $os0 = "option_selection1_".$i; $on1 = "option_name2_".$i; $os1 = "option_selection2_".$i; $quantity = "quantity".$i; $struery = "insert into OrderData(tid,itemname,itemnumber,qty,price) values ('".$txn_id."','".$_POST[$itemname]."','".$_POST[$itemnumber]."','".$_POST[$quantity]."','".$_POST[$amount]."')"; } ?> I put two products to my cart to checkout. After completing the payment it only posted one item via IPN and it is without the price so it's hanging somewhere...see anything?
  22. Sorry, Yes it is Amount_1, Amount_2 and so forth...do those exact variable names come back via IPN? Where in my code would I implement that?
  23. Ok here is a sample form that gets sent to paypal... <form action="https://www.paypal.com/cgi-bin/webscr" onsubmit="return checkShipping();" method="post" id="finalCheckoutButton"> <input name="business" value="[email protected]" type="hidden"> <input name="cmd" value="_cart" type="hidden"> <input name="upload" value="1" type="hidden"> <input name="currency_code" value="USD" type="hidden"> <input name="item_name_1" value="College Staple - 13oz Bag" type="hidden"> <input name="item_number_1" value="101" type="hidden"> <input name="amount_1" value="5.00" type="hidden"> <input name="quantity_1" value="1" type="hidden"> <input name="item_name_2" value="Lover's Combo - 13oz Bag" type="hidden"> <input name="item_number_2" value="102" type="hidden"> <input name="amount_2" value="5.00" type="hidden"> <input name="quantity_2" value="2" type="hidden"> <input name="shipping_1" value="5.78" type="hidden"> <input name="custom" value="Priority Mail (5.78)" type="hidden"> <input name="return" value="http://beta.nutsaboutgranola.com/marketplace/complete.php" type="hidden"> <input name="shopping_url" value="http://beta.nutsaboutgranola.com/marketplace" type="hidden"> <input name="cancel_return" value="http://beta.nutsaboutgranola.com/marketplace/myBag.php" type="hidden"> <input value="" id="PPcheckout" type="submit"> </form>
  24. Paypaltech is what I used but it doesn't provide a unit price and i'm not sure how $payment_fee = $_POST['payment_fee']; would work because how would it reference each item if say there were 10 items in a cart?
  25. I really need some help with my Paypal IPN. I know some php but I would never consider myself a php developer. I got the script off of a generator and thus far I've successfully adapted it to me needs. My problem now is I have no clue how to get unit pricing to come through. Below is my current IPN script. I need to get the unit price for each individual item and save it to the "Price" column specified in the sql statement (i've marked it with a comment "SQL WHERE UNIT PRICE IS NEEDED"). I'm really clueless and Paypal documentation doesn't have anything that makes sense and works for me. Hopefully someone out there has done this before...Thanks! <?php // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } // post back to PayPal system to validate $header = "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30); // assign posted variables to local variables $item_name = $_POST['item_name']; $business = $_POST['business']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $mc_gross = $_POST['mc_gross']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST['txn_id']; $receiver_email = $_POST['receiver_email']; $receiver_id = $_POST['receiver_id']; $quantity = $_POST['quantity']; $num_cart_items = $_POST['num_cart_items']; $payment_date = $_POST['payment_date']; $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $payment_type = $_POST['payment_type']; $payment_status = $_POST['payment_status']; $payment_gross = $_POST['payment_gross']; $payment_fee = $_POST['payment_fee']; $settle_amount = $_POST['settle_amount']; $memo = $_POST['memo']; $payer_email = $_POST['payer_email']; $txn_type = $_POST['txn_type']; $payer_status = $_POST['payer_status']; $address_street = $_POST['address_street']; $address_city = $_POST['address_city']; $address_state = $_POST['address_state']; $address_zip = $_POST['address_zip']; $address_country = $_POST['address_country']; $address_status = $_POST['address_status']; $item_number = $_POST['item_number']; $tax = $_POST['tax']; $option_name1 = $_POST['option_name1']; $option_selection1 = $_POST['option_selection1']; $option_name2 = $_POST['option_name2']; $option_selection2 = $_POST['option_selection2']; $for_auction = $_POST['for_auction']; $invoice = $_POST['invoice']; $custom = $_POST['custom']; $notify_version = $_POST['notify_version']; $verify_sign = $_POST['verify_sign']; $payer_business_name = $_POST['payer_business_name']; $payer_id =$_POST['payer_id']; $mc_currency = $_POST['mc_currency']; $mc_fee = $_POST['mc_fee']; $exchange_rate = $_POST['exchange_rate']; $settle_currency = $_POST['settle_currency']; $parent_txn_id = $_POST['parent_txn_id']; $pending_reason = $_POST['pending_reason']; $reason_code = $_POST['reason_code']; //DB connect creds and email $notify_email = "EMAIL";//email address to which debug emails are sent to $DB_Server = "localhost"; //your MySQL Server $DB_Username = "USERNAME"; //your MySQL User Name $DB_Password = "PASWORD"; //your MySQL Password $DB_DBName = "DATABASE"; //your MySQL Database Name if (!$fp) {/* HTTP ERROR*/} else { fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets ($fp, 1024); if (strcmp ($res, "VERIFIED") == 0) { //create MySQL connection $Connect = @mysql_connect($DB_Server, $DB_Username, $DB_Password) or die("Couldn't connect to MySQL:<br>" . mysql_error() . "<br>" . mysql_errno()); //select database $Db = @mysql_select_db($DB_DBName, $Connect) or die("Couldn't select database:<br>" . mysql_error(). "<br>" . mysql_errno()); $fecha = date("m")."/".date("d")."/".date("Y"); $fecha = date("Y").date("m").date("d"); //check if transaction ID has been processed before $checkquery = "select txnid from paypal_payment_info where txnid='".$txn_id."'"; $sihay = mysql_query($checkquery) or die("Duplicate txn id check query failed:<br>" . mysql_error() . "<br>" . mysql_errno()); $nm = mysql_num_rows($sihay); if ($nm == 0) { if ($txn_type == "cart") { $strQuery = "insert into BuyerData(tid,lastName,firstName,email,address,city,state,zip,invoice,pmt,paypalFee,salesTax,status,shipping,shipped,date) values ('".$txn_id."','".$last_name."','".$first_name."','".$payer_email."','".$address_street."','".$address_city."','".$address_state."','".$address_zip."','','".$mc_gross."','".$mc_fee."','".$tax."','".$payment_status."','".$custom."','0','".$fecha."')"; $result = mysql_query($strQuery) or die("Cart - paypal_payment_info, Query failed:<br>" . mysql_error() . "<br>" . mysql_errno()); for ($i = 1; $i <= $num_cart_items; $i++) { $itemname = "item_name".$i; $itemnumber = "item_number".$i; $on0 = "option_name1_".$i; $os0 = "option_selection1_".$i; $on1 = "option_name2_".$i; $os1 = "option_selection2_".$i; $quantity = "quantity".$i; //SQL WHERE UNIT PRICE IS NEEDED $struery = "insert into OrderData(tid,itemname,itemnumber,qty,price) values ('".$txn_id."','".$_POST[$itemname]."','".$_POST[$itemnumber]."','".$_POST[$quantity]."','UNIT PRICE GOES HERE')"; $result = mysql_query($struery) or die("Cart - paypal_cart_info, Query failed:<br>" . mysql_error() . "<br>" . mysql_errno()); } } else{ $strQuery = "insert into paypal_payment_info(paymentstatus,buyer_email,firstname,lastname,street,city,state,zipcode,country,mc_gross,mc_fee,itemnumber,itemname,os0,on0,os1,on1,quantity,memo,paymenttype,paymentdate,txnid,pendingreason,reasoncode,tax,datecreation) values ('".$payment_status."','".$payer_email."','".$first_name."','".$last_name."','".$address_street."','".$address_city."','".$address_state."','".$address_zip."','".$address_country."','".$mc_gross."','".$mc_fee."','".$item_number."','".$item_name."','".$option_name1."','".$option_selection1."','".$option_name2."','".$option_selection2."','".$quantity."','".$memo."','".$payment_type."','".$payment_date."','".$txn_id."','".$pending_reason."','".$reason_code."','".$tax."','".$fecha."')"; $result = mysql_query("insert into paypal_payment_info(paymentstatus,buyer_email,firstname,lastname,street,city,state,zipcode,country,mc_gross,mc_fee,itemnumber,itemname,os0,on0,os1,on1,quantity,memo,paymenttype,paymentdate,txnid,pendingreason,reasoncode,tax,datecreation) values ('".$payment_status."','".$payer_email."','".$first_name."','".$last_name."','".$address_street."','".$address_city."','".$address_state."','".$address_zip."','".$address_country."','".$mc_gross."','".$mc_fee."','".$item_number."','".$item_name."','".$option_name1."','".$option_selection1."','".$option_name2."','".$option_selection2."','".$quantity."','".$memo."','".$payment_type."','".$payment_date."','".$txn_id."','".$pending_reason."','".$reason_code."','".$tax."','".$fecha."')") or die("Default - paypal_payment_info, Query failed:<br>" . mysql_error() . "<br>" . mysql_errno()); } // send an email in any case echo "Verified"; mail($notify_email, "VERIFIED IPN", "$res\n $req\n $strQuery\n $struery\n $strQuery2"); } else { // send an email mail($notify_email, "VERIFIED DUPLICATED TRANSACTION", "$res\n $req \n $strQuery\n $struery\n $strQuery2"); } //subscription handling branch if ( $txn_type == "subscr_signup" || $txn_type == "subscr_payment" ) { // insert subscriber payment info into paypal_payment_info table $strQuery = "insert into paypal_payment_info(paymentstatus,buyer_email,firstname,lastname,street,city,state,zipcode,country,mc_gross,mc_fee,memo,paymenttype,paymentdate,txnid,pendingreason,reasoncode,tax,datecreation) values ('".$payment_status."','".$payer_email."','".$first_name."','".$last_name."','".$address_street."','".$address_city."','".$address_state."','".$address_zip."','".$address_country."','".$mc_gross."','".$mc_fee."','".$memo."','".$payment_type."','".$payment_date."','".$txn_id."','".$pending_reason."','".$reason_code."','".$tax."','".$fecha."')"; $result = mysql_query($strQuery) or die("Subscription - paypal_payment_info, Query failed:<br>" . mysql_error() . "<br>" . mysql_errno()); // insert subscriber info into paypal_subscription_info table $strQuery2 = "insert into paypal_subscription_info(subscr_id , sub_event, subscr_date ,subscr_effective,period1,period2, period3, amount1 ,amount2 ,amount3, mc_amount1, mc_amount2, mc_amount3, recurring, reattempt,retry_at, recur_times, username ,password, payment_txn_id, subscriber_emailaddress, datecreation) values ('".$subscr_id."', '".$txn_type."','".$subscr_date."','".$subscr_effective."','".$period1."','".$period2."','".$period3."','".$amount1."','".$amount2."','".$amount3."','".$mc_amount1."','".$mc_amount2."','".$mc_amount3."','".$recurring."','".$reattempt."','".$retry_at."','".$recur_times."','".$username."','".$password."', '".$txn_id."','".$payer_email."','".$fecha."')"; $result = mysql_query($strQuery2) or die("Subscription - paypal_subscription_info, Query failed:<br>" . mysql_error() . "<br>" . mysql_errno()); mail($notify_email, "VERIFIED IPN", "$res\n $req\n $strQuery\n $struery\n $strQuery2"); } } // if the IPN POST was 'INVALID'...do this else if (strcmp ($res, "INVALID") == 0) { // log for manual investigation mail($notify_email, "INVALID IPN", "$res\n $req"); } } fclose ($fp); } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.