Skip to content

Commit aa2851f

Browse files
committed
2018-05-30 AC: Adds all the code examples from the book.
* Adds all the code examples from the book Mastering the Faster Web: PHP, MySQL and JavaScript.
1 parent 469f0a4 commit aa2851f

File tree

115 files changed

+55538
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+55538
-2
lines changed

LICENSE

100644100755
File mode changed.

README.md

100644100755
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
# fasterweb
2-
Mastering the Faster Web
1+
<h1>Mastering the Faster Web with PHP, MySQL and JavaScript</h1>
2+
<p>Develop state of the art Web applications using the latest Web technologies</p>
3+
<p><br><br><br><br></p>
4+
<h2>Official code repository</h2>
5+
<p><br><br><br><br><br></p>
6+
<h3>Andrew Caya</h3>
7+
<p><br><br><br><br><br></p>
8+
<p><a href="https://commons.wikimedia.org/wiki/File:Packt_Logo.png#/media/File:Packt_Logo.png"><img src="https://upload.wikimedia.org/wikipedia/commons/b/bc/Packt_Logo.png" alt="Packt Logo"></a><br>By <a href="//commons.wikimedia.org/w/index.php?title=User:Dalston.nazareth&amp;action=edit&amp;redlink=1" class="new" title="User:Dalston.nazareth (page does not exist)">Dave Maclean</a> - <span class="int-own-work" lang="en">Own work</span>, <a href="https://creativecommons.org/licenses/by-sa/4.0" title="Creative Commons Attribution-Share Alike 4.0">CC BY-SA 4.0</a>, <a href="https://commons.wikimedia.org/w/index.php?curid=63328928">Link</a></p>
9+
<br>
10+
BIRMINGHAM - MUMBAI
11+
12+

bash_history_container.txt

Lines changed: 416 additions & 0 deletions
Large diffs are not rendered by default.

bash_history_host.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#################
2+
### Chapter 1 ###
3+
#################
4+
git clone https://github.com/andrewscaya/fasterweb
5+
cd fasterweb/
6+
docker run -it --rm -p 8181:80 -v ${PWD}/:/srv/fasterweb asclinux/linuxforphp-8.1:7.1.16-nts /bin/bash
7+
#################
8+
### Chapter 2 ###
9+
#################
10+
docker run -d --name influxdb -p 8086:8086 andrewscaya/influxdb
11+
docker network inspect bridge
12+
docker run --rm andrewscaya/telegraf -sample-config > telegraf.conf
13+
docker run --net=container:influxdb -v ${PWD}/telegraf.conf:/etc/telegraf/telegraf.conf:ro andrewscaya/telegraf
14+
docker run -d --name grafana -p 3000:3000 andrewscaya/grafana
15+
#################
16+
### Chapter 4 ###
17+
#################
18+
docker run -it --rm -p 8282:80 -v ${PWD}/:/srv/fasterweb asclinux/linuxforphp-8.1:7.0.29-zts /bin/bash
19+
docker exec -it $( docker ps -q | awk '{ print $1 }' ) /bin/bash
20+
#################
21+
### Chapter 9 ###
22+
#################
23+
docker run --rm -it -p 8383:80 asclinux/linuxforphp-8.1:src /bin/bash -c "cd ; wget -O tmp http://bit.ly/2jheBrr ; /bin/bash ./tmp 7.2.5 nts ; echo '<?php phpinfo();' > /srv/www/index.php ; /bin/bash"
24+
docker run -it -p 6082:6082 -p 8484:80 asclinux/linuxforphp-8.1:src /bin/bash
25+
docker network inspect bridge
26+
curl -v 172.17.0.3 | grep Forwarded
27+
curl -v https://linuxforphp.net

chapter_1/cachegrind.out.412

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: 1
2+
creator: xdebug 2.5.5 (PHP 7.1.3)
3+
cmd: /srv/www/index.php
4+
part: 1
5+
positions: line
6+
7+
events: Time
8+
9+
fl=(1) php:internal
10+
fn=(1) php::phpinfo
11+
3 1221
12+
13+
fl=(2) /srv/www/index.php
14+
fn=(2) {main}
15+
16+
summary: 12235718
17+
18+
1 12234496
19+
cfl=(1)
20+
cfn=(1)
21+
calls=1 0 0
22+
3 1221
23+

chapter_1/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>It works!</title>
6+
</head>
7+
<body>
8+
<p>It works!</p>
9+
</body>
10+
</html>

chapter_1/index.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
phpinfo();
4+
5+
$test = 'This is a test!';
6+
7+
$test1 = $test;
8+
9+
echo $test1;

chapter_1/phpinfo.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<?php
2+
3+
phpinfo();

chapter_1/sakila-db.tar.gz

727 KB
Binary file not shown.

chapter_1/siege-4.0.2.tar.gz

509 KB
Binary file not shown.

0 commit comments

Comments
 (0)