This file contains hidden or 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 | |
| $sitemap = "sitemap.xml"; | |
| $startUrl = "http://php.net"; | |
| $extencions = [ | |
| ".html", | |
| ".php", | |
| "/", | |
| ]; | |
| $scanned = []; |
This file contains hidden or 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 | |
| namespace twelve; | |
| require_once 'CanMove.php'; | |
| class Car | |
| { | |
| use CanMove; |
This file contains hidden or 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 | |
| /* connect to gmail */ | |
| $hostname = '{imap.gmail.com:993/imap/ssl}INBOX'; | |
| $username = '****@gmail.com'; | |
| $password = 'PASSword'; | |
| echo "<script>console.log( 'Debug Objects: " . $username . "' ); </script>"; | |
| /* try to connect */ | |
| $items = array( |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>uniMail</title> | |
| </head> | |
| <body> | |
| <form action="mail.php" method="POST"> |
This file contains hidden or 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: lorisleiva/laravel-docker:latest | |
| before_script: | |
| - mkdir -p ~/.ssh | |
| - echo "$PACKAGE_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa | |
| - chmod 600 ~/.ssh/id_rsa | |
| - eval "$(ssh-agent -s)" | |
| - ssh-add ~/.ssh/id_rsa | |
| - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' | |
| - mysql -h $DB_HOST -u root -p$MYSQL_ROOT_PASSWORD -e "SHOW DATABASES;" |
This file contains hidden or 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 | |
| class AbstractEntity extends Entity | |
| { | |
| protected static $applyScope = true; | |
| public static function boot() | |
| { | |
| parent::boot(); | |
| if(static::$applyScope) { |
This file contains hidden or 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 | |
| // PSR-12 | |
| // где phpdoc? | |
| class Database | |
| { | |
| static private $instance = null; | |
| private $connect; | |
| private $config; |
This file contains hidden or 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
| Weekly development breakdown |
This file contains hidden or 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 | |
| $host = 'loct'; | |
| $database = 'o'; | |
| $user = 'ro'; | |
| $password = 'ro00'; | |
| $link = mysqli_connect($host, $user, $password, $database) | |
| or die("Ошибка " . mysqli_error($link)); |
This file contains hidden or 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: exileed/php-testing:7.4 | |
| variables: | |
| MYSQL_DATABASE: notification | |
| MYSQL_ROOT_PASSWORD: secret | |
| DB_HOST: mysql | |
| DB_USERNAME: root | |
| DB_PASSWORD: $MYSQL_ROOT_PASSWORD | |
| DB_DATABASE: $MYSQL_DATABASE |