Hi guys
im trying to have a file created if not exist, so far i have
PHP Code:
$ourFileName = "$vbulletin->options['thefilename']";
if (!file_exists($vbulletin->options['thefilename'] . '$ourFileName'))
{
$filename = '$ourFileName';
}
i have also tried
PHP Code:
if (!file_exists($ourFileName)) {
$ourFileName = "$vbulletin->options['thefile']";
$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");
fclose($ourFileHandle);
}
they work in some ways but not 100%, im not even sure if its the correct format for vbulletin
i know this is not 100% correct but need the variable corrected