On Fri, Jun 16, 2000 at 01:40:10PM +0100, Mel mentioned:
> Don't forget the php_track_vars directive. If it's not compiled in, you
> have to explicetly put it into your PHP script
I thought that was strange. When I put in php_track_vars(); into the PHP
script above it, it didn't work. Anyway, I *think* that's working now,
though the following PHP code:
error_log("Started new page\n", 3, "/var/tmp/imp.log");
for ($i = 0 ; $i < count($HTTP_POST_VARS); ; $i++) {
error_log("Got $i far\n", 3, "/var/tmp/imp.log");
$post_out = $post_out . $HTTP_POST_VARS[$i];
}
error_log("Got these from POST: $post_out \n", 3, "/var/tmp/imp.log");
/* Set or read session */
page_open(array('sess' => 'HordeSession'));
if (isset($actionID) && $actionID == IMP_LOGIN) {
$imp = new ImpSession();
$imp->construct();
$sess->register('imp');
error_log("Did a login!\n", 3, "/var/tmp/imp.log");
} else if (!isset($imp) || !is_object($imp)) {
error_log("Already logged in - doing page close!\n", 3,
"/var/tmp/imp.log");
page_close();
error_log("Closed page. Doing header.\n", 3, "/var/tmp/imp.log");
header('Location: ' . $sess->url('login.php3'));
error_log("Sent header\n", 3, "/var/tmp/imp.log");
exit;
} else {
error_log("Unpickling\n", 3, "/var/tmp/imp.log");
$imp->unpickle();
}
Just prints out "Started new page", and that's it. Very annoying. No
errors anywhere. My TCL code that posts to this PHP page doesn't seem to
get any HTML back at all...this is getting too complex :(
Kate
--
The words of the unwary are apt to cause needless pain and bloody violence.
- Zen Master Greg
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!