background preloader

LAMP Stack: Using in HTML

Facebook Twitter

Collection of LAMP Development series and articles

PHP. PHP for Beginners: Building Your First Simple CMS. The Magic of PHP + MySQL It’s safe to say that nearly every website that’s up-to-date these days is using some form of content management system (CMS). While there are a ton of great free options that provide us with a CMS to power a website (WordPress, Drupal, etc.), it doesn’t hurt to peek under the hood and get a feel for how these systems work.

To get our feet wet as back-end developers, we’ll be creating a simple PHP class that will: Create a databaseConnect to a databaseDisplay a form with two fieldsSave the form data in the databaseDisplay the saved data from the database Download Files This class is intended to give you a feel for how PHP and MySQL interact together, and to show the basics of a CMS. I’ll be skipping explanations of some of the very basic programming stuff, so if at any point you feel lost, checkout the course Diving into PHP and give yourself a crash-course in PHP.

Building the Class As you can see, we’re creating one class with four variables and five methods. <! <? Php - How do I count files in a directory using jQuery. How to use php to retrieve all the file name in a specific folder. How to load a PHP page into a div with jQuery and AJAX. Uploading Videos To Mysql - PHP. Social Network Style Posting with PHP, MongoDB and jQuery - part 1. Post mechanisms similar to Facebook are nowadays very common within any application. The concept of Post-Like-Comment is familiar to everyone who ever used a social network. In this article, we will learn how to create a similar working model wherein the user will be able to post his status, like posts and comment on them. What’s more interesting is that after learning things from this article, going forward you will be able to implement a lot of other features on your own. I’ll be using PHP as the coding language, MongoDB as the database and jQuery for JavaScript operations.

There are two articles in this series. Before getting started, let us look at the final work we will develop (Fig 1 ). Download Code: Download the code provided with the article from its Github repo. Index.php : This is the main file which displays all the posts and from where the user will interact. mongo_connection.php : This file contains the common MongoDB connection code. Database Structure: Conclusion: How to create new pages automatically from a form with PHP? PHP Server Side Scripting forum at WebmasterWorld. How to do server to server ftp transfer in PHP | phpHelp.co.