I've written a short ASP page, 'HelloWorld.asp':
<head>
<title>Hello World</title>
</head>
Hello World! The time is <% Now %>
But when I try to test the page, I get the output below. Isn't Now a function
supported by ASP?
Errors Output
Response::Now not defined at
/usr/local/encap/perl-5.005.3/lib/site_perl/5.005/Apache/ASP.pm line 2171
Apache::ASP::Response::AUTOLOAD('Apache::ASP::Response=HASH(0x83584a4)')
called at (eval 200) line 6
Apache::ASP::Demo::_home_webpages_userworld_htdocs_users_varocho1_asp_HelloWor
ld_asp____INLINE() called at
/usr/local/encap/perl-5.005.3/lib/site_perl/5.005/Apache/ASP.pm line 1051
eval {...} called at
/usr/local/encap/perl-5.005.3/lib/site_perl/5.005/Apache/ASP.pm line 1051
Apache::ASP::Execute('Apache::ASP=HASH(0x8359c5c)') called at
/usr/local/encap/perl-5.005.3/lib/site_perl/5.005/Apache/ASP.pm line 125
Apache::ASP::handler('Apache=SCALAR(0x8215d30)') called at /dev/null line
0
eval {...} called at /dev/null line 0
, /usr/local/encap/perl-5.005.3/lib/site_perl/5.005/Apache/ASP.pm line 1053
Debug Output
STARTING ASP HANDLER (v0.14) for file
/home/webpages/userworld/htdocs/users/varocho1/asp/HelloWorld.asp
GlobalASA package Apache::ASP::Demo
created $Application -
SessionCookie - 714a9dc4950f93a39d03dd1b6c9ce922
session timed out, clearing
Session_OnEnd - session: 714a9dc4950f93a39d03dd1b6c9ce922;
tieing session -
clearing starting session
forcing groups cleanup
group check GroupId71
skipping delete self - id: 714a9dc4950f93a39d03dd1b6c9ce922;
cleanup groups - deleted: 0;
Application_OnEnd
Application_OnStart
Session_OnStart - session: 714a9dc4950f93a39d03dd1b6c9ce922;
ASP object created - Application: Apache::ASP::Application=HASH(0x8359b9c);
GlobalASA: Apache::ASP::GlobalASA=HASH(0x839eda8); Internal:
Apache::ASP::State=HASH(0x8328334); Request:
Apache::ASP::Request=HASH(0x8359b54); Response:
Apache::ASP::Response=HASH(0x83584a4); Server:
Apache::ASP::Server=HASH(0x839e510); Session:
Apache::ASP::Session=HASH(0x8359de8); app_start: 0; basename: HelloWorld.asp;
buffering_on: 1; cgi_do_self: 0; cgi_headers: ; clean: 0; command_line: ;
compile_error: ; compile_includes: ; cookie_path: /; debug: 2; debugs_output:
ARRAY(0x839e408); dirname:
/home/webpages/userworld/htdocs/users/varocho1/asp; errors: 0; errors_output:
ARRAY(0x8282858); filehandle: ; filename:
/home/webpages/userworld/htdocs/users/varocho1/asp/HelloWorld.asp; filter: 0;
global: /home/webpages/userworld/htdocs/users/varocho1/asp/.; global_package:
Apache::ASP::Demo; group_refresh: 3; groups_refresh: 3; id:
_home_webpages_userworld_htdocs_users_varocho1_asp_HelloWorld_asp____INLINE;
init_packages: ARRAY(0x839d184); mail_alert_period: 20; mail_alert_to: ;
mail_errors_to: ; mail_host: ; mtime: 943039109; no_cache: ; no_headers: 0;
no_session: 0; no_state: ; package: Apache::ASP::Demo; paranoid_session: 0;
pod_comments: 1; r: Apache=SCALAR(0x8215d30); remote_ip: 209.16.196.244;
script_timeout: 90; secure_session: ; session_serialize: ; session_timeout:
30; soft_redirect: ; stat_inc: 1; stat_inc_match: CGI; state_db: SDBM_File;
state_dir: /home/webpages/userworld/htdocs/users/varocho1/tmp/asp_demo;
state_manager: 10; ua: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98;
DigExt); unique_packages: 0;
parsing HelloWorld.asp
undefing sub
Apache::ASP::Demo::_home_webpages_userworld_htdocs_users_varocho1_asp_HelloWor
ld_asp____INLINE active code CODE(0x8357ec8) before compiling
compiling into package Apache::ASP::Demo
Script_OnStart
executing
_home_webpages_userworld_htdocs_users_varocho1_asp_HelloWorld_asp____INLINE
Response::Now not defined at
/usr/local/encap/perl-5.005.3/lib/site_perl/5.005/Apache/ASP.pm line 2171
Apache::ASP::Response::AUTOLOAD('Apache::ASP::Response=HASH(0x83584a4)')
called at (eval 200) line 6
Apache::ASP::Demo::_home_webpages_userworld_htdocs_users_varocho1_asp_HelloWor
ld_asp____INLINE() called at
/usr/local/encap/perl-5.005.3/lib/site_perl/5.005/Apache/ASP.pm line 1051
eval {...} called at
/usr/local/encap/perl-5.005.3/lib/site_perl/5.005/Apache/ASP.pm line 1051
Apache::ASP::Execute('Apache::ASP=HASH(0x8359c5c)') called at
/usr/local/encap/perl-5.005.3/lib/site_perl/5.005/Apache/ASP.pm line 125
Apache::ASP::handler('Apache=SCALAR(0x8215d30)') called at /dev/null line
0
eval {...} called at /dev/null line 0
, /usr/local/encap/perl-5.005.3/lib/site_perl/5.005/Apache/ASP.pm line 1053
Script_OnEnd
ASP to Perl Program
1: package Apache::ASP::Demo; ;; no strict; ;; use vars qw($Application
$Session $Response $Server $Request); ;; sub
Apache::ASP::Demo::_home_webpages_userworld_htdocs_users_varocho1_asp_HelloWor
ld_asp____INLINE { ;; return(1) unless $_[0]; @_ = (); ;; $Response->Write('
2: <head>
3: <title>Hello World</title>
4: </head>
5:
6: Hello World! The time is '); Now $Response->Write('
7:
8: '); ;; }