-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I just installed 2.0b5 on remote machine that I have no root access to.
it runs Apache/1.3.6 (Unix) with all required by Embperl modules compiled in

That leaves me with an option of running EmbperlObject through epocgi.pl

.htaccess: 
AddType text/html .emb
<Files *.emb>
Action text/html /cgi-bin/epocgi.pl
</Files>

base.emb:
<HTML>
<HEAD>
<TITLE>Some title</TITLE>
</HEAD>
[-
$req = shift;
$req->{webmaster} = 'John Smith'
- -]
<BODY>
[- Execute ('*') -]
</BODY>
</HTML>

file t.emb I execute is just 

[+ 2+2 +]

and get 

4 $VAR1 = bless( { 'webmaster' => 'John Smith' }, 'HTML::Embperl::DOC::_2' ); 
HTTP/1.1 200 OK Date: Fri, 11 Jan 2002 18:23:44 GMT
Server: Apache/1.3.6 (Unix) PHP/4.0.3pl1 mod_gzip/1.3.19.1a mod_ssl/2.3.6 
OpenSSL/0.9.3a Content-Length: 2 Keep-Alive:
timeout=10, max=99 Connection: Keep-Alive Content-Type: text/html 4 $VAR1 = 
bless( { 'webmaster' => 'John Smith' },

which looks to me like header is spit out after page is processed

In 1.3.4 all works just fine with the same epocgi.pl, which I added following 
2 lines to:

$req{'object_base'} = 'base.emb';
$req{'object_stopdir'} = '/home/perlnow/public_html';

Sometimes I get '>' at the end of output, but I don't have any loose '>' in 
my files and couldn't find anything in EmbperlObject::Execute.


- -- 
Dimitri Ostapenko,
Ostapenko Consulting Inc.
perl/java/internet
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8Py/lZ9+Y+uWmwdgRAqF3AJ44wPcgIR5qbmYxZxdtERF+Bz4QvQCcC3IP
vhxQ1sPlrmTscOQtF8K+izc=
=oehC
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to