Re: notes() from registry-php-registry
daniel ([EMAIL PROTECTED]) said something to this effect on 03/19/2001: hello all, i've got a registry script that issues a subrequest for a php page that issues a subrequest on another registry script. registry-php-registry the initial registry script sets: $r-notes("seen"= $seen); my $subr = $r-lookup_uri("test.php3"); $subr-run; *snip* The note is not available in the php or subsequent subrequests. If the subrequest is for another registry script the note works fine. Nor should it be. You need to set the note in the subrequest, or access the parent's notes table. Try replacing the first piece with: my $subr = $r-lookup_uri('test.php3'); $subr-notes('seen' = $seen); $subr-run; And the note "seen" will be present. You can't, as far as I know, access the parent request from a PHP script, just like you can't for normal CGI scripts that are run as subrequests. That's just a limitation of the model, and probably a good reason to rewrite the whole piece in mod_perl, by the way. (darren) -- It is wrong always, everywhere and for everyone to believe anything upon insufficient evidence. -- W. K. Clifford
Re: notes() from registry-php-registry
Ahh. Thanks much. darren chamberlain wrote: Nor should it be. You need to set the note in the subrequest, or access the parent's notes table. Try replacing the first piece with: my $subr = $r-lookup_uri('test.php3'); $subr-notes('seen' = $seen); $subr-run; And the note "seen" will be present. You can't, as far as I know, access the parent request from a PHP script, just like you can't for normal CGI scripts that are run as subrequests. That's just a limitation of the model, and probably a good reason to rewrite the whole piece in mod_perl, by the way. (darren) -- Daniel Bohling
notes() from registry-php-registry
Hello all, I've got a registry script that issues a subrequest for a php page that issues a subrequest on another registry script. registry-php-registry The initial registry script sets: $r-notes("seen"= $seen); my $subr = $r-lookup_uri("test.php3"); $subr-run; The php.php3 file does: ? $seen = apache_note("seen"); echo $seen; #undef virtual("/perl/other.pl"); ? other.pl: my $seen = $r-main-notes('seen'); print $seen; #undef $seen = $r-notes('seen'); print $seen; #undef The note is not available in the php or subsequent subrequests. If the subrequest is for another registry script the note works fine. Anyone know why this is or how to make the note work for php? Thanks, -- Daniel Bohling