Three ways to grow your traffic and capture audience
Three winning strategies for setting up Google Adsense
Build a Health Tracking App with React, GraphQL, and User Authentication
The Benefits of Using CSS Grid for Web Form Layout
Mobile Gaming: Build a Security Token Service with Object Storage Service
CSS Optimization Tools for Boosting PWA Performance
Smart Contract Safety: Best Practices & Design Patterns
CSS and PWAs: Some Tips for Building Progressive Web Apps
Real World Use of CSS with SVG
How Hitting the Books Can Help Your Business
Using CSS Transforms in the Real World
Easy and Responsive Modern CSS Grid Layout
5 Top Development Tools that Will Help You Do More in Less Time
Redesigning a Card-based Tumblr Layout with CSS Grid
Redesigning a Site to Use CSS Grid Layout
Variable Fonts: What They Are, and How to Use Them
7 of the Best Code Playgrounds
3D Transformation Functions in CSS
How to Install PHP on Windows
Why PHP?PHP remains the most widespread and popular server-side programming language on the web. It is installed by most web hosts, has a simple learning curve, close ties with the MySQL database, and an excellent collection of libraries to cut your development time. PHP may not be perfect, but it should certainly be considered for your next web application. Both Yahoo and Facebook use it with great success.
Why Install PHP Locally?Installing PHP on your development PC allows you to safely create and test a web application without affecting the data or systems on your live website. This article describes PHP installation as a module within the Windows version of Apache 2.2. Mac and Linux users will probably have it installed already.
All-in-One packagesThere are some excellent all-in-one Windows distributions that contain Apache, PHP, MySQL and other applications in a single installation file, e.g. XAMPP (including a Mac version), WampServer and Web.Developer. There is nothing wrong with using these packages, although manually installing Apache and PHP will help you learn more about the system and its configuration options.
The PHP InstallerAlthough an installer is available from php.net, I would recommend the manual installation if you already have a web server configured and running.
Java and MongoDB 4.0 Support for Multi-document ACID Transactions
This article was originally published on MongoDB. Thank you for supporting the partners who make SitePoint possible.
MongoDB 4.0 adds support for multi-document ACID transactions.
But wait... Does that mean MongoDB did not support transactions until now? No, actually MongoDB has always supported transactions in the form of single document transactions. MongoDB 4.0 extends these transactional guarantees across multiple documents, multiple statements, multiple collections, and multiple databases. What good would a database be without any form of transactional data integrity guarantee?
Before we dive in this blog post, you can find all the code and try multi-document ACID transactions here.
Step 1: Start MongoDB
Start a single node MongoDB ReplicaSet in version 4.0.0 minimum on localhost, port 27017.
If you use Docker:
- You can use
- When you are done, you can use
- If you want to connect to MongoDB with the Mongo Shell, you can use
If you prefer to start mongod manually:
mkdir /tmp/data && mongod --dbpath /tmp/data --replSet rs
mongo --eval 'rs.initiate()'
Step 2: Start Java