Hi, Wonderful piece of code, thank you.
I have a pwsh script to get the data and I then write it to a file
The script is
Install-Module PSYahooFinance
iex((iwr https://raw.githubusercontent.com/daniel0x00/PSYahooFinance/main/Get-YFStockQuote.ps1 -UseBasicParsing).content)
$data = Get-YFStockQuote -Symbol $ARGS[0] -Interval 5m -Range 1d$data
Remove-Item yahooData.txt
New-Item yahooData.txt
Set-Content yahooData.txt $data
if I run the PHP script from the command line, the yahooData.txt file is written as my user, permissions 755
If I run the script from a browser, the old file is not removed. I've tried changing the file owner to www-data but it still doesn't work.
Can you help please?