perl-asp mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SPiRiT_oF_HeLLSoNG serveur" <hells...@hotmail.fr>
Subject Re: Can't call method "item" --> ASP.pm line 1521
Date Sun, 21 Jan 2007 13:24:36 GMT
Hello,

here the output (no error at least):

COMSPEC
DOCUMENT_ROOT
GATEWAY_INTERFACE
HTTP_ACCEPT
HTTP_ACCEPT_CHARSET
HTTP_ACCEPT_ENCODING
HTTP_ACCEPT_LANGUAGE
HTTP_CACHE_CONTROL
HTTP_CONNECTION
HTTP_COOKIE
HTTP_HOST
HTTP_KEEP_ALIVE
HTTP_USER_AGENT
MOD_PERL
MOD_PERL_API_VERSION
PATH
PATHEXT
QUERY_STRING
REMOTE_ADDR
REMOTE_PORT
REQUEST_METHOD
REQUEST_URI
SCRIPT_FILENAME
SCRIPT_NAME
SERVER_ADDR
SERVER_ADMIN
SERVER_NAME
SERVER_PORT
SERVER_PROTOCOL
SERVER_SIGNATURE
SERVER_SOFTWARE
SystemRoot
TEMP
WINDIR




From:  Helmut Zeilinger <hz@hzlabs.de>
To:  SPiRiT_oF_HeLLSoNG serveur <hellsong@hotmail.fr>
CC:  asp@perl.apache.org
Subject:  Re: Can't call method "item" --> ASP.pm line 1521
Date:  Sat, 20 Jan 2007 20:27:24 +0100
>Hi Spirit,
>
>could you test this script below:
>
>...
><%
>my $variables = $Request->{'ServerVariables'};
>print join '<br>', sort keys %$variables;
>%>
>...
>
>What is the output, if any (error messages)?
>
>Helmut
>
>
>SPiRiT_oF_HeLLSoNG serveur schrieb:
>>Hello,
>>
>>I don't have any 'PATH_INFO' nor 'PATH_TRANSLATED' in my httpd.conf file,
>>I've added PerlOptions +SetupEnv but the error is the same,
>>
>>>What about other Server Variables like
>>>
>>>eg. QUERY_STRING, REQUEST_URI?
>>>
>>>Do they exist / work?
>>
>>nope, i don't have any of them.
>>
>>
>>Romain.
>>
>>>From: Helmut Zeilinger <hz@hzlabs.de>
>>>To: SPiRiT_oF_HeLLSoNG serveur <hellsong@hotmail.fr>, Apache-ASP 
>>><asp@perl.apache.org>
>>>Subject: Re: Can't call method "item" --> ASP.pm line 1521
>>>Date: Thu, 18 Jan 2007 09:04:36 +0100
>>>
>>>Hi Spirit,
>>>
>>>it is most likely because there exist no Server Variables
>>>
>>>'PATH_INFO' and
>>>'PATH_TRANSLATED'
>>>
>>>at least on my linux system.
>>>
>>>But may be on windows they should exist,
>>>which i can't test now for some reason..?
>>>
>>>Did you try to add
>>>
>>>PerlOptions +SetupEnv
>>>
>>>in your http / vhost-conf?
>>>
>>>What about other Server Variables like
>>>
>>>eg. QUERY_STRING, REQUEST_URI?
>>>
>>>Do they exist / work?
>>>
>>>
>>>Helmut
>>>
>>>
>>>
>>>
>>>SPiRiT_oF_HeLLSoNG serveur schrieb:
>>>>Hi and thaanks for your answer.
>>>>Here my httpd.conf:
>>>>
>>>>PerlRequire C:/startup.pl
>>>>PerlModule Apache::ASP
>>>><Files ~ (\.asp)>
>>>>SetHandler perl-script
>>>>PerlHandler Apache::ASP
>>>>PerlSetVar Global .
>>>>PerlSetVar StateDir C:/tmp/asp
>>>></Files>
>>>>-----------------------
>>>>inside C:/startup.pl:
>>>>
>>>>#!/usr/bin/perl
>>>>
>>>>use Apache2::compat;
>>>>1;
>>>>-----------------------
>>>>the hello.asp file is some sample from the sample library installed with 
>>>>apache-asp
>>>>
>>>><%@ LANGUAGE = PerlScript %>
>>>><html>
>>>><HEAD>
>>>><!--
>>>>Copyright (c) 1996, Microsoft Corporation. All rights reserved.
>>>>Developed by ActiveState Internet Corp., http://www.ActiveState.com
>>>>-->
>>>><TITLE> Hello World </TITLE>
>>>></HEAD>
>>>>
>>>><BODY> <BODY BGCOLOR=#FFFFFF>
>>>><!--
>>>>ActiveState PerlScript sample
>>>>PerlScript: The coolest way to program custom web solutions.
>>>>-->
>>>>
>>>><!-- Masthead -->
>>>><TABLE CELLPADDING=3 BORDER=0 CELLSPACING=0>
>>>><TR VALIGN=TOP ><TD WIDTH=400>
>>>><A NAME="TOP"><IMG SRC="PSBWlogo.gif" WIDTH=400 HEIGHT=48 
>>>>ALT="ActiveState PerlScript" BORDER=0></A><P>
>>>></TD></TR></TABLE>
>>>>
>>>><%
>>>>for ($i = 3; $i < 8; $i++) {
>>>>%>
>>>><font size=<%= $i %>>
>>>>"Hello World!"
>>>></font>
>>>><BR>
>>>><%
>>>>}
>>>>%>
>>>>
>>>><!-- +++++++++++++++++++++++++++++++++++++
>>>>here is the standard showsource link -
>>>>Note that PerlScript must be the default language --> <hr>
>>>><%
>>>>$url = $Request->ServerVariables('PATH_INFO')->item;
>>>>$_ = $Request->ServerVariables('PATH_TRANSLATED')->item;
>>>>s/[\/\\](\w*\.asp\Z)//m;
>>>>$params = 'filename='."$1".'&URL='."$url";
>>>>$params =~ s#([^a-zA-Z0-9&_.:%/-\\]{1})#uc '%' . unpack('H2', $1)#eg;
>>>>%>
>>>><A HREF="index.htm"> Return </A>
>>>><A HREF="showsource.asp?<%=$params%>">
>>>><h4><i>view the source</i></h4></A>
>>>>
>>>></BODY>
>>>></HTML>
>>>>
>>>>-----------------------
>>>>
>>>>>From: Helmut Zeilinger <hz@hzlabs.de>
>>>>>To: SPiRiT_oF_HeLLSoNG serveur <hellsong@hotmail.fr>
>>>>>Subject: Re: Can't call method "item" --> ASP.pm line 1521
>>>>>Date: Mon, 15 Jan 2007 16:41:44 +0100
>>>>>
>>>>>Hi Spirit,
>>>>>
>>>>>could you supply your httpd config (the relevant section only!)
>>>>>and the content of your hello.asp?
>>>>>
>>>>>Helmut
>>>>>
>>>>>SPiRiT_oF_HeLLSoNG serveur schrieb:
>>>>>>Hello ASP community,
>>>>>>
>>>>>>Here my problem:
>>>>>>I run a little server with Apache/2.0.53 (Win32) mod_perl/2.0.3 
>>>>>>Perl/v5.8.8
>>>>>>and i have recently installed Apache::ASP but, none of the samples

>>>>>>work.
>>>>>>They just give me an error 500 and my log show this error:
>>>>>>[Thu Jan 11 17:57:15 2007] [error] [asp] [4996] [error] Can't call

>>>>>>method
>>>>>>"item" on an undefined value at C:/webapache/asp/hello.asp line 38.

>>>>>><--> ,
>>>>>>C:/usr/site/lib/Apache/ASP.pm line 1521
>>>>>>
>>>>>>Any idea?
>>>>>>
>>>>>>_________________________________________________________________
>>>>>>Windows Live Messenger sur i-mode™ : dialoguez avec vos amis depuis

>>>>>>votre mobile comme sur PC ! http://mobile.live.fr/messenger/bouygues/
>>>>>>
>>>>>>
>>>>>>---------------------------------------------------------------------
>>>>>>To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
>>>>>>For additional commands, e-mail: asp-help@perl.apache.org
>>>>>>
>>>>>
>>>>>
>>>>
>>>>_________________________________________________________________
>>>>Ten : Messenger en illimité sur votre mobile ! 
>>>>http://mobile.live.fr/messenger/ten/
>>>>
>>>
>>>
>>>--
>>>HZ.labs
>>>Dr. Helmut Zeilinger
>>>Wiesengrund 2
>>>D-86 684 Holzheim
>>>Tel. 08276 58767
>>>Fax. 08276 58787
>>>Mobil 0160 91 55 61 68 Internet http://www.hzlabs.de
>>>Mail hz@hzlabs.de
>>>
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
>>>For additional commands, e-mail: asp-help@perl.apache.org
>>>
>>
>>_________________________________________________________________
>>Gagnez des pc Windows Vista avec Live.com http://www.image-addict.fr/
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
>>For additional commands, e-mail: asp-help@perl.apache.org
>>
>
>
>--
>HZ.labs
>Dr. Helmut Zeilinger
>Wiesengrund 2
>D-86 684 Holzheim
>Tel.     08276 58767
>Fax.     08276 58787
>Mobil    0160 91 55 61 68 Internet http://www.hzlabs.de
>Mail     hz@hzlabs.de
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
>For additional commands, e-mail: asp-help@perl.apache.org
>

_________________________________________________________________
Windows Live Spaces : créez votre blog à votre image ! 
http://www.windowslive.fr/spaces


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Mime
View raw message