DIRECTORY_SEPARATOR Её значение будет меняться в зависимоти от ОС$pli = array_unique($pli);$string = str_replace(array('!', 'a'), array('1', '@'), $string); $date = DateTime::createFromFormat($format, $Stroke, new DateTimeZone('Europe/Moscow')); if( !in_array( $type, ['voice', 'balance1', 'balance2', ...] ) ) die("Wrong type");
if( !in_array( $action, ['set', 'get', 'add'] ) ) die("Wrong action");if($type == 'balance1' || $type == 'voice' || $type == 'voice2' || $type == 'balance2')if( in_array( $type, ['balance1', 'voice', 'voice2', 'balance2') )$img_info = pathinfo( $_FILES["filename"]["name"] );
$ext = $img_info["extension"]; glob('name-[0-9]+.{jpg,gif,png}', GLOB_BRACE); echo "Testing" | mail -s "Test" test@example.com; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "/usr/sbin/sendmail -t -i"disable_functions