David Bisset: Web Designer, Coder, Wordpress Guru

Web 2.0, Php, MySQL, HTML, CSS, Wordpress, Javascript, iTouch iPod, iPhone, Adobe…

Execute a HTTP POST Using PHP CURL

Here’s how you execute a POST using the PHP CURL library.

  • 0 Comments
  • Filed under: Coding
  • Spellify is “an automatic text field spell checker” that’s available for download, with the following requirements:

    - PHP 4+ with CURL library installed (developed using PHP 4.4.6)
    - script.aculo.us 1.8.0 (only effects.js and scriptaculous.js required)
    - Prototype JavaScript Framework 1.6.0

  • 0 Comments
  • Filed under: Coding
  • Getting ZenCart Working On GoDaddy

    GoDaddy hosting is evil if you’re a web developer and don’t know what they limit. Sometimes getting open source software installed and working (or some of it’s features afterwards) can be a pain. Zencart can be installed, but it’s Authorize.NET payment module might not work because of cURL. I stumbled on a possible solution. I’m repeating it here, just so I can make sure it’s in my database.

    Add the following to the cURL routine in authorizenet_aim.php.

    curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
    // The line below was posted on Godaddy's support site,
    // but did not work for me
    //curl_setopt ($ch, CURLOPT_PROXY,"http://64.202.165.130:3128");
    // This line worked for me instead
    curl_setopt ($ch, CURLOPT_PROXY,"64.202.165.130:3128");
    curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
    curl_setopt ($ch, CURLOPT_TIMEOUT, 45);

    Also bookmarking zenCart’s forum here. Also, since i work with zenCart I decided to open up a whole category on it. Got to bookmark more tips.

  • 0 Comments
  • Filed under: Coding, ZenCart
  • Twitter Updates