Edward Peschko wrote:
let me rephrase the question - is there a particular point inside of index.php that I could snapshot, which would have all the variables needed for a given index.php query, and could I take these variables, set the appropriate CGI environment up, and then run it seamlessly?
At any point you could snarf data from $_GET, $_POST, $_COOKIES, and $_SERVER and store it for later use.
Or is there going to be extra-environment information that I'm going to have to acquire (and massage) in order to make this work? I'm primarily thinking cookies here..
A login session will store some information using PHP's session support, which is keyed by a cookie. By default, PHP stores session data in temporary files. See http://www.php.net/session
I'll give it a whirl, but I'm skeptical. I just tried it, got a '>' as a prompt, hit one question mark (to get help) and it seemed to spawn an infinite loop of '>' prompts.
"?" is not a valid PHP statement.
of course, but I would think that the appropriate response would be to emit a syntax error, not an infinite loop of '>'s . This just leads me to think that it might be not the most 'well-traveled' debugging environment.
You mean like this?
brion@rdaneel:/var/www/head/maintenance $ php eval.php
?
Parse error: parse error, unexpected '?' in /var/www/head/maintenance/eval.php(24) : eval()'d code on line 1 bool(false)
exit
brion@rdaneel:/var/www/head/maintenance $
-- brion vibber (brion @ pobox.com)