I have purchased a wordpress theme however I am having issues with it because my hosting company don’t support the use of the fopen command, however I am an extreme noobie and am not sure how to change this code to use curl instead.
function parseFonts(){
// Open the text file and get the content
$filename = get_template_directory_uri()."/fonts/google_fonts.txt";
$handle = fopen($filename, ‘r’);
$readedData = stream_get_contents($handle);//fread($handle, filesize($filename));
$fontsArr = explode("\n", $readedData);
fclose($handle);
return $fontsArr;
}
Any help would be greatly appreciated