Jump to content

Scholar Warrior

Members
  • Posts

    12
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://stuartdavis.com

Scholar Warrior's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. yeah, i'd be willing to supply a photo id. thanks for taking our voices seriously, head guru.
  2. I'm curious to find out which falling cow entry won the custom computer that TCH was giving away. Some of those captions were downright funny!
  3. I would take a look at NetAtlantic. I have used them for several years now and do not have a single complaint. They run lyris and have good prices, probably $20 a month for you.
  4. Are you going to offer us any alternatives that aren't plain text authentication? I love using ssh and scp, especially sftp.
  5. my contributions: Watch for falling stocks Cow-a-boinga! Mad Cow Sanitarium Ahead, Watch for Escapees Bulls-hit Got milk? Public Service Announcement: A car without a driver is a cow-tastrophe waiting to happen. Warning: Bovine Boulders Ahead! Moo Juice Ahead: Slippery When Wet Public Service Announcement: This is how milk is really homogenized.
  6. Thanks for the info! I feel like i have enough knowledge to go out and start looking now
  7. Thanks for your informative answer! Much appreciatted. I've already written a store module for drupal, That's how i run the paypal stuff now. Would you mind telling me more about your gateway. Who are you using and why? This would give a good starting point, and i can then learn the questions i need to ask other gateways. 3 cheers for critical mass!
  8. Thanks for the link. What i'm really looking for is a way to keep a user on my site essentially the whole time. When it comes time to process the payment info. I transparently do that behind the scenes (via submitted FORM data) and let the user know if there are any problems. Is something like this unheard of in the realm of ecommerce?
  9. At our stuartdavis.com, we offer digital song downloads as well as physical, shippable items. We have used paypal for over a year now, and it has been great. However we need to expand beyond the scope of paypal and are looking for some advice. From technical standpoint, i need real time credit card processing so i can instantly give customers access to their songs. What i don't know is how we connect to the gateway at checkout time and how that data is usually passed back to my system. Anybody been down this road before? Is there a gateway that function much like PayPal's IPN system?
  10. Digirunt, Who did you use for your payment gateway? I'm trying to find one with reasonable costs.
  11. I clicked on the addon scripts but alas, nothing was there! (i'm on server 20)
  12. let's get the love on and and share some of our favorite code, tips and tricks in php. I'll go first: ><?php /** * This function works with your cpanel (mailman) mailinglists. It allows to * create a custom signup form rather than going directly through mailman. It * works great when your are signing up a using and are collecting other * information, you can say "Check this box to signup for the newsletter". You * can see what i mean by going here: * * http://stuartdavis.com/punkmonksignup.php * * * Parameters * $email - the email address of the person to be subscribed * $listname - official name of your mailing list * $domain - your domain name, without the "www." (i.e., stuartdavis.com) * * This function will return true on success or false on failure. * * Created by: Matt Westgate <matt at stuartdavis.com>, 10/20/2002 * **/ function mailingListSub($email, $listname, $domain) { $pwd = substr(md5(time()),0,6); $args = "&email=".urlencode(stripslashes($email)). "&pw=".urlencode(stripslashes($pwd)). "&pw-conf=".urlencode(stripslashes($pwd)). "&digest=0". "&email-button=Subscribe"; $header = "POST /mailman/subscribe/".trim($listname)."_".$domain." HTTP/1.0\r\n"; $header .= "Host: ".$domain."\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= 'Content-Length: ' . strlen($args) . "\r\n"; $header .= "Connection: Close\r\n\r\n"; $fp = fsockopen($domain, 80, $errno, $errstr, 30); if (!$fp) { // ERROR fclose($fp); return false; } else { fputs($fp, $header . $args); while (!feof($fp)) { $res = fgets ($fp, 1024); //echo "$res\n"; if (strstr($res, "Confirmation")) { fclose($fp); return true; } elseif (strstr($res, "deferred")) { fclose($fp); return true; } } } fclose($fp); return false; } /** * Takes as input and email address and returns true if it is well-formed. * It doesn't doesn't check to see if the email address actually exists. just * that it looks right. * * Created by: Matt Westgate <matt at stuartdavis.com>, 06/05/2000 **/ function validEmail($email) { $email = trim($email); if ($email == "") return false; $email_regex="^([-!#\$%&'*+./0-9=?A-Z^_`a-z{|}~ ])+@([-!#\$%&'*+/0-9=?A-Z^_`a-z{|}~ ]+\.)+[a-zA-Z]{2,6}\$"; return eregi($email_regex, $email); } ?>
×
×
  • Create New...