I have a recurring problem with both the stable and CVS development
versions of Embperl, where pages aren't served correctly on Apache
startup, but simply modifying the utime (date modified) settings using
perl's utime, GNU touch, or even opening and saving the file again without
changes, leads Emperl to work correctly.

I have this with several pages, but will give a short sample to
illustrate:

[- Execute( {inputfile => 'gs_banner.inc', import =>1} ); -]
[- Execute( {inputfile => 'common_funcs.inc', import => 1} ); -]
[- display_banner -]
[- gs_init -]
[- check_password -]
[- sidebar -]

     {... some code here ...}

[- display_end -]


In that example, everything BUT the code in the middle works OK (in other
words, the banner is displayed, the password is checked, the side bar is
printed but nothing is shown from the top-level page).  When I update the
utime on the top-level file, suddenly the HTML and code in the middle is
handled correctly.

Any advice on how to fix this?

I tried, as a hack, putting some code in startup.pl to update the date
modified on the files, but it doesn't help because it seems to do this too
early in the startup process.

I am using:
Apache 1.3.20 (SSL, mod_perl)
CVS Embperl
Windows 2000
ActivePerl

I had this problem w/ the stable Embperl tree, and the binary distribution
of Apache 1.3.12/mod_perl/perl.

Thanks,

David Pickens



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

Reply via email to