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 | |
if(isset($_POST['email'])) { | |
$myfile = fopen("base.txt", "a") or die("Unable to open file!"); | |
$txt = $_POST['email'] . "\n"; | |
fwrite($myfile, $txt); | |
fclose($myfile); | |
} | |
?> |
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
image: smartapps/bitbucket-pipelines-php-mysql:stretch | |
pipelines: | |
default: | |
- step: | |
script: | |
- service mysql start | |
- mysql -h localhost --user=root --password=root -e "CREATE DATABASE tests;" | |
- composer install | |
- php -r "file_exists('.env') || copy('.env.tests', '.env');" |
NewerOlder