DeveloperSide.NET Forums
February 22, 2020, 06:32:40 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Analog 5.32 vs 6.0...  (Read 10174 times)
0 Members and 1 Guest are viewing this topic.
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« on: August 18, 2005, 09:19:53 PM »

Just as a note to myself and anyone else that comes on this problem...

Under version analog v6.0, the OUTFILE field under analog.cfg is ignored when using forms (anlgform.html/pl) to generate a report (even when taken out of the 'forbidden' array under anlgform.pl).  Now, under IE, you will be prompted to save file 'anlgform.pl' (which will contain the generated report -- not the actual cgi file anlgform.pl) or, under Firefox, you will see the generated report on screen (with the displayed url http://localhost/cgi-bin/anlgform.pl). In either case, the generated report is no longer saved to the local system as OUTFILE -- to do that you have to run analog.exe manually and it will respect the OUTFILE field.  This seems to have been done for security reasons...
http://www.analog.cx/docs/form.html
http://www.analog.cx/docs/output.html
http://www.gossamer-threads.com/lists/analog/help/18485
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
nohart
Jr. Member
**
Posts: 30


View Profile WWW
« Reply #1 on: October 16, 2005, 11:00:45 PM »

Hi I tried to update Analog to v6 and now when I run the program and select "Produce Statistics" a window pops saying that windows cannot open this file (anlgform.pl) to open this file, windows needs to know what program created it... Does anyone know how to fix this?
Logged

Owner of A Class Act Apparel - http://www.aclassactapparel.com
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #2 on: October 16, 2005, 11:07:49 PM »

Save this file, rename to stats.html (or whatever, as long as its *.html), open it in your browser.
You might need to save it to a relative location...
I think to \www\webroot\stats\ so it picks up the graphics.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
nohart
Jr. Member
**
Posts: 30


View Profile WWW
« Reply #3 on: October 17, 2005, 01:12:06 AM »

I am not given an option to save the file. It wants to know what program to use to open the file anlgform.pl?
Logged

Owner of A Class Act Apparel - http://www.aclassactapparel.com
nohart
Jr. Member
**
Posts: 30


View Profile WWW
« Reply #4 on: October 17, 2005, 01:20:11 AM »

If I change the top line in anlgform.pl
from:
#!/www/perl/bin/perl.exe
to:
!/www/perl/bin/perl.exe

The page tries to load like it used to but I get an error page:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


--------------------------------------------------------------------------------

Apache/2.0.54 (Win32) PHP/5.0.5 mod_perl/2.0.1 Perl/v5.8.7 Server at localhost Port 80

Here is my log file:

[Sun Oct 16 18:30:51 2005] [error] [client 127.0.0.1]   \\www\\analog\\errors.txt\r, referer: http://localhost/stats/anlgform.html
[Sun Oct 16 18:30:51 2005] [error] [client 127.0.0.1]   (For help on all errors and warnings, see docs/errors.html)\r, referer: http://localhost/stats/anlgform.html
Logged

Owner of A Class Act Apparel - http://www.aclassactapparel.com
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #5 on: October 17, 2005, 01:43:17 AM »

Quote

If I change the top line in anlgform.pl
from:
#!/www/perl/bin/perl.exe
to:
!/www/perl/bin/perl.exe


Why would you do this?  The line is correct. '#' is not a 'comment out' in this case.
See 'shebang' line...
http://www.devside.net/web/config/cgi

You could try making it...
#!C:/www/perl/bin/perl.exe
or #!perl.exe

Though I doubt that is the problem.  Just some restrictive IE setting.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #6 on: October 17, 2005, 02:03:50 AM »

Just to make sure that we are on the same page...
When you load up http://localhost/cgi-bin/anlgform.pl in IE, you are getting output, IE is not trying to process or execute anlgform.pl -- this is already done -- you are getting a file named anlgform.pl that IS NOT a perl file, but an html file -- the output of anlgform.pl -- just with a messed up name that is confusing the Browser.  Try Firefox.

Don't know why they made such changes with v6.0, the confusion will be greater than any additional security.  I guess we just have to deal with it.  Though I'm sure there is a patch.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
nohart
Jr. Member
**
Posts: 30


View Profile WWW
« Reply #7 on: October 17, 2005, 03:00:48 AM »

Thats exactly what it was! I noticed that if I opened the file in Notepad it was an html file but IE wouldnt open it? Firefox once again comes thru. Security changes just mess things up for everyone!? Too bad this bug isnt spelled out in plain english. I probably spent a couple of hours trying to figure this one out! Thanks for all the quick replies and your help! :lol:
Logged

Owner of A Class Act Apparel - http://www.aclassactapparel.com
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #8 on: August 31, 2006, 01:17:39 AM »

Under IE, http://localhost/stats/anlgform.html, which will redirect to http://localhost/cgi-bin/anlgform.pl, will treat output of this perl script as a download file 'anlgform.pl'

Note: this does not happen under Firefox, or any other browser, nor was this a problem with Analog v5 -- probably just IE brain damage, xml related (new to analog v6)

Have put a workaround emplace with 'OUTPUT HTML', over default XHTML, under \www\analog\analog.cfg
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!