Mike, et al -- ...and then Ford, Mike [LSS] said... % % On 14 October 2003 11:26, David T-G wrote: % % > I ran a phpinfo() comparison and didn't see anything markedly % > different (except for how the output is formatted, which made things % > delightfully more challenging), but I also don't know for what I'm % > looking. I also don't know what other information I should provide, % > but I'm % > hesitant to % > bomb the list with two phpinfo() outputs :-)
[Dude, what did you do to my paragraph formatting?!?] % % Well, rather than post two complete phpinfos, can you hone it down to just those entries which *are* different. I'd particularly be looking at all the session.* entries (obviously!), as well as register_globals, and possibly variables_order. With a lot of work... diff(1) can't handle completely jumbled inputs :-/ Here, I'll just paste some sections. OLD: Configuration PHP Core Directive Local Value Master Value register_globals On On variables_order EGPCS EGPCS session Session Support enabled Directive Local Value Master Value session.auto_start Off Off session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path /tmp /tmp session.serialize_handler php php session.use_cookies On On session.use_trans_sid 1 1 NEW: Configuration PHP Core Directive Local Value Master Value register_globals On On variables_order EGPCS EGPCS session Session Support enabled Registered save handlers files user Directive Local Value Master Value session.auto_start Off Off session.bug_compat_42 On On session.bug_compat_warn On On session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_lifetime 0 0 session.cookie_path / / session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_divisor 100 100 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.name PHPSESSID PHPSESSID session.referer_check no value no value session.save_handler files files session.save_path /tmp /tmp session.serialize_handler php php session.use_cookies On On session.use_only_cookies Off Off session.use_trans_sid Off Off % % It might also help to post a (short!) fragment of the relevant code. Sure. - pagecomment.inc: ... # this will let us figure out where we are and then always source the right include stuff! # it does not work with symlinks (__FILE__ reports the *target*) # you must have a full env tree in your devel tree; we now look exclusively in $DEVELDIR if set if ( ereg("/home/sites/\.php/",__FILE__) ) # are we *somewhere* in our usual master tree? { $DEVELDIR = preg_replace("|.*/home/sites/\.php(.*)/[^/]*$|","\\1",__FILE__) ; } # get the working dir include("/home/sites/.php$DEVELDIR/includestuff.inc"); # include our various files ... if ( $pw != $passwordcom ) # no password (yet)? { if ( $pw != "" ) # is this a second try? { print "Invalid Password. Authorized access only.<br> <br>\n" ; session_unregister('pw') ; } print "Enter your password to access the comments...<br>\n" ; echo "<form method=\"post\">"; print "Password:<br> <input type=\"password\" name=\"pw\">"; print "<br><br><br><center><input type=\"submit\" value=\" ENTER \">\n" ; print "</form>\n"; exit ; # nothing else to do } ... print "</font>\n" ; print "</body>\n" ; print "</html>\n" ; session_save ; # save for later - includestuff.inc: # config settings and functions and the like foreach ( array ( "config.php" , "functions.inc" ) as $incfile ) { foreach ( array # (this could be quite long) ( "/home/sites/.php$DEVELDIR", # host-wide dir "$_SERVER[DOCUMENT_ROOT]", # web-site-wide dir getcwd() , # this job getcwd() . $gallery_dir , # special included table ) as $dir # what do we call it? ) { if ( file_exists ("$dir/$incfile") ) # is there a script file? { include ("$dir/$incfile") ; } # well, include it! } } ... # session management session_name($sname) ; # what is it? user could override session_start ; # kick things off session_register('pw') ; # site password ... % % Cheers! % % Mike Thanks & HAND :-D -- David T-G * There is too much animal courage in (play) [EMAIL PROTECTED] * society and not sufficient moral courage. (work) [EMAIL PROTECTED] -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
pgp00000.pgp
Description: PGP signature