I think it was for window redirects, when we already had printed header files.
Perhaps you mean <meta http-equiv="refresh"...? The other way is with JavaScript, both methods can even be combined on the same page.
isn't there a way to have something execute before the headers?
If you mean on the server side, then you'd have to delay the output of the headers; once they've been sent to the client there is no way to take it back. But in general you can execute anything you like before you send the headers.
| [reply] [d/l] |
JavaScript could be disabled though, so securest way is in code... eval worked for me in Perl, I went and searched my code and it did work.
maybe not the way it was intended but it worked for me.
| [reply] |
eval worked for me in Perl, I went and searched my code and it did work.
I'm not sure eval explains it, though, so it would be interesting to see your code. The only way I can think of at the moment that eval could be used to delay something is to delay a BEGIN block or use.
JavaScript could be disabled though, so securest way is in code...
Yes, my first example doesn't require JavaScript.
| [reply] [d/l] |
Are you just trying to remember as a mental exercise or are you stuck trying to solve some problem right now that may require a similar technique?
If the latter, perhaps if you describe the actual problem you are trying to solve right now, it would be easier than to determine what you did back then
| [reply] |
I was trying to remember, because I wanted to show someone about PHP that Perl could do it, so is there a similar way to do that in PHP... but there is not, at least, I could NOT find a way.
So, I'll just have to change what I'm doing in PHP.
The programmer that created all of that PHP died recently, so we are changing the code, but it is way to big to change it all to Perl, so leaving it php.
Big job but changing it is important, to update it to a new system.
anyhow, the eval works so different in PHP.
My best,
-Richard
| [reply] |
It was eval or something like that, right?
where if we wrap it in there, it will process that BEFORE headers?
is that right?
Sorry my brain really is trying.
| [reply] |