uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Cgi-bin or cgibin?

Knowledge Base Lobby : uShop Support Conference : CGI Script Related Problems
Oct-17-17 01:53 AM EST
Original Message
Cgi-bin or cgibin?
Author Claudio Gennari on 04-12-2001 at 02:51 (EST)

I have been trying to get my order page ‘processorder.html’ to work using the ‘ushop_cgiscript.pl’ script without success. I have tried all suggestions available on the FAQ and technical support page to no avail.

While fiddling with the ushop_cgiscript.pl I noticed that the special characters parser subroutine parses out of existence my ‘-‘ in my cgi-bin subdirectory name, thus making the path invalid (see sample below as the content of the variable ‘$orderpage’ is printed out together with the error message).

On my server, the Perl script can only be executed from the ‘cgi-bin’ directory (the name includes the – (minus) sign), if the parser removes the minus sign, as per example below we’ll never get home. (Please note that I have no problem in executing the script and getting the standard reply using the cheat method i.e.:
‘/www.mendels.com.au/mainfiles/cgi-bin/ushop_cgiscript.pl‘

If this is not the reason please help I have ran out of ideas.
All the best…
Claudio G.

NB. The ‘xxx’ in message below are my footprint in the ushop_cgiscript.pl

xxxUnknownxxx Order Page
Unable to locate order page: /www.mendels.com.au/mainfiles/cgibin/processorder.html

E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Cgi-bin or cgibin? Bill Weiner, 2001-04-12 06:57:47 (1)
            cgi-bin Claudio, 2001-04-12 20:27:56 (2)
                 Re: cgibin Joseph Pishgar, 2001-04-13 11:55:09 (3)

Messages In This Discussion
         1. RE: Cgi-bin or cgibin?
        Author Bill Weiner on 04-12-2001 at 06:57 (EST)
THIS RESPONSE PERTAINS TO USHOP 2.X

The recommended thing to do with uShop 2.x is to put your order.template page (I believe you called it "processorder.html") in the same directory as your ushop_cgiscript.pl file...and then set the "order_page" parameter to:

< PARAM NAME="order_page" VALUE="order.template" >

(As described in Section 6.4 on this uShop 2.x Reference Page: http://www.uburst.com/uShop/reference2/security.html )

If the script is having trouble locating the "order.template" page in the same directory as your ushop_cgiscript.pl, then you may indeed need to use the full directory path.... but as you described, our validating subroutines will strip out the "-" if you try to specify the full path via the "order_page" applet parameter. Instead, you should try putting that full directory path in as your $order_directory setting (in configuration question #10 at the top of the uShop 2.x script).
TABLE OF CONTENTS
                 2. cgi-bin
                Author Claudio on 04-12-2001 at 20:27 (EST)
Hi Bill,
Thanks for your reply. Tried all your suggestions… several times, but no luck.
Any chance for you to have a peep at my script and html code to see where I’m going wrong, surely someone must have similar problem as I have. If yes do you have an email address for this purpose?
Much obliged, cheers…
Claudio G.
TABLE OF CONTENTS
                         3. Re: cgibin
                        Author Joseph Pishgar on 04-13-2001 at 11:55 (EST)
Send your script on in to support@uburst.com and fill out a support request using the form.

Regards,
Joseph Pishgar
Support Engineer
Microburst Technologies, Inc.
www.uburst.com
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.