• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

perl script doing nowt

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    perl script doing nowt

    Getting quite a few website orders recently, so was trying to improve the callback script on my site that RBS Worldpay invokes to send me details of the purchase. At present I get a rather long unformatted text file with the important stuff buried among lots of junk.

    Getting HTTP error 500 from Wordpay so tried to test it from my own form but absolutely nothing is happening. Dug out my perl book and did a short test script but just getting standard "website page not found"

    Form:
    <form action="cgi-bin/test.cgi" method="post" name="order">

    Script:
    #!/usr/bin/perl
    $html = "Content-Type: text/html
    <HTML>
    <HEAD>
    <TITLE>test</TITLE>
    </HEAD>
    <BODY>
    <H1>Darn it</H1>
    <P>Work damn you</P>
    </BODY>
    </HTML>";
    print $html;

    Got right file names/paths, permissions (711 & 755) and path to perl. What am I missing? Cheers for any bright ideas.
    Last edited by xoggoth; 25 April 2010, 22:24.
    bloggoth

    If everything isn't black and white, I say, 'Why the hell not?'
    John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

Working...
X