I\'ve seen this a lot: $fp = fopen($filepath, \"w\") or die(); But I can\'t seem to find any real documentation on this \"or\" syntax. It\'s obvious enough what
$fp = fopen($filepath, \"w\") or die();
It's a logical operator and can be used in any logical expression.
http://php.net/manual/en/language.operators.logical.php