This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: ###### BACK-UP JOB ###### | |
@ECHO OFF | |
:: Set the constants | |
SET BACKUP_DIR=C:\path\to\_backup | |
SET TEMP_DIR=%BACKUP_DIR%\TEMP | |
SET TODAY=%DATE:~6,4%%DATE:~3,2%%DATE:~0,2% | |
SET ARCHIVE_DIR=%BACKUP_DIR%\%TODAY% | |
SET WWWROOT_NAME="ProjectName" | |
SET WWWROOT_SOURCE=C:\path\to\wwwroot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$_fp = fopen("php://stdin", "r"); | |
$inputString = fgets($_fp); // get a line of input from stdin and save it to our variable | |
// Your first line of output goes here | |
print("Hello, World.\n"); | |
// Write the second line of output |