this issue for days now.
Here is the code...
}
public function sendSms($to,$text){
$basic = BasicSetting::first();
$appi = $basic->smsapi;
$text = urlencode($text);
$appi = str_replace("{{number}}",$to,$appi);
$appi = str_replace("{{message}}",$text,$appi);
$result = file_get_contents($appi);
}
public function sendContact($email,$name,$subject,$text,$phone)
{
$basic = BasicSetting::first();
$body = $basic->email_body;
$mail_val = [
'email' => $email,
'name' => $name,
'g_email' => $>from_email,
'g_title' => $basic->title,
'subject' => 'Contact Message - '.$subject,
];
And this is the error message
file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0
Please how do I fix this since its a server issue and I can't turn it on from the server end.
How can I rewrite the file-get-contents using cURL?
Thanks
enable allow_url_fopen module in your php configuration.
Обсуждают сегодня