LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[Webdev] PHP debugging question

[Webdev] PHP debugging question

John P. Looney (Kate) jplooney-ilug at online.ie
Fri Jun 16 13:42:12 IST 2000


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




More information about the Webdev mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell