#!/usr/bin/env php 10) { #chmod("/var/www/app-https/html/bcweb/dining/hours/".$fileis,0666); #$pathis = "/var/www/app-https/html/bcweb/dining/hours/".$fileis; $pathis = "/var/www/app-https/html/bcweb/dining/hours/diningHours.json"; $file = fopen($pathis, "w"); fwrite($file, $str); fclose($file); echo "https://bcweb.bc.edu/dining/hours/".$fileis." Created"; } else { echo "No data in the database".$str; }