I upload my project on Railway and got permission-error in second warning. After this i add chmod 0755 and got another error.
Everything working good in local.
Code in PHP file:
chmod('./../../assets/data/weather.json', 0755);
file_put_contents(
'./../../assets/data/weather.json', json_encode($days_data, JSON_UNESCAPED_UNICODE)
);
What should i do?
Project ID: 5124bc1b-966d-4a45-8167-856748ca92a5
#PHP file_put_contents issue
3 messages · Page 1 of 1 (latest)