I've experienced a strange error the last weeks.
When I try to use the mysqli class in a cron job (located outside of the public_html folder) I get an error message.
First, the log file says
"PHP: Error parsing /usr/local/lib/php.ini on line 786"
then, later where I try to instantiate a mysqli object an error
"Fatal error: Class 'mysqli' not found in /home/tarzan/public_html/(database class I use).php on line X" where X = the line where I use "new mysqli".
The strange thing is that I works perfectly when I use the database class on the public web page.
Does anyone know what the problem is or have any idea of what I can do? It seems like I've had it since around 7th of April so it has been working before...
When I try to use the mysqli class in a cron job (located outside of the public_html folder) I get an error message.
First, the log file says
"PHP: Error parsing /usr/local/lib/php.ini on line 786"
then, later where I try to instantiate a mysqli object an error
"Fatal error: Class 'mysqli' not found in /home/tarzan/public_html/(database class I use).php on line X" where X = the line where I use "new mysqli".
The strange thing is that I works perfectly when I use the database class on the public web page.
Does anyone know what the problem is or have any idea of what I can do? It seems like I've had it since around 7th of April so it has been working before...