[PHP] Re: Local version works - production breaks

2004-08-07 Thread Josh Acecool M
Did you check the phpinfo on each server, make sure your server settings are
same as local?


Andre Dubuc [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 I have re-written a very basic website to use sessions (switching to
https)
 for login to special areas of a site. After testing the site thoroughly
 locally, I uploaded the whole shebang to a unix server that runs Apache
1.3.x
 + PHP 4.3.4 + mysql.

 Almost all code broke - sessions would load, but almost every page was so
 messed up that -- well, I'm flabbergasted!

 I'm wondering, after reading a few threads on my local config whether the
 problem might lie with the Apache2 server I use locally (Mandrake special
 with Extranet). I also use an older version of PHP 4.3.1.

 I've examined both configs for differences, but can see nothing that would
 account for such an extremely messed up site. It loads locally beautifully
 (and all admin pages work) in Opera, Galeon, Mozilla, + Konqueror. Loads
with
 errors to mysql db in all others but Konqueror which does not even display
 the opening page (yet I can view source).

 Maybe this isn't the forum to ask -- but seeing that all db access is
through
 PHP -- I wonder whether anyone can point where i can start looking for the
 culprit(s).

 Any ideas, suggestions, or advice will be greatly appreciated.

 Tia,
 Andre

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Local version works - production breaks

2004-08-07 Thread Andre Dubuc
Josh,

Aside from the differences in php versions, the only difference is thta the 
local version has register_globals=off.

I'm really stumped.

Andre

On Sunday 08 August 2004 06:07 am, Josh Acecool M wrote:
 Did you check the phpinfo on each server, make sure your server settings
 are same as local?


 Andre Dubuc [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]

  Hi,
 
  I have re-written a very basic website to use sessions (switching to

 https)

  for login to special areas of a site. After testing the site thoroughly
  locally, I uploaded the whole shebang to a unix server that runs Apache

 1.3.x

  + PHP 4.3.4 + mysql.
 
  Almost all code broke - sessions would load, but almost every page was so
  messed up that -- well, I'm flabbergasted!
 
  I'm wondering, after reading a few threads on my local config whether the
  problem might lie with the Apache2 server I use locally (Mandrake special
  with Extranet). I also use an older version of PHP 4.3.1.
 
  I've examined both configs for differences, but can see nothing that
  would account for such an extremely messed up site. It loads locally
  beautifully (and all admin pages work) in Opera, Galeon, Mozilla, +
  Konqueror. Loads

 with

  errors to mysql db in all others but Konqueror which does not even
  display the opening page (yet I can view source).
 
  Maybe this isn't the forum to ask -- but seeing that all db access is

 through

  PHP -- I wonder whether anyone can point where i can start looking for
  the culprit(s).
 
  Any ideas, suggestions, or advice will be greatly appreciated.
 
  Tia,
  Andre

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Local version works - production breaks

2004-08-07 Thread Josh Acecool M
That might be something, with reg globals ON, on your server, and say you
try to get $_GET['id'] and $SESSION['id'] will be the same, they might be
overwriting themselves.

Try setting register globals to OFF on your server, its also more secure.

Andre Dubuc [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Josh,

 Aside from the differences in php versions, the only difference is thta
the
 local version has register_globals=off.

 I'm really stumped.

 Andre

 On Sunday 08 August 2004 06:07 am, Josh Acecool M wrote:
  Did you check the phpinfo on each server, make sure your server settings
  are same as local?
 
 
  Andre Dubuc [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
 
   Hi,
  
   I have re-written a very basic website to use sessions (switching to
 
  https)
 
   for login to special areas of a site. After testing the site
thoroughly
   locally, I uploaded the whole shebang to a unix server that runs
Apache
 
  1.3.x
 
   + PHP 4.3.4 + mysql.
  
   Almost all code broke - sessions would load, but almost every page was
so
   messed up that -- well, I'm flabbergasted!
  
   I'm wondering, after reading a few threads on my local config whether
the
   problem might lie with the Apache2 server I use locally (Mandrake
special
   with Extranet). I also use an older version of PHP 4.3.1.
  
   I've examined both configs for differences, but can see nothing that
   would account for such an extremely messed up site. It loads locally
   beautifully (and all admin pages work) in Opera, Galeon, Mozilla, +
   Konqueror. Loads
 
  with
 
   errors to mysql db in all others but Konqueror which does not even
   display the opening page (yet I can view source).
  
   Maybe this isn't the forum to ask -- but seeing that all db access is
 
  through
 
   PHP -- I wonder whether anyone can point where i can start looking for
   the culprit(s).
  
   Any ideas, suggestions, or advice will be greatly appreciated.
  
   Tia,
   Andre

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php