Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> Curl questions
BobLoveland
  Posted: Jun 5 2007, 06:24 PM
Quote Post





Group: Members
Posts: 44
Member No.: 128
Joined: 21-November 02



Hi, I am getting an error on an osccommerce based web site (oscmax) with the Linkpoint payment module.

Fatal error: Call to undefined function: curl_init() in /usr/local/psa/home/vhosts/native-beauty.com/httpdocs/catalog/includes/linkpoint/lpphp.php on line 167

Do we have acccess to CURL?
If it helps you can see what the linkpoint module is asking for by looking at these two install instruction sheets.
http://www.native-beauty.com/install.htm
http://www.native-beauty.com/install2.htm

Linkpoint has a debug mode that I can use to diagnose the problem but need the location for curl to manually edit this code for it to work Here is the code in the debug section of lpphp.php

CODE
=====================================================
<?php

# lpphp.php
# A php CLASS to communicate with
# LinkPoint: LINKPOINT LSGS API
# via the CURL module
# v2.0.007 20 jan 2003


class lpphp
{
var $crlf;
var $lpapi;

function lpphp()
{
### SET THE FOLLOWING FOUR FIELDS ###

$this->EZ_CONVERSION = 1; # 1 = HARDWIRE PORT TO 1129 default=1
$this->DEBUGGING = 0; # diagnostic output default=0=none
# 1=ON

#if php version > 4.0.2 use built-in php curl functions (1=YES, 0=NO)
$this->PHP_CURLFUNCS = 1; # default=1=yes
# 0=no

#otherwise shell out to the curl binary
#uncomment this next field ONLY if NOT using PHP_CURLFUNCS above (=0)
#$this->curlpath = "/usr/bin/curl"; # default=commented
#$this->curlpath = "c:\\curl7.9\\curl.exe";
#$this->curlpath = "/usr/local/bin/curl";
^^^^^^I ADDED THIS HOPING IT WOULD WORK
}
[COLOR=red]
PMUsers WebsiteAOLYahoo
Top
Matt
Posted: Jun 6 2007, 11:39 AM
Quote Post





Group: Members
Posts: 1,103
Member No.: 342
Joined: 25-November 03



CURL isn't compiled into the PHP on the UPipe server. It is available as an executable at:

/usr/local/bin/curl

Some software allows you the option of using the executable version instead of the PHP function.

Our current WebPro shared hosting accounts have CURL compiled into PHP.


--------------------
Matt B.
Advantagecom Technical Support

Private messages are ignored unless solicited. If you have a support question, please email support@advantagecom.net, post in the appropriate section of the forum, or call if your service plan allows support by phone.
PMUsers Website
Top
andy
Posted: Jun 6 2007, 06:45 PM
Quote Post





Group: Advantagecom Staff
Posts: 4,340
Member No.: 9
Joined: 12-July 02



Change this:
CODE
#if php version > 4.0.2 use built-in php curl functions (1=YES, 0=NO)
$this->PHP_CURLFUNCS = 1; # default=1=yes
# 0=no


to this:
CODE
#if php version > 4.0.2 use built-in php curl functions (1=YES, 0=NO)
$this->PHP_CURLFUNCS = 0; # default=1=yes
# 0=no


and change this:
CODE
#otherwise shell out to the curl binary
#uncomment this next field ONLY if NOT using PHP_CURLFUNCS above (=0)
#$this->curlpath = "/usr/bin/curl"; # default=commented
#$this->curlpath = "c:\\curl7.9\\curl.exe";
#$this->curlpath = "/usr/local/bin/curl";


to this:
CODE
#otherwise shell out to the curl binary
#uncomment this next field ONLY if NOT using PHP_CURLFUNCS above (=0)
#$this->curlpath = "/usr/bin/curl"; # default=commented
#$this->curlpath = "c:\\curl7.9\\curl.exe";
$this->curlpath = "/usr/local/bin/curl";


Depending on the version of curl your application expects, you may need to add various flags to curl to change its default behaviour. If you still have trouble after making the above changes, let us know and we'll help you work through any curl options that might be necessary.


--------------------
Sincerely,
Andrew Kinney
CTO, Advantagecom Networks

Please do not private message me. My regular management duties preclude responding to every customer that sends me a support issue. Instead, post on the forum or contact tech support.
PMUsers Website
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll