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 | |
| define('MAILGUN_URL', 'https://api.mailgun.net/v3/DOMAIN'); | |
| define('MAILGUN_KEY', 'key-123341442922'); | |
| function sendmailByMailGun($to,$toname,$mailfromname,$mailfrom,$subject,$html,$text,$tag,$replyto){ | |
| $array_data = array( | |
| 'from'=> $mailfromname .'<'.$mailfrom.'>', | |
| 'to'=>$toname.'<'.$to.'>', | |
| 'subject'=>$subject, |
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
| /** | |
| * Name: Javascript Tools | |
| * Author: Marc Hildmann | |
| * marc.hildmann@icloud.com | |
| * | |
| * | |
| * Created: 27.01.2020 | |
| * | |
| * Description: This is a growing collection of useful Javascript functions | |
| * |
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
| CREATE TABLE IF NOT EXISTS calendar ( | |
| d date UNIQUE NOT NULL, | |
| days_in_month INT NOT NULL, | |
| day_of_week INT NOT NULL, | |
| weekday TEXT NOT NULL, | |
| quarter INT NOT NULL, | |
| year INT NOT NULL, | |
| month INT NOT NULL, | |
| day INT NOT NULL | |
| ); |
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
| #!/bin/bash | |
| # macOS Web Development Setup Script | |
| # For macOS 15 Sequoia - Sets up Apache and PHP 8.4 with Sites directory | |
| # Created on: $(date) | |
| # Make it executable: chmod +x setup-webdev.sh | |
| # Run it: ./setup-webdev.sh | |
| # After running the script, you'll be able to access: | |
| # http://localhost:8080 - Your web server | |
| # http://localhost:8080/info.php - PHP info page | |
| # http://localhost:8080/test.php - A simple PHP test script |