Re: [gentoo-user] "mysql_connect() or mysql_query()" deprecated

2020-10-25 Thread Remco Rijnders
On Sun, Oct 25, 2020 at 05:24:26PM -0600, thelma wrote in 
:

The function in newer php "mysql_connect() or mysql_query()" were removed but I 
don't know starting from which version?

I'm running PHP Version 5.6.33-pl0-gentoo and these function work.
But I upgraded one of my system to php-5.6.40 and I'm getting an error:

PHP Fatal error:  Call to undefined function mysql_connect() in 
/var/www/catalog/admin/includes/functions/database.php on line 19


Hi Thelma,

I think mysql support was not removed between the two versions you
mention. The PHP website says "This extension was deprecated in PHP
5.5.0, and it was removed in PHP 7.0.0.", which would be a logical
point to do this. Could it be that your "use" flags for PHP changed?
Make sure to emerge PHP with the mysql use flag to build with mysql
database support.

I hope this helps.

Kind regards,

Remco



Re: [gentoo-user] "mysql_connect() or mysql_query()" deprecated

2020-10-25 Thread thelma
On 10/25/2020 06:30 PM, Remco Rijnders wrote:
> On Sun, Oct 25, 2020 at 05:24:26PM -0600, thelma wrote in
> :
>> The function in newer php "mysql_connect() or mysql_query()" were
>> removed but I don't know starting from which version?
>>
>> I'm running PHP Version 5.6.33-pl0-gentoo and these function work.
>> But I upgraded one of my system to php-5.6.40 and I'm getting an error:
>>
>> PHP Fatal error:  Call to undefined function mysql_connect() in
>> /var/www/catalog/admin/includes/functions/database.php on line 19
> 
> Hi Thelma,
> 
> I think mysql support was not removed between the two versions you
> mention. The PHP website says "This extension was deprecated in PHP
> 5.5.0, and it was removed in PHP 7.0.0.", which would be a logical
> point to do this. Could it be that your "use" flags for PHP changed?
> Make sure to emerge PHP with the mysql use flag to build with mysql
> database support.
> 
> I hope this helps.
> 
> Kind regards,
> 
> Remco

I'm running the osCommerce server and upgraded one of the box to apache 2.4
The server is running OK but I can not access admin:

"apache 2.4 you don't have permission to access /index.php on this server"

I disable almost everthing in server/admin/.htaccess





Re: [gentoo-user] "mysql_connect() or mysql_query()" deprecated

2020-10-26 Thread Michael
On Monday, 26 October 2020 00:48:13 GMT the...@sys-concept.com wrote:
> On 10/25/2020 06:30 PM, Remco Rijnders wrote:
> > On Sun, Oct 25, 2020 at 05:24:26PM -0600, thelma wrote in
> > 
> > :
> >> The function in newer php "mysql_connect() or mysql_query()" were
> >> removed but I don't know starting from which version?
> >> 
> >> I'm running PHP Version 5.6.33-pl0-gentoo and these function work.
> >> But I upgraded one of my system to php-5.6.40 and I'm getting an error:
> >> 
> >> PHP Fatal error:  Call to undefined function mysql_connect() in
> >> /var/www/catalog/admin/includes/functions/database.php on line 19
> > 
> > Hi Thelma,
> > 
> > I think mysql support was not removed between the two versions you
> > mention. The PHP website says "This extension was deprecated in PHP
> > 5.5.0, and it was removed in PHP 7.0.0.", which would be a logical
> > point to do this. Could it be that your "use" flags for PHP changed?
> > Make sure to emerge PHP with the mysql use flag to build with mysql
> > database support.
> > 
> > I hope this helps.
> > 
> > Kind regards,
> > 
> > Remco
> 
> I'm running the osCommerce server and upgraded one of the box to apache 2.4
> The server is running OK but I can not access admin:
> 
> "apache 2.4 you don't have permission to access /index.php on this server"
> 
> I disable almost everthing in server/admin/.htaccess

I would think this error points to an apache configuration issue rather than 
php.

signature.asc
Description: This is a digitally signed message part.