jpoesen / php-course Goto Github PK
View Code? Open in Web Editor NEWAn introduction to PHP with HTML
Home Page: https://lab.github.com/everydeveloper/introduction-to-php
An introduction to PHP with HTML
Home Page: https://lab.github.com/everydeveloper/introduction-to-php
PHP is a server-side language, so in order to make your code work you must put it on either a web-server or a local server. For the purposes of this tutorial we will install a local server called WAMP (for Windows users) or MAMP (for Mac users). You can also install LAMP server, if you use a Linux.
Noticing a pattern in these names? The only difference is the operating system. The -AMP part stands for Apache, MySQL, and PHP. We are using WAMP in this turotial, but use the version that matches your OS.
Make sure you have a text editor installed before proceeding (such as Atom, Sublime Text, or Notepad++).
You will be storing the code for this project in this repository. Before we go any further, navigate to the www folder in your terminal (which should be empty now). Clone your template project into this folder, using git:git clone https://github.com/jpoesen/php-course.git
Refresh your browser, and make sure you see folder for the php-course. If it worked, close this issue for the next step.
PHP is server-side code that runs on top of a normal HTML website. This means you can use HTML and PHP together.
<!DOCTYPE html>
<html>
<head>
<title>PHP Store</title>
</head>
<body>
<?php
// Using two forward slashes we create comments in php.
// Within the php tag, we can insert values into our HTML.
echo "<h1>Welcome!</h1>";
?>
</body>
</html>
In this example, we used the "echo" command to insert an HTML header within the php tags. All of our php code will be contained in these tags.
Make sure you always end every statement with a semicolon
In your browser, click on the php-course folder, and you should see the header we inserted being displayed.
If it worked, save your changes to GitHub.
git add index.php
git commit -m"initial php setup"
git push origin master
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.