Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc.

Go Back   Reseller Hosting, Shared Hosting, Dedicated Hosting by Vortech Inc. > >> General Public > Chit Chat Public
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Chit Chat Public Talk about any thing you want! This forum is public.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-20-2003, 09:46 PM
bootNumlock's Avatar
bootNumlock bootNumlock is offline
Brangwyn fan club member
Vortech Inc. Customer
 
Location: chicago
anyone ever 'shelled out' to cURL on UNIX?

hey,
very new to the whole nix thing and am trying to utilize a script that shells out to cURL--linkpoint payment processing module for oscommerce--i can't even get the script to generate errors... i have put in a TT and confirmed a path to curl, but still nothing, just a blank page spit out at the end of the checkout process.

the author of the script says that this is symptomatic of a misconfiguring of cURL--

can anyone drop some wisdom on me in reference to this item...
__________________
boot numlock
Reply With Quote
  #2  
Old 07-20-2003, 10:40 PM
landiserve
Guest
 
curl is configured right, but it is not compiled into PHP, not sure if that is why the script author said that or not.
Sadly I don't know much about it though.
Reply With Quote
  #3  
Old 07-20-2003, 10:45 PM
bootNumlock's Avatar
bootNumlock bootNumlock is offline
Brangwyn fan club member
Vortech Inc. Customer
 
Location: chicago
there is an option in the script to shell out to it, but it doesn't even act like it is getting to that point-- i am so weak at php that i can barely even figure out how to add in debugging lines

matt asked what the exec function what returning--if the script is set up $result= exec ( blah, blah, blah...

can i just echo$result;

?
__________________
boot numlock
Reply With Quote
  #4  
Old 07-21-2003, 11:24 AM
majorSky's Avatar
majorSky majorSky is offline
Percussive Maniac
Vortech Inc. Customer
 
Location: Sac Area, CA
I've also had curl problems for weeks now (on cpanel acct and for authorize.net processing).

I'm calling curl via php's exec function. It's funny, because at first curl would send the data to authorize (I got confirmation emails form Authorize), but the response wouldn't happen. The program would simply hang and never finish.

Right after I first reported the incident, it worked perfectly! Then the next day, it was back to hanging.

Now it doesn't even get the data to Authorize and I've been waiting for a few days for someone to fix this problem.

I have read the curl docs. I am using it correctly. It DID work for a few hours.

Come on guys! What's the deal? I have clients who are depending on me!

majorsky
Reply With Quote
  #5  
Old 07-21-2003, 11:24 AM
majorSky's Avatar
majorSky majorSky is offline
Percussive Maniac
Vortech Inc. Customer
 
Location: Sac Area, CA
I've also had curl problems for weeks now (on cpanel acct and for authorize.net processing).

I'm calling curl via php's exec function. It's funny, because at first curl would send the data to authorize (I got confirmation emails form Authorize), but the response wouldn't happen. The program would simply hang and never finish.

Right after I first reported the incident, it worked perfectly! Then the next day, it was back to hanging.

Now it doesn't even get the data to Authorize and I've been waiting for a few days for someone to fix this problem.

I have read the curl docs. I am using it correctly. It DID work for a few hours.

Come on guys! What's the deal? I have clients who are depending on me!

majorsky
Reply With Quote
  #6  
Old 07-21-2003, 11:31 AM
bootNumlock's Avatar
bootNumlock bootNumlock is offline
Brangwyn fan club member
Vortech Inc. Customer
 
Location: chicago
is there anyone with any experience with this subject that has had success here at matrix?
__________________
boot numlock
Reply With Quote
  #7  
Old 07-21-2003, 11:34 AM
majorSky's Avatar
majorSky majorSky is offline
Percussive Maniac
Vortech Inc. Customer
 
Location: Sac Area, CA
Sorry. In my rant I forgot to give you what you were looking for... Here's a couple test scripts for using curl without having to send data to your processor. The basic functionality of curl is the same as you'd use for your processor...

Code:
//calling hello.php via curl <? // http://yourdomain.com/calling.php $data="hi=hello"; unset($response); exec("/usr/bin/curl -d \"$data\" http://yourdomain.com/hello.php", $response); for($i=0;$i<sizeof($response); $i++) { echo $response[$i]; } echo sizeof($response); exit; ?> //hello page // http://yourdomain.com/calling.php <?php echo $_POST['hi']; ?> <?php echo 'hello from yourdomain'; ?>
Reply With Quote
  #8  
Old 07-21-2003, 11:47 AM
majorSky's Avatar
majorSky majorSky is offline
Percussive Maniac
Vortech Inc. Customer
 
Location: Sac Area, CA
Well, it appears that curl is not installed. I can't even find a path to it using "whereis"

argh!
Reply With Quote
  #9  
Old 07-21-2003, 08:13 PM
Brangwyn Brangwyn is offline
T3CHN0 STUD
Vortech Inc. Customer
 
Location: New Zealand (Wellington)
On unix I believe it should be /usr/local/bin/curl
Reply With Quote
  #10  
Old 07-21-2003, 09:27 PM
somereseller's Avatar
somereseller somereseller is offline
Usability everywhere
Vortech Inc. Customer
 
Location: mars
I can confirm this
Reply With Quote
  #11  
Old 07-21-2003, 09:51 PM
bootNumlock's Avatar
bootNumlock bootNumlock is offline
Brangwyn fan club member
Vortech Inc. Customer
 
Location: chicago
i have noticed from server to server [unitl pointed out to tech staff] curl may or may not be there--i was told the other day it was just installed on unix10--hey majorsky-- how do you use that whereis feature?
__________________
boot numlock
Reply With Quote
  #12  
Old 07-21-2003, 10:05 PM
Brangwyn Brangwyn is offline
T3CHN0 STUD
Vortech Inc. Customer
 
Location: New Zealand (Wellington)
I guess it may not be available on some of the newer servers, I do seem to recall that when the 'curl' issue came up a while ago that hostnet went through and installed it on all existing servers.

Last edited by Brangwyn : 07-21-2003 at 10:09 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cURL... am i out of luck? jwatts Chit Chat Public 6 12-05-2005 09:00 PM
CURL and PHP landiserve Chit Chat Public 4 01-12-2003 07:35 PM


All times are GMT -5. The time now is 04:36 AM.


Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Vortech Inc. ©2005
Page generated in 0.62917 seconds with 18 queries
[Output: 91.19 Kb. compressed to 83.86 Kb. by saving 7.33 Kb. (8.04%)]