Re: [PHP] upgrade issues

2003-02-06 Thread Jason Sheets
It looks like your code is using register globals which are turned off
by default in PHP 4.2 and greater.  You can either modify your code to
use the PHP super globals or turn register globals back on (you can do
this in php.ini or via an httpd.conf/.htaccess).

Jason
On Thu, 2003-02-06 at 08:12, Brian V Bonini wrote:
> What's wrong with this snippet of code that would make it stop working
> after upgrading from 4.0.6 to 4.3.0
> 
> 
>  
> if (!$id) {
> include "pagetop.inc.php";
> }
> if ($id == 1) {
> $title = "xxx";
> include "pagetop.inc.php";
> ?>
> Stuff
> 
> 
> 
> 
> 
> 
>  './configure' '--with-apxs=/usr/local/www/bin/apxs'
> '--with-config-file-path=/usr/local/www/etc' '--enable-versioning'
> '--with-system-regex' '--disable-debug' '--enable-track-vars'
> '--with-gd=/usr/local' '--with-freetype-dir=/usr/local'
> '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-zlib'
> '--with-imap=/usr/local' '--with-mysql=/usr/local'
> '--with-imap=/usr/local' '--prefix=/usr/local/www' 'i386--freebsd4.4'
> 
> 
> 
> -- 
> 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] Upgrade issues

2002-11-25 Thread Chris Knipe
All files are owened by my Apache user + Group, set to rw access on files
and rwx on directories...

I do a chown + chmod on my web server's tree every few minutes via cron for
my development system.

Just to proove my point...

root@netsonic:~# ls -l
/usr/local/www/v-webs/games.savage.za.org/html/index.php
-rw-r-  1 www  www  2512 Nov 24 22:16
/usr/local/www/v-webs/games.savage.za.org/html/index.php
root@netsonic:~# cat /usr/local/etc/apache/httpd.conf|grep User
User www



- Original Message -
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Monday, November 25, 2002 8:19 PM
Subject: Re: [PHP] Upgrade issues


> Check the owners of directories and files, they must be the same as for
> /usr/local/www/v-webs/games.savage.za.org/html/index.php, then it should
> work under
> safe mode too.
>
>
> Chris Knipe wrote:
>
> >>>>>if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php"))
> >>>>>
> >>>>>
> >{
> >
> >
> >>>>>$modpath = "themes/$ThemeSel/";
> >>>>>}
> >>>>>
> >>>>>I don't get it?
> >>>>>
> >>>>>Warning: Unable to access themes/DeepBlue/modules/News/index.php in
> >>>>>/usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46
> >>>>>
> >>>>>Line 46 is the if statement
> >>>>>
> >>>>>
> >>>>If you have using a new php.ini file, perhaps you can compare it with
> >>>>
> >>>>
> >an
> >
> >
> >>>old
> >>>
> >>>
> >>>>one and see if there's anything different--might give you a hint.
> >>>>
> >>>>
> >>>Yeah, and no.  It's FreeBSD-Ports, my php.ini is unchanged.  FreeBSD
> >>>installs the new / updated ini files as ini-dist, so hence, nothing on
> >>>
> >>>
> >my
> >
> >
> >>>settings has changed.  I did also check to verify this, and it is
indeed
> >>>
> >>>
> >>the
> >>
> >>
> >>>correct ini file, with the correct settings...
> >>>
> >>>
> >>>
> >>>>But then again, perhaps the problem is somewhere else... (i.e. file is
> >>>>
> >>>>
> >>not
> >>
> >>
> >>>>there, permissions, etc.)
> >>>>
> >>>>
> >>>Yes the file does not exist.  But isn't that why file_exists() is
there?
> >>>
> >>>
> >>Right, I might be typing faster than I am thinking... :)
> >>
> >>Still, just make sure that PHP is using the php.ini file that you think
> >>
> >>
> >it's
> >
> >
> >>using. The file that _you_ check didn't change but _php_ might be
looking
> >>somewhere else... Of course, I could be wrong--haven't used
> >>FreeBSD/Ports--only linux.
> >>
> >>
> >
> >As ridiculous as this sounds...
> >
> >Turning of safe mode made the warning go away.  Now, I guess the question
> >is, 1) is this a bug in the file_exists() function, or 2) does the
default
> >warning levels increase when operating under safe mode?
> >
> >Either way, this never happened to me before, and is only now happening
> >since upgrading from 4.2.1 to 4.2.2...
> >
> >Rather peculiar I think...
> >
> >--
> >me
> >
> >
> >
> >
>
>
> --
> 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] Upgrade issues

2002-11-25 Thread Marek Kilimajer
Check the owners of directories and files, they must be the same as for
/usr/local/www/v-webs/games.savage.za.org/html/index.php, then it should 
work under
safe mode too.


Chris Knipe wrote:

   if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php"))
 

{
 

   $modpath = "themes/$ThemeSel/";
   }

I don't get it?

Warning: Unable to access themes/DeepBlue/modules/News/index.php in
/usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46

Line 46 is the if statement
 

If you have using a new php.ini file, perhaps you can compare it with
   

an
 

old
 

one and see if there's anything different--might give you a hint.
   

Yeah, and no.  It's FreeBSD-Ports, my php.ini is unchanged.  FreeBSD
installs the new / updated ini files as ini-dist, so hence, nothing on
 

my
 

settings has changed.  I did also check to verify this, and it is indeed
 

the
   

correct ini file, with the correct settings...

 

But then again, perhaps the problem is somewhere else... (i.e. file is
   

not
   

there, permissions, etc.)
   

Yes the file does not exist.  But isn't that why file_exists() is there?
 

Right, I might be typing faster than I am thinking... :)

Still, just make sure that PHP is using the php.ini file that you think
   

it's
 

using. The file that _you_ check didn't change but _php_ might be looking
somewhere else... Of course, I could be wrong--haven't used
FreeBSD/Ports--only linux.
   


As ridiculous as this sounds...

Turning of safe mode made the warning go away.  Now, I guess the question
is, 1) is this a bug in the file_exists() function, or 2) does the default
warning levels increase when operating under safe mode?

Either way, this never happened to me before, and is only now happening
since upgrading from 4.2.1 to 4.2.2...

Rather peculiar I think...

--
me


 



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




Re: [PHP] Upgrade issues

2002-11-25 Thread Chris Knipe
> > > > if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php"))
{
> > > > $modpath = "themes/$ThemeSel/";
> > > > }
> > > >
> > > > I don't get it?
> > > >
> > > > Warning: Unable to access themes/DeepBlue/modules/News/index.php in
> > > > /usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46
> > > >
> > > > Line 46 is the if statement
> > >
> > > If you have using a new php.ini file, perhaps you can compare it with
an
> > old
> > > one and see if there's anything different--might give you a hint.
> >
> > Yeah, and no.  It's FreeBSD-Ports, my php.ini is unchanged.  FreeBSD
> > installs the new / updated ini files as ini-dist, so hence, nothing on
my
> > settings has changed.  I did also check to verify this, and it is indeed
> the
> > correct ini file, with the correct settings...
> >
> > > But then again, perhaps the problem is somewhere else... (i.e. file is
> not
> > > there, permissions, etc.)
> >
> > Yes the file does not exist.  But isn't that why file_exists() is there?
>
> Right, I might be typing faster than I am thinking... :)
>
> Still, just make sure that PHP is using the php.ini file that you think
it's
> using. The file that _you_ check didn't change but _php_ might be looking
> somewhere else... Of course, I could be wrong--haven't used
> FreeBSD/Ports--only linux.

As ridiculous as this sounds...

Turning of safe mode made the warning go away.  Now, I guess the question
is, 1) is this a bug in the file_exists() function, or 2) does the default
warning levels increase when operating under safe mode?

Either way, this never happened to me before, and is only now happening
since upgrading from 4.2.1 to 4.2.2...

Rather peculiar I think...

--
me


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




Re: [PHP] Upgrade issues

2002-11-25 Thread @ Edwin

"Chris Knipe" <[EMAIL PROTECTED]> wrote:

> > > if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) {
> > > $modpath = "themes/$ThemeSel/";
> > > }
> > >
> > > I don't get it?
> > >
> > > Warning: Unable to access themes/DeepBlue/modules/News/index.php in
> > > /usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46
> > >
> > > Line 46 is the if statement
> >
> > If you have using a new php.ini file, perhaps you can compare it with an
> old
> > one and see if there's anything different--might give you a hint.
>
> Yeah, and no.  It's FreeBSD-Ports, my php.ini is unchanged.  FreeBSD
> installs the new / updated ini files as ini-dist, so hence, nothing on my
> settings has changed.  I did also check to verify this, and it is indeed
the
> correct ini file, with the correct settings...
>
> > But then again, perhaps the problem is somewhere else... (i.e. file is
not
> > there, permissions, etc.)
>
> Yes the file does not exist.  But isn't that why file_exists() is there?

Right, I might be typing faster than I am thinking... :)

Still, just make sure that PHP is using the php.ini file that you think it's
using. The file that _you_ check didn't change but _php_ might be looking
somewhere else... Of course, I could be wrong--haven't used
FreeBSD/Ports--only linux.

Perhaps, somebody else knows the answer...

- E

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




Re: [PHP] Upgrade issues

2002-11-25 Thread Chris Knipe
> > if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) {
> > $modpath = "themes/$ThemeSel/";
> > }
> >
> > I don't get it?
> >
> > Warning: Unable to access themes/DeepBlue/modules/News/index.php in
> > /usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46
> >
> > Line 46 is the if statement
>
> If you have using a new php.ini file, perhaps you can compare it with an
old
> one and see if there's anything different--might give you a hint.

Yeah, and no.  It's FreeBSD-Ports, my php.ini is unchanged.  FreeBSD
installs the new / updated ini files as ini-dist, so hence, nothing on my
settings has changed.  I did also check to verify this, and it is indeed the
correct ini file, with the correct settings...

> But then again, perhaps the problem is somewhere else... (i.e. file is not
> there, permissions, etc.)

Yes the file does not exist.  But isn't that why file_exists() is there?

--
me


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




Re: [PHP] Upgrade issues

2002-11-25 Thread @ Edwin
Hello,

"Chris Knipe" <[EMAIL PROTECTED]> wrote:

> Lo all,
>
> I upgraded from PHP 4.2.1 to 4.2.2, and now all of a sudden the following
> code is generating a WARNING???
>
>
> if (file_exists("themes/$ThemeSel/modules/$name/$mod_file.php")) {
> $modpath = "themes/$ThemeSel/";
> }
>
> I don't get it?
>
> Warning: Unable to access themes/DeepBlue/modules/News/index.php in
> /usr/local/www/v-webs/games.savage.za.org/html/index.php on line 46
>
> Line 46 is the if statement

If you have using a new php.ini file, perhaps you can compare it with an old
one and see if there's anything different--might give you a hint.

Or, you might want to check the manual about error reporting and see what
you can do about it:

  http://www.php.net/manual/en/function.error-reporting.php

But then again, perhaps the problem is somewhere else... (i.e. file is not
there, permissions, etc.)

HTH,

- E

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