|
Rank: Starting Member
Groups: Registered
Joined: 3/18/2005 Posts: 2 Location: ,
|
Hello,
Here are some pretty lame questions I have. My knowledge of CGI/PERL is pretty limited, which my questions might reflect. Here goes...
I want to write a PERL/CGI script to support IPN. I have found some really nice examples on this forum - thanks to all for providing them. I tailored one to meet my needs and I uploaded it to my ISP (Earthlink). It didn't work, which I find completely shocking given this is the first time I tried it ;-). Anyway...
Question 1: My Earthlink Host is a Unix box (or so I am told by EL). I was wondering if the format of Unix files matters for running PERL scripts. In particular, I edited my PERL script using Microsoft's Visual Studio .NET. Since this is on Windows, I'm wondering if thereis a CR/LF incompatibility. Does anyone know if this is a problem to llok out for?
Question 2: Since my script didn't work first time - HUMPF! - I guess it's time to start debugging. Bummer. Does anyone have any tips for debugging? I have read about the paypal sandbox and about the eliteweaver ipntest URL. Considering I don't have access to the earthlink server, can someone suggest how to approach this debugging challenge? I tried "faith-healing", but that didn't work.
Regards,
Duke Harvey
www.widgety.com
|
|
Rank: Starting Member
Groups: Registered
Joined: 1/10/2003 Posts: 738 Location: ,
|
You may want to download komodo free trial it has a perl debugger. Make sure you set the permissions properly and upload in ascii format. Also make sure your host allows CGI scripts to be run on their servers, Andrew Chang Script to sell downloads: http://itemseller.scorpionsystems.netWeb Design & Scripting: http://scorpionsystems.netWeb & Image Hosting includes global SSL: http://scorpionwebhosting.comPhotographer Gallery Software: http://Photo-Seller.comBecome an affiliate and make money http://worldannouncements.com/affiliates http://scorpionwebhosting.com/affiliate Free Web Traffic: http://www.trafficswarm.com/go.cgi?169137 , http://www.ts25.com/index.jsp?ref=ScorpionSystems
|
|
Rank: Starting Member
Groups: Registered
Joined: 3/18/2005 Posts: 2 Location: ,
|
Andrew, Thanks for the reply/info. I'll check it out. I've managed to debug all of my CGI subroutines in isolation - by not executing then within the IPN context. This has been effective since it vaildates these subroutines as being correct. Unfortunately, when I put it altogether in the IPN context, something is failing. It has also been useful to run tests using my private paypal account with my merchant account (by refunding each transaction). But I am also trying to limit the number of these tests since my private account is funded by a credit card. Some credit card companies will shut off the card if they see too many repetitive transactions like refunds. Again, thanks! Duke Harvey www.widgety.com
|