www.uburst.com www.uburst.com

"Cgi-bin or cgibin?"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

CGI Script Related Problems
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Cgi-bin or cgibin?"
Posted by Claudio Gennari on Apr-12-01 at 02:51 AM (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

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Cgi-bin or cgibin?, Bill Weiner, Apr-12-01, (1)
cgi-bin, Claudio, Apr-12-01, (2)
Re: cgibin, Joseph Pishgar, Apr-13-01, (3)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Cgi-bin or cgibin?"
Posted by Bill Weiner on Apr-12-01 at 06:57 AM (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).

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "cgi-bin"
Posted by Claudio on Apr-12-01 at 08:27 PM (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.
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "Re: cgibin"
Posted by Joseph Pishgar on Apr-13-01 at 11:55 AM (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

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.