Skip to content

Commit 61a1800

Browse files
committed
Merge branch 'phptek-2016'
2 parents 4709f4a + 7c966a2 commit 61a1800

File tree

13 files changed

+42
-97
lines changed

13 files changed

+42
-97
lines changed

css/source/theme.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,8 @@ section.has-light-background {
8484
margin-right: 1em;
8585
transform: rotate(-8deg);
8686
}
87+
88+
dd + dt {
89+
margin-top: 1em;
90+
}
8791
}

css/theme.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,3 +308,6 @@ body {
308308
margin-top: 2em;
309309
margin-right: 1em;
310310
transform: rotate(-8deg); }
311+
312+
.slides dd + dt {
313+
margin-top: 1em; }

resources/phptek-2016.jpg

202 KB
Loading

slides/exec.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

slides/intro.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!-- .slide: data-background="resources/phptek-2016.jpg" data-background-size="contain" -->

slides/list.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[
2+
"intro.md",
23
"index.md",
34
[
45
"about-me.md",
@@ -34,11 +35,8 @@
3435
"argc.md",
3536
"args.md",
3637
"system-commands.md",
37-
"exec.md",
38-
"shell_exec.md",
39-
"shell_exec2.md",
40-
"system.md",
41-
"passthru.md",
38+
"system-commands2.md",
39+
"system-commands3.md",
4240
"escaping-shell-commands.md",
4341
"escapeshellcmd.md",
4442
"escaping-arguments.md",

slides/passthru.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

slides/shell_exec.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

slides/shell_exec2.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

slides/system-commands2.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#### Executing System Commands
2+
3+
<dl>
4+
<dt class="fragment" data-fragment-index="0"><code>exec()</code></dt>
5+
<dd class="fragment" data-fragment-index="0">Returns the last line of output as a string.</dd>
6+
<dt class="fragment" data-fragment-index="1"><code>shell_exec()</code></dt>
7+
<dd class="fragment" data-fragment-index="1">returns <strong>full</strong> output as a string.</dd>
8+
<dd class="fragment" data-fragment-index="2">Can also be represented using the backtick operator:
9+
<pre><code class="lang-php">\`ls -al` === shell_exec('ls -al')</code></pre>
10+
</dd>
11+
</dl>
12+
13+
14+
Note:
15+
16+
If you require multiple lines of output, use shell_exec()

0 commit comments

Comments
 (0)