Hello everyone,

Has anyone getting trouble creating the file into the folder?

When I create the file in the root directory works fine, but when I create the file into the folder, it does not create.  The folder has permissions for rwx.

        $companyTxtFile = "txtFiles/".$companyTicker.".txt";

        getCSVFile($fileURL, $companyTxtFile);


function getCSVFile($url, $outputFile){
    $content = file_get_contents($url);
    $content = str_replace("Date,Open,High,Low,Close,Volume,Adj Close", "",$content);
    file_put_contents($outputFile, $content);

Thank you.