I'm using PHP to create this config file to make an executable and it works fine when the file name doesn't have any spaces but when a file have spaces it doesn't work.
the file name is inside the $readyFile variable.
What can i do to fix this ?
$content = ";!@Install@!UTF-8!
Title=\"Auto-Extract\"
ExecuteFile=\"Runner.exe\"
ExecuteParameters=\"--exe 2999.exe --file $readyFile\"
;!@InstallEnd@!";
$fp = fopen("config.txt","wb");
fwrite($fp,$content);
fclose($fp);
Thanks