Quote:
Originally Posted by kh99
You could do something like this in the "Validation PHP code" for the option:
Code:
if (!empty($data))
{
return touch($data);
}
else
{
return false;
}
of course if you want to write something to the file and not just create it empty, then you could use fopen, fwrite, etc.
|
i wrote this
PHP Code:
$ourFileName = "$vbulletin->options['aglogname'];";
$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");
fclose($ourFileHandle);
which is handy, and now looking for the part that will create the file from
$vbulletin->options['aglogname'];
but only run once, i am not sure if thats possible, but i imagine that eash time i change the name in
PHP Code:
$vbulletin->options['aglogname'];
it will create the new file
i dont need to write to it, just create it