I have a .php script that is designed to periodically (cron job), read a MySQL table for new entries and send notifications to Google's Firebase Cloud messaging, for distribution to the appropriate mobile devices. Reading from the database works just fine, but when I prepare to send the message to FCM (Firebase Cloud Messaging), from within the php script sendNotification.php, I receive the following error: "Fatal error: Call to undefined function curl_init() in /web/rky/myremotespy.com/test/rpi_ht/sendNotification.php on line 86." This exact same php script (no changes), used to work in early 2018. I've seen another post in this forum suggesting that there are needed/required lines in .htaccess, there IS a .htaccess in the same directory as sendNotification.php with the following contents:
Action php-cgi /cgi-bin/php55
AddHandler php-cgi .php
From what I can tell from looking at /opt/php53/lib/php.ini ( as /opt/php53/bin/php -i indicated that was the config file being used ), it appears that the curl_php extension is not loaded.
What do I need to do to be able to use the curl library in my php script, in a sub directory of a domain hosted by Sonic ?
Thank You
Robert Young
Action php-cgi /cgi-bin/php55
AddHandler php-cgi .php
From what I can tell from looking at /opt/php53/lib/php.ini ( as /opt/php53/bin/php -i indicated that was the config file being used ), it appears that the curl_php extension is not loaded.
What do I need to do to be able to use the curl library in my php script, in a sub directory of a domain hosted by Sonic ?
Thank You
Robert Young