Re: [PHP] PHP upgrade... issues???
[EMAIL PROTECTED] wrote: Phew! However, While reading about php upgrades, I've got the impression that version 5, will not support MySQL by default... Does that mean that I'll have to ensure my hosts install an extra module, or worse case senario, I'll have to re-write all my pages, to take new code into effect... I' know I'm sounding liek a worried mother hen, but I can't seem to find confirmation on line?!?! 4.3.8 is not version 5.0.0. Mysql support stays the same, and I'm sure your host will not dump mysql support even if it wasn't. 4.3.8 is merely a bugfix version. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP upgrade... issues???
Phew! However, While reading about php upgrades, I've got the impression that version 5, will not support MySQL by default... Does that mean that I'll have to ensure my hosts install an extra module, or worse case senario, I'll have to re-write all my pages, to take new code into effect... I' know I'm sounding liek a worried mother hen, but I can't seem to find confirmation on line?!?! Ho hum, nearly Friday eh? "John W. Holmes" <[EMAIL PROTECTED]> 15/07/2004 17:40 To [EMAIL PROTECTED] cc [EMAIL PROTECTED] Subject Re: [PHP] PHP upgrade... issues??? [EMAIL PROTECTED] wrote: > I've just got this mail from my host... > = > Dear customer, > > This email is sent to inform you that we'll upgrade the PHP version on > your > server to the latest stable version 4.3.8 within the next hour. > = > > Are there any issues that I need to panic about...? > I'm off to google now, but am just having a panic attack, and hope that I > can sit back knowing that my PHP pages will still work... I wouldn't be too worried. PHP 4.3.8 Changelog: http://us2.php.net/ChangeLog-4.php -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals â www.phparch.com * The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. ***
Re: [PHP] PHP upgrade... issues???
[EMAIL PROTECTED] wrote: This email is sent to inform you that we'll upgrade the PHP version on your server to the latest stable version 4.3.8 within the next hour. = Are there any issues that I need to panic about...? Don't worry about, I'm sure you will have any problem as it only fixes some security bugs. Mine is upgrading today alto to 4.3.8 (From 4.3.7), and before where many, many upgrade versions. My only problem is that I cannot test pages on my preview server, during this time. My only worry is my pub being opened to have a beer with friend ;) Regards, Jordi Canals -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP upgrade... issues???
[EMAIL PROTECTED] wrote: I've just got this mail from my host... = Dear customer, This email is sent to inform you that we'll upgrade the PHP version on your server to the latest stable version 4.3.8 within the next hour. = Are there any issues that I need to panic about...? I'm off to google now, but am just having a panic attack, and hope that I can sit back knowing that my PHP pages will still work... I wouldn't be too worried. PHP 4.3.8 Changelog: http://us2.php.net/ChangeLog-4.php -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP upgrade... issues???
I've just got this mail from my host... = Dear customer, This email is sent to inform you that we'll upgrade the PHP version on your server to the latest stable version 4.3.8 within the next hour. = Are there any issues that I need to panic about...? I'm off to google now, but am just having a panic attack, and hope that I can sit back knowing that my PHP pages will still work... Cheers... Tris... * The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail, and delete the original message. *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] upgrade issues
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
[PHP] upgrade issues
What's wrong with this snippet of code that would make it stop working after upgrading from 4.0.6 to 4.3.0 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
Re: [PHP] Upgrade issues
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
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
> > > > 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
"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
> > 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
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
[PHP] Upgrade issues
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 :/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php