Git Product home page Git Product logo

phptutor's Introduction

Phptutor for LAMP stack

Walk through modern PHP language. Covers :

  1. CLI command line php
  2. HTTP and webpages with PHP
  3. MySqli library extensions.

Installation of the LAMP stack

Installatzion of Apache webserver

sudo apt-get install apache2

Installation of mySql

sudo apt-get install mysql-server mysql-client 
sudo apt-get install libapache2-mod-auth-mysql php5-mysql

installation of PHP5

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

installation of additional tools

sudo apt-get install mc lynx vim wget curl less 

Checking php runtime configuration info

php -m   #show compiled modules
php --info  #show php info
php -v #version of php

Testing PHP code

Testing php webpages without apache

cd ~/public_html
php -S localhost:8000
lynx http://localhost:8000

Testing standalone scripts

Execute a php by intepreter. Beware tha CLI contenxt is different then web context.

php -f myscript.php  

Testing via commandline

Bash oneliner for testing purposes

echo '<?php require 'appconfig.php'; ?>' - | php    

phptutor's People

Contributors

gustinmi avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar Andraž Gruden avatar

Forkers

luigidon

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.