I think I'm trying to go the other way.
In my cgi app, I have a list, an array, of several file names such as This.pdf, That.pdf, etc.. I know where they are so I have the path. I can pass the list of files as is to PHP separately or I can add the path to each file name.
It seems that putting them together would be best before I pass it to PHP., so each would become /Library/WebServer/Documents/TheSite/TheFiles/ThisFile.pdf
In my cgi I can very easily format it with quotes, commas or whatever, but I just can't find the syntax to get the same end result in the PHP process.
So I'm looking for the syntax that would make this list:
/Library/WebServer/Documents/TheSite/TheFiles/ThisFile.pdf
/Library/WebServer/Documents/TheSite/TheFiles/ThatFile.pdf
become the same as $files after being run through this:
$path = '/Library/WebServer/Documents/TheSite/TheFiles';
$files = array($path.'/ThisFile.pdf',$path.'/ThatFile.pdf');