Thursday 26 July 2018

PHP Notice: Use of undefined constant rootMP3URL - assumed rootMP3URL

I keep getting this error message PHP Notice: Use of undefined constant rootMP3URL - assumed rootMP3URL




 // Remove the PHP script name from the URL.
if ($stripScriptName) {
//$rootMP3URL = substr($rootMP3URL, 0, strrpos ($rootMP3URL, "/")); // Trim off script name itself
$webFolder = dirname($webFolder);
$options['$rootMP3URL'] = dirname('rootMP3URL');
$debugger->debug("dirname({$options['$rootMP3URL']}) = " . dirname('rootMP3URL'));
$debugger->debug("dirname($webFolder) = " . dirname($webFolder));
}

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...