Somebody suggested I post the source--good idea! So here it is... The header.inc file, in its entirety:
---- <html> <head> <title>Site :: Jupiter :: Europa</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="../../common/styles.css" type="text/css"> <?php // DETERMINE THE LANGUAGE FROM THE PARENT DIRECTORY // GENERATE VARIABLES FOR LANGUAGE, FILENAME AND NAME $path = explode("/",$PHP_SELF); if (!$lang) { $lang = $path[sizeof($path)-2]; } $file = $path[sizeof($path)-1]; $prename = explode(".",$file); $name = $prename[sizeof($prename)-2]; // SECURITY CHECK session_start(); if (!$PHPSESSID) { die; } elseif (!$auth) { die; } elseif ($auth != $path[sizeof($path)-2]) { die; } $language = "All Languages"; if ($lang == "en") { $language = "English"; } if ($lang == "fr") { $language = "FranÁais"; } if ($lang == "es") { $language = "EspaŇol"; } if ($lang == "de") { $language = "Deutsch"; } if ($lang == "it") { $language = "Italiano"; } $priv = 2; // CONNECT TO DATABASE $db = mysql_connect("localhost","database","password"); mysql_select_db("database",$db); // FETCH TABLE NAMES $listtables = mysql_list_tables("database",$db); // FETCH SELECTED TABLE DATA $fields = mysql_list_fields("database", $table, $db); $columns = mysql_num_fields($fields); ?> <script language="JavaScript"> <!-- function GP_popupConfirmMsg(msg) { //v1.0 document.MM_returnValue = confirm(msg); } //--> </script> </head> <body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="#000000" alink="#000000" leftmargin="20" topmargin="20" marginwidth="0" marginheight="0" background="../../common/bg.gif"> <?php if ($language) { echo "<span class=adminnormalgrey><a href=../index.php4>Europa</a></span>"; } if ($table) { echo "<span class=adminnormalgrey> : </span><span class=adminnormalgrey><a href=tables.php4>Tables</a></span>"; } ?> <p> ---- On Wednesday, January 16, 2002, at 06:01 PM, Richard Baskett wrote: > Kind of hard to say without source code for the session part.. > Although the > MySQL warnings, I got those because MySQL does not automatically start > in > OSX, if you know it's started then Im not sure, but if not.. go here to > get > the autostart utility: > > http://www.entropy.ch/software/macosx/mysql/ > > This link will have information and a link of where you can download the > utility. > > Rick > > > "The human mind is not capable of grasping the Universe. We are like a > little child entering a huge library. The walls are covered to the > ceilings > with books in many different tongues. The child knows that someone must > have > written these books. It does not know who or how. It does not > understand the > languages in which they are written. But the child notes a definite > plan in > the arrangement of the books---a mysterious order which it does not > comprehend, but only dimly suspects." - Albert Einstein > >> From: René Fournier <[EMAIL PROTECTED]> >> Date: Wed, 16 Jan 2002 17:50:06 -0700 >> To: [EMAIL PROTECTED], [EMAIL PROTECTED] >> Subject: [PHP] Mac OSX !?!?!? >> >> Can someone PLEASE explain why I get the following error message under >> OSX (PHP+MySQL), but not under Windows ME or Linux? >> >> ------------ >> Warning: Cannot send session cache limiter - headers already sent >> (output started at >> /Users/rene/Sites/smartslitters/jupiter/europa/header.inc:6) in >> /Users/rene/Sites/smartslitters/jupiter/europa/header.inc on line 19 >> >> Warning: Unable to save MySQL query result in >> /Users/rene/Sites/smartslitters/jupiter/europa/header.inc on line 44 >> >> Warning: Supplied argument is not a valid MySQL result resource in >> /Users/rene/Sites/smartslitters/jupiter/europa/header.inc on line 45 >> ------- >> >> After these lines, the pages load fine. I'm using PHP Session ID >> variables (or trying to)--they work fine as I said under other OSes, >> but >> now break under OSX. >> >> ...Rene >> --- René Fournier [EMAIL PROTECTED] >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> To contact the list administrators, e-mail: php-list- >> [EMAIL PROTECTED] >> > > > --------------------------------------------------------------------- > Before posting, please check: > http://www.mysql.com/manual.php (the manual) > http://lists.mysql.com/ (the list archive) > > To request this thread, e-mail <[EMAIL PROTECTED]> > To unsubscribe, e-mail <mysql-unsubscribe- > [EMAIL PROTECTED]> > Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]