Re: [PHP] php pages broken after moving to a newer version

2003-02-06 Thread chip . wiegand
Jason Wong [EMAIL PROTECTED] wrote on 02/05/2003 09:38:48 PM:

 On Thursday 06 February 2003 07:13, [EMAIL PROTECTED] wrote:
 
   1) Read the changelog/history/release notes of all versions of php
   between the
   4.0.3 and up to 4.2.3
  
   2) Check the php log (turn on full error reporting).
 
  The log is 23 pages long and doesn't to all the way back to
  4.0.3. Could you perhaps give me a hint as to something else to look 
for
  in
  the log?
 
 OK, first you need to see what PHP is choking on. Only way to do 
 that is to do 
 (2) above. So once you know what errors PHP is giving out you do (1) to 
see 
 whether anything has changed to cause this behaviour.

Okay, so I have turned on all the error handling options in 
/usr/local/etc/php.ini-dist. I have purposely put an error in my 
phpinfo.php
page, it errors out in the browser, but no error log is created. My
index.php page does not load and does not provide any errors. I set the
error log to go into the /tmp directory, after trying /var/log and also
my own home directory, it just will not be created in any of them.

 NB if PHP doesn't give any errors, then it would suggest to me that your 
code 
 logic is broken.

If the page works fine in php-4.0.3 then I don't see how it can be broken.
This is frustrating. You can see the page at the link below.
I have pasted my /usr/local/etc/php.ini-dist below. If it would help I can
also add my index.php that is having problems...
Regards,
--
Chip W
www.simradusa.com

[PHP]

;;;
; WARNING ;
;;;
; This is the default settings file for new PHP installations.
; By default, PHP installs itself with a configuration suitable for
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should be taken
; before going online with your site, please consult php.ini-recommended
; and http://php.net/manual/en/security.php.


;;;
; About this file ;
;;;
; This file controls many aspects of PHP's behavior.  In order for PHP to
; read it, it must be named 'php.ini'.  PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory.  The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably 
guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from 
FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or 
M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an 
expression
; (e.g. E_ALL  ~E_NOTICE), or a quoted string (foo).
;
; Expressions in the INI file are limited to bitwise operators and 
parentheses:
; |bitwise OR
; bitwise AND
; ~bitwise NOT
; !boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after the 
equal
; sign, or by using the None keyword:
;
;  foo = ; sets foo to an empty string
;  foo = none; sets foo to an empty string
;  foo = none  ; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend 
extension),
; you may only use these constants *after* the line that loads the 
extension.
;
; All the values in the php.ini-dist file correspond to the builtin
; defaults (that is, if no php.ini is used, or if you delete these lines,
; the builtin defaults will be identical).



; Language Options ;


; Enable the PHP scripting language engine under Apache.
engine = On

; Allow the ? tag.  Otherwise, only ?php and script tags are 
recognized.
short_open_tag = On

; Allow ASP-style % % tags.
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
precision=  12

; Enforce year 2000 compliance (will cause problems with non-compliant 
browsers)
y2k_compliance = Off

; Output buffering allows you to send header lines (including cookies) 
even
; after you send body content, at the price of slowing PHP's output layer 
a
; bit.  You can enable output buffering during runtime by calling the 
output
; buffering functions.  You can also enable output buffering for all files 
by
; setting this directive to On.  If you wish to limit the size of the 
buffer
; to a certain size - you can use a maximum number of bytes instead of 

Re: [PHP] php pages broken after moving to a newer version

2003-02-06 Thread Goetz Lohmann
Chip Wiegand schrieb:
 Jason Wong [EMAIL PROTECTED] wrote on 02/05/2003 09:38:48 PM:
 
 
On Thursday 06 February 2003 07:13, [EMAIL PROTECTED] wrote:


1) Read the changelog/history/release notes of all versions of php
between the
4.0.3 and up to 4.2.3

2) Check the php log (turn on full error reporting).

The log is 23 pages long and doesn't to all the way back to
4.0.3. Could you perhaps give me a hint as to something else to look 
 
 for
 
in
the log?

OK, first you need to see what PHP is choking on. Only way to do 
that is to do 
(2) above. So once you know what errors PHP is giving out you do (1) to 
 
 see 
 
whether anything has changed to cause this behaviour.
 
 
 Okay, so I have turned on all the error handling options in 
 /usr/local/etc/php.ini-dist. I have purposely put an error in my 
 phpinfo.php
 page, it errors out in the browser, but no error log is created. My
 index.php page does not load and does not provide any errors. I set the
 error log to go into the /tmp directory, after trying /var/log and also
 my own home directory, it just will not be created in any of them.

change php.ini NOT php.ini-dist which not will be loaded !!!
and be sure you change the php.ini which is used (maybe there might be
more than one php.ini in your system but only one is use ... find this
out with phpinfo !)

[phpinfo.php]
?php
   phpinfo();
?


-- 
 @  Goetz Lohmann, Germany   |   Web-Developer  Sys-Admin
\/  --
()  He's the fellow that people wonder what he does and
||  why the company needs him, until he goes on vacation.


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




Re: [PHP] php pages broken after moving to a newer version

2003-02-06 Thread chip . wiegand
Goetz Lohmann [EMAIL PROTECTED] wrote on 02/06/2003 08:09:19 AM:

 Chip Wiegand schrieb:

  Okay, so I have turned on all the error handling options in 
  /usr/local/etc/php.ini-dist. I have purposely put an error in my 
  phpinfo.php
  page, it errors out in the browser, but no error log is created. My
  index.php page does not load and does not provide any errors. I set 
the
  error log to go into the /tmp directory, after trying /var/log and 
also
  my own home directory, it just will not be created in any of them.
 
 change php.ini NOT php.ini-dist which not will be loaded !!!

Thanks so much. I copied that file to php.ini and now all is well.
--
Chip

 and be sure you change the php.ini which is used (maybe there might be
 more than one php.ini in your system but only one is use ... find this
 out with phpinfo !)
 
 [phpinfo.php]
 ?php
phpinfo();
 ?
 
 
 -- 
  @  Goetz Lohmann, Germany   |   Web-Developer  Sys-Admin
 \/  --
 ()  He's the fellow that people wonder what he does and
 ||  why the company needs him, until he goes on vacation.
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


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




Re: [PHP] php pages broken after moving to a newer version

2003-02-06 Thread Jason Wong
On Thursday 06 February 2003 23:56, [EMAIL PROTECTED] wrote:

 Okay, so I have turned on all the error handling options in
 /usr/local/etc/php.ini-dist. 

As someone has already pointed out, that file should be 'php.ini', not 
'php.ini-dist'.

 I have purposely put an error in my
 phpinfo.php
 page, it errors out in the browser, but no error log is created. My
 index.php page does not load and does not provide any errors. I set the
 error log to go into the /tmp directory, after trying /var/log and also
 my own home directory, it just will not be created in any of them.

The directory which the log file goes into needs to have 'wx' permissions for 
the user that the webserver runs as.

  NB if PHP doesn't give any errors, then it would suggest to me that your

 code

  logic is broken.

 If the page works fine in php-4.0.3 then I don't see how it can be broken.
 This is frustrating. You can see the page at the link below.
 I have pasted my /usr/local/etc/php.ini-dist below. If it would help I can
 also add my index.php that is having problems...

Unfortunately, things do change between versions which can break some code. 
Without knowing what errors you're having it's going to be difficult to start 
debugging.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
life, n.:
Learning about people the hard way -- by being one.
*/


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




[PHP] php pages broken after moving to a newer version

2003-02-05 Thread chip . wiegand
I have a web site on a server running 
freebsd-4.2/mysql-3.23.10/php-4.0.3pl1.
I am replacing that machine with a new box running 
freebsd-4.7/mysql-3.23.52/php-4.2.3.
After copying the web site to the new server some pages no longer include 
the
'include' pages. I am using php frames. I load the index page, it's just 
blank, white.
I can load the included pages manually through the url and they load okay. 
I am 
wondering if there is something in the php config file I need to set for 
the include path,
but when I was in that file I didn't see any such setting, like in the 
earlie versions of
php. Any suggestions?
Regards,
--
Chip Wiegand
Computer Services
Simrad, Inc
www.simradusa.com
[EMAIL PROTECTED]

There is no reason anyone would want a computer in their home.
 --Ken Olson, president, chairman and founder of Digital Equipment 
Corporation, 1977
 (Then why do I have 8? Somebody help me!)

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




Re: [PHP] php pages broken after moving to a newer version

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 04:41, [EMAIL PROTECTED] wrote:
 I have a web site on a server running
 freebsd-4.2/mysql-3.23.10/php-4.0.3pl1.
 I am replacing that machine with a new box running
 freebsd-4.7/mysql-3.23.52/php-4.2.3.
 After copying the web site to the new server some pages no longer include
 the
 'include' pages. I am using php frames. I load the index page, it's just
 blank, white.
 I can load the included pages manually through the url and they load okay.
 I am
 wondering if there is something in the php config file I need to set for
 the include path,
 but when I was in that file I didn't see any such setting, like in the
 earlie versions of
 php.

1) Read the changelog/history/release notes of all versions of php between the 
4.0.3 and up to 4.2.3

2) Check the php log (turn on full error reporting).

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Woodward's Law:
A theory is better than its explanation.
*/


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




Re: [PHP] php pages broken after moving to a newer version

2003-02-05 Thread chip . wiegand
Jason Wong [EMAIL PROTECTED] wrote on 02/05/2003 12:49:16 PM:

 On Thursday 06 February 2003 04:41, [EMAIL PROTECTED] wrote:
  After copying the web site to the new server some pages no longer 
include
  the
  'include' pages. I am using php frames. I load the index page, it's 
just
  blank, white.
  I can load the included pages manually through the url and they load 
okay.
  I am
  wondering if there is something in the php config file I need to set 
for
  the include path,
  but when I was in that file I didn't see any such setting, like in the
  earlie versions of
  php.
 
 1) Read the changelog/history/release notes of all versions of php 
 between the 
 4.0.3 and up to 4.2.3
 
 2) Check the php log (turn on full error reporting).

I checked the change log for all instances of 'include' but found nothing
relevant. The log is 23 pages long and doesn't to all the way back to 
4.0.3. Could you perhaps give me a hint as to something else to look for 
in
the log?

--
Chip

 -- 
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-general
 --
 /*
 Woodward's Law:
A theory is better than its explanation.
 */
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
 


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




Re: [PHP] php pages broken after moving to a newer version

2003-02-05 Thread Jason Wong
On Thursday 06 February 2003 07:13, [EMAIL PROTECTED] wrote:

  1) Read the changelog/history/release notes of all versions of php
  between the
  4.0.3 and up to 4.2.3
 
  2) Check the php log (turn on full error reporting).

 The log is 23 pages long and doesn't to all the way back to
 4.0.3. Could you perhaps give me a hint as to something else to look for
 in
 the log?

OK, first you need to see what PHP is choking on. Only way to do that is to do 
(2) above. So once you know what errors PHP is giving out you do (1) to see 
whether anything has changed to cause this behaviour.

NB if PHP doesn't give any errors, then it would suggest to me that your code 
logic is broken.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
Consider the postage stamp: its usefulness consists in the ability to
stick to one thing till it gets there.
-- Josh Billings
*/


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




Re: [PHP] php pages broken after moving to a newer version

2003-02-05 Thread Bobby Patel
try looking at the status of register_globals on both versions.
Chip Wiegand [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Jason Wong [EMAIL PROTECTED] wrote on 02/05/2003 12:49:16 PM:

  On Thursday 06 February 2003 04:41, [EMAIL PROTECTED] wrote:
   After copying the web site to the new server some pages no longer
 include
   the
   'include' pages. I am using php frames. I load the index page, it's
 just
   blank, white.
   I can load the included pages manually through the url and they load
 okay.
   I am
   wondering if there is something in the php config file I need to set
 for
   the include path,
   but when I was in that file I didn't see any such setting, like in the
   earlie versions of
   php.
 
  1) Read the changelog/history/release notes of all versions of php
  between the
  4.0.3 and up to 4.2.3
 
  2) Check the php log (turn on full error reporting).

 I checked the change log for all instances of 'include' but found nothing
 relevant. The log is 23 pages long and doesn't to all the way back to
 4.0.3. Could you perhaps give me a hint as to something else to look for
 in
 the log?

 --
 Chip

  --
  Jason Wong - Gremlins Associates - www.gremlins.biz
  Open Source Software Systems Integrators
  * Web Design  Hosting * Internet  Intranet Applications Development *
  --
  Search the list archives before you post
  http://marc.theaimsgroup.com/?l=php-general
  --
  /*
  Woodward's Law:
 A theory is better than its explanation.
  */
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 




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