Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 81 additions & 14 deletions chapters/tutorial.xml
Original file line number Diff line number Diff line change
Expand Up @@ -305,15 +305,15 @@ You are using Firefox.
<![CDATA[
<?php
if (str_contains($_SERVER['HTTP_USER_AGENT'], 'Firefox')) {
?>
<h3>str_contains() returned true</h3>
<p>You are using Firefox</p>
<?php
?>
<h3>str_contains() returned true</h3>
<p>You are using Firefox</p>
<?php
} else {
?>
<h3>str_contains() returned false</h3>
<p>You are not using Firefox</p>
<?php
?>
<h3>str_contains() returned false</h3>
<p>You are not using Firefox</p>
<?php
}
?>
]]>
Expand Down Expand Up @@ -420,14 +420,81 @@ Hi Joe. You are 22 years old.
<section xml:id="tutorial.whatsnext">
<info><title>What's next?</title></info>
<para>
With your new knowledge you should be able to understand most of
the manual and also the various example scripts available in the
example archives.
With your new knowledge you should be able to understand most of the manual.
</para>
<para>
In particular you may want to explore the following features:
<simplelist>
<member>Reading and writing files with the <link linkend="book.filesystem">filesystem functions</link></member>
<member><link linkend="features.file-upload">Handling file uploads</link></member>
<member>Fetching remote pages and files with <link linkend="book.curl">Curl</link></member>
<member>
Storing and analyzing data in a database with <link linkend="book.pdo">PDO</link> (and
<link linkend="ref.pdo-sqlite">SQLite</link>)
Comment thread
AllenJB marked this conversation as resolved.
Outdated
</member>
<member>Persisting data across requests with <link linkend="book.session">Sessions</link></member>
</simplelist>
</para>
<para>
There's a trove of libraries and <link xlink:href="https://packagist.org/search/?tags=framework">frameworks</link>
for every occasion on the <link xlink:href="https://packagist.org">Packagist repository</link>, all installable via
the <link linkend="install.composer.intro">Composer package manager</link>.
</para>
<para>
For community help and advice, check out the <link xlink:href="https://www.php.net/support.php">Help page</link>.
</para>
<para>
For a variety of podcasts, presentations and other videos, check out the
<link xlink:href="https://phpc.tv">community PeerTube</link>.
</para>
<para>
Comment thread
AllenJB marked this conversation as resolved.
Outdated
Other community resources that will help you include "awesome lists" (curated directories of links) and "developer
roadmaps" (lists of related topics)
</para>
<para>
When you're stuck with no idea where to start, try breaking down your project or problem into smaller parts,
allowing you to more easily see what you already know how to do and what you need to learn. The list can be as deep
/ detailed as you need. For example, building a blog might be broken down into the following parts:
<itemizedlist>
<listitem>
<simpara>Listing and viewing pages</simpara>
<itemizedlist>
<listitem>
<simpara>Reading records (pages) from a database</simpara>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<simpara>Creating pages</simpara>
<itemizedlist>
<listitem>
<simpara>Handle form submission</simpara>
</listitem>
<listitem>
<simpara>Writing records (pages) to a database</simpara>
</listitem>
</itemizedlist>
</listitem>
<listitem>
<simpara>Admin login</simpara>
<itemizedlist>
<listitem>
<simpara>Reading records (users) from a database</simpara>
</listitem>
<listitem>
<simpara>Handling passwords</simpara>
</listitem>
<listitem>
<simpara>Persisting data (user login) across requests / pages (sessions)</simpara>
</listitem>
</itemizedlist>
</listitem>
</itemizedlist>
</para>
<para>
To view various slide presentations that show more of what PHP can do,
see the PHP Conference Material Site:
<link xlink:href="&url.php.talks;">&url.php.talks;</link>
If there's nothing particular you want to build, you can try searching for coding exercises such as katas,
challenges and "code golf". Even when not specifically aimed at PHP, most should be completeable and will likely
challenge your knowledge and thinking.
</para>
</section>
</chapter>
Expand Down