# The Occasional Tutorial

**URL:** https://www.phphelp.com/c/the-occasional-tutorial/10.md

[Latest](https://www.phphelp.com/latest.md) · [Categories](https://www.phphelp.com/categories.md)

---

## [About the The Occasional Tutorial category](https://www.phphelp.com/t/about-the-the-occasional-tutorial-category/8564)

<div class="topic-metadata">

**Author:** [@system](https://www.phphelp.com/u/system)\
**Replies:** 0\
**Last updated:** [July 16, 2018, 5:46am UTC](https://www.phphelp.com/t/about-the-the-occasional-tutorial-category/8564 "2018-07-16T05:46:14Z")

</div>

For the occasional tutorial. I hope to post an occasional brief tutorial, but feel free to post your own!

---

## [A talk on how to deal with long running processes](https://www.phphelp.com/t/a-talk-on-how-to-deal-with-long-running-processes/36248)

<div class="topic-metadata">

**Author:** [@Mchojrin](https://www.phphelp.com/u/Mchojrin)\
**Replies:** 0\
**Last updated:** [August 16, 2024, 7:59am UTC](https://www.phphelp.com/t/a-talk-on-how-to-deal-with-long-running-processes/36248 "2024-08-16T07:59:41Z")

</div>

Hey, For those working with Symfony (or looking into starting), here’s a video of a talk I gave recently: Dealing with long running processes with Symfony

---

## [A tutorial on creating composer packages and publishing them on packagist](https://www.phphelp.com/t/a-tutorial-on-creating-composer-packages-and-publishing-them-on-packagist/28645)

<div class="topic-metadata">

**Author:** [@prady00](https://www.phphelp.com/u/prady00)\
**Replies:** 0\
**Last updated:** [March 29, 2019, 1:28pm UTC](https://www.phphelp.com/t/a-tutorial-on-creating-composer-packages-and-publishing-them-on-packagist/28645 "2019-03-29T13:28:29Z")

</div>

In this article, we learn how we can create packages and distribute them for reuse using composer. We just need to put the code on a public git repository and register it with packagist to make it discoverable – that’s a…

---

## [Tutorial requests - Have a suggestion for a tutorial?](https://www.phphelp.com/t/tutorial-requests-have-a-suggestion-for-a-tutorial/9274)

<div class="topic-metadata">

**Author:** [@NightOwl](https://www.phphelp.com/u/NightOwl)\
**Replies:** 19\
**Last updated:** [November 23, 2015, 9:18pm UTC](https://www.phphelp.com/t/tutorial-requests-have-a-suggestion-for-a-tutorial/9274 "2015-11-23T21:18:20Z")

</div>

Perhaps a Topic in this category for tutorial requests? I think that would be a nice idea :smiley: \[Edit\] I changed the title and stickied your post ~ Miles

---

## [Making the most of Site-wide Headers and Footers](https://www.phphelp.com/t/making-the-most-of-site-wide-headers-and-footers/26731)

<div class="topic-metadata">

**Author:** [@John](https://www.phphelp.com/u/John)\
**Replies:** 0\
**Last updated:** [July 3, 2018, 4:00am UTC](https://www.phphelp.com/t/making-the-most-of-site-wide-headers-and-footers/26731 "2018-07-03T04:00:00Z")

</div>

By Jason Birch Site-Wide Headers and Footers One of the most powerful features of PHP is its ability to reduce the amount of site maintenance you need to do. By setting up a consistent site template, you can reduce the…

---

## [Using a script wrapper to run PHP](https://www.phphelp.com/t/using-a-script-wrapper-to-run-php/26732)

<div class="topic-metadata">

**Author:** [@John](https://www.phphelp.com/u/John)\
**Replies:** 0\
**Last updated:** [July 2, 2018, 4:00am UTC](https://www.phphelp.com/t/using-a-script-wrapper-to-run-php/26732 "2018-07-02T04:00:00Z")

</div>

By Steve Knoblock & Jason Birch Running PHP Scripts Securely Connecting to a database requires that passwords be included in the script at some point. Other scripts you write may include sensitive information. This inf…

---

## [Normalizing Multi-line Text Input from HTML Forms](https://www.phphelp.com/t/normalizing-multi-line-text-input-from-html-forms/26733)

<div class="topic-metadata">

**Author:** [@John](https://www.phphelp.com/u/John)\
**Replies:** 0\
**Last updated:** [July 2, 2018, 4:00am UTC](https://www.phphelp.com/t/normalizing-multi-line-text-input-from-html-forms/26733 "2018-07-02T04:00:00Z")

</div>

Attaining a State of Normalcy By Steve Knoblock How to convert text submitted though TEXTAREA inputs on web forms from PC and Mac web browsers to Unix format for accurate processing. Note: This is a reprint of an art…

---

## [Introduction to PHP Programming](https://www.phphelp.com/t/introduction-to-php-programming/26730)

<div class="topic-metadata">

**Author:** [@John](https://www.phphelp.com/u/John)\
**Replies:** 0\
**Last updated:** [July 1, 2018, 4:00am UTC](https://www.phphelp.com/t/introduction-to-php-programming/26730 "2018-07-01T04:00:00Z")

</div>

Getting Started With PHP By Steve Knoblock PHP is a language for easily building dynamic web pages. It provides an easier way to accomplish web related programming tasks, which are accomplished only with difficulty in …

---

## [Make your life simpler, use an IDE!](https://www.phphelp.com/t/make-your-life-simpler-use-an-ide/21094)

<div class="topic-metadata">

**Author:** [@JimL](https://www.phphelp.com/u/JimL)\
**Replies:** 1\
**Last updated:** [May 25, 2018, 3:38pm UTC](https://www.phphelp.com/t/make-your-life-simpler-use-an-ide/21094 "2018-05-25T15:38:22Z")

</div>

I often see people having a hard time writing PHP (or any code for that matter), and I have this feeling they are doing it harder for themselves than what it really has to be. \[hr\] Have you ever gotten errors like thes…

---

## [ Joyful Development with Symfony 3 - knpuniversity](https://www.phphelp.com/t/joyful-development-with-symfony-3-knpuniversity/25202)

<div class="topic-metadata">

**Author:** [@JimL](https://www.phphelp.com/u/JimL)\
**Replies:** 0\
**Last updated:** [May 6, 2016, 9:13pm UTC](https://www.phphelp.com/t/joyful-development-with-symfony-3-knpuniversity/25202 "2016-05-06T21:13:52Z")

</div>

A free screencast by knpuniversity, thought it might be interesting for someone who has considering having a look at a larger framework. Ready to get serious with Symfony? You've come to the right place! Get your first …

---

## [Proper HTML-escaping in PHP](https://www.phphelp.com/t/proper-html-escaping-in-php/24828)

<div class="topic-metadata">

**Author:** [@Strider64](https://www.phphelp.com/u/Strider64)\
**Replies:** 0\
**Last updated:** [December 24, 2015, 5:14pm UTC](https://www.phphelp.com/t/proper-html-escaping-in-php/24828 "2015-12-24T17:14:48Z")

</div>

First this isn’t going to be a very long tutorial, for basically it’s to clarify how to escape HTML properly in PHP. I am the first to admit I’m no expert when in comes to this and I have even muddied it myself in the pa…

---

## [URL Routing in php](https://www.phphelp.com/t/url-routing-in-php/18423)

<div class="topic-metadata">

**Author:** [@php.programmer021](https://www.phphelp.com/u/php.programmer021)\
**Replies:** 6\
**Last updated:** [December 11, 2015, 4:47am UTC](https://www.phphelp.com/t/url-routing-in-php/18423 "2015-12-11T04:47:51Z")

</div>

Hello all first of all im sorry about my english writing my problem is : 1- my first page is index.php users after login going to input.php but my problem is here my users can enter the input.php in the url and goin…

---

## [Tutorial advise for my middle size ecommerce projet](https://www.phphelp.com/t/tutorial-advise-for-my-middle-size-ecommerce-projet/24431)

<div class="topic-metadata">

**Author:** [@rebeldeveloper](https://www.phphelp.com/u/rebeldeveloper)\
**Replies:** 8\
**Last updated:** [July 26, 2015, 12:30am UTC](https://www.phphelp.com/t/tutorial-advise-for-my-middle-size-ecommerce-projet/24431 "2015-07-26T00:30:10Z")

</div>

Hi everybody, I am working on my middle size ecommerce website, and i want to how display images with their corresponding information from the database. I know that we cannot store physical images in the database execpt…

---

## [Getting started with coding](https://www.phphelp.com/t/getting-started-with-coding/24226)

<div class="topic-metadata">

**Author:** [@JimL](https://www.phphelp.com/u/JimL)\
**Replies:** 2\
**Last updated:** [April 27, 2015, 8:54pm UTC](https://www.phphelp.com/t/getting-started-with-coding/24226 "2015-04-27T20:54:19Z")

</div>

\[size=12pt\]Getting started with PHP\[/size\] I will assume you are running windows. Run the commands shown in code blocks in the Cmder terminal. \[hr\] HTML/Javascript is possible to run directly in your browser without a…

---

## [ Registration/Login : A Simple Tutorial](https://www.phphelp.com/t/registration-login-a-simple-tutorial/20430)

<div class="topic-metadata">

**Author:** [@Strider64](https://www.phphelp.com/u/Strider64)\
**Replies:** 2\
**Last updated:** [April 14, 2015, 6:23am UTC](https://www.phphelp.com/t/registration-login-a-simple-tutorial/20430 "2015-04-14T06:23:34Z")

</div>

After visiting this forum (and others) I have been seeing people having problems writing a login/registration system in PHP. So I decided to write a very simple one, it only has four attributes/properties: id, username, …

---

## [Need a tutorial on storing image paths in mysql using php?](https://www.phphelp.com/t/need-a-tutorial-on-storing-image-paths-in-mysql-using-php/20141)

<div class="topic-metadata">

**Author:** [@vegas](https://www.phphelp.com/u/vegas)\
**Replies:** 5\
**Last updated:** [February 7, 2015, 10:02am UTC](https://www.phphelp.com/t/need-a-tutorial-on-storing-image-paths-in-mysql-using-php/20141 "2015-02-07T10:02:56Z")

</div>

Can anybody point me in the direction of a tutorial for uploading images to a folder and storing their path in MySQL using PHP and then retrieving the stored path and displaying the image in a search page? I’ve searched…

---

## [Modern web development - let's develop something together](https://www.phphelp.com/t/modern-web-development-lets-develop-something-together/23708)

<div class="topic-metadata">

**Author:** [@JimL](https://www.phphelp.com/u/JimL)\
**Replies:** 6\
**Last updated:** [January 18, 2015, 3:27pm UTC](https://www.phphelp.com/t/modern-web-development-lets-develop-something-together/23708 "2015-01-18T15:27:37Z")

</div>

\[size=18pt\]Modern web development\[/size\] A tutorial series where we will try to develop something together. We can decide as we go where we will take this, but we’re starting small :slight\_smile: Setting up the project …

---

## [Conversion of a database model from Vertabelo to Propel's schema.xml](https://www.phphelp.com/t/conversion-of-a-database-model-from-vertabelo-to-propels-schema-xml/23874)

<div class="topic-metadata">

**Author:** [@jamar](https://www.phphelp.com/u/jamar)\
**Replies:** 1\
**Last updated:** [January 10, 2015, 6:29pm UTC](https://www.phphelp.com/t/conversion-of-a-database-model-from-vertabelo-to-propels-schema-xml/23874 "2015-01-10T18:29:47Z")

</div>

If you are using Vertabelo to design database models, now you can convert these models from Vertabelo to Propel’s schema.xml and use it in your PHP development. Once you create a model of your database in Vertabelo, you…

---

## [A neat and easy way of setting up a PDO connection](https://www.phphelp.com/t/a-neat-and-easy-way-of-setting-up-a-pdo-connection/23799)

<div class="topic-metadata">

**Author:** [@Strider64](https://www.phphelp.com/u/Strider64)\
**Replies:** 3\
**Last updated:** [December 31, 2014, 2:31pm UTC](https://www.phphelp.com/t/a-neat-and-easy-way-of-setting-up-a-pdo-connection/23799 "2014-12-31T14:31:19Z")

</div>

After a couple of years I have finally figure a simple way to have a constant PDO connection in order to use on my website and thought it would be nice to share it with you all. First in I a file called db\_connect.php t…

---

## [A simple calendar script](https://www.phphelp.com/t/a-simple-calendar-script/23821)

<div class="topic-metadata">

**Author:** [@Strider64](https://www.phphelp.com/u/Strider64)\
**Replies:** 3\
**Last updated:** [December 27, 2014, 2:42pm UTC](https://www.phphelp.com/t/a-simple-calendar-script/23821 "2014-12-27T14:42:55Z")

</div>

Merry Christmas Everyone!!! In the spirit of Christmas I thought it would be nice to share a simple calendar script written in PHP Object-Oriented Programming style. It also uses namespaces in PHP meaning if you have ot…

---

## [Reading Directories, the easy way!](https://www.phphelp.com/t/reading-directories-the-easy-way/23579)

<div class="topic-metadata">

**Author:** [@Redscouse](https://www.phphelp.com/u/Redscouse)\
**Replies:** 1\
**Last updated:** [October 27, 2014, 11:20pm UTC](https://www.phphelp.com/t/reading-directories-the-easy-way/23579 "2014-10-27T23:20:13Z")

</div>

Well, I just answered a question in the forums and it struck me that this is a common problem so thought i’d post the solution here for anyone looking for this type of thing. :slight\_smile: This allows us to read any di…

---

## [Upload an image using PHP and Javascript](https://www.phphelp.com/t/upload-an-image-using-php-and-javascript/23523)

<div class="topic-metadata">

**Author:** [@Redscouse](https://www.phphelp.com/u/Redscouse)\
**Replies:** 2\
**Last updated:** [October 17, 2014, 8:41pm UTC](https://www.phphelp.com/t/upload-an-image-using-php-and-javascript/23523 "2014-10-17T20:41:20Z")

</div>

So, after a long time telling myself ‘you should write a tutorial’ I had a bit of time on my hands this morning and viola! Here it is… :slight\_smile: This tutorial will demonstrate one way of uploading images to your w…

---

## [Online Movie Game Tutorial](https://www.phphelp.com/t/online-movie-game-tutorial/22725)

<div class="topic-metadata">

**Author:** [@Strider64](https://www.phphelp.com/u/Strider64)\
**Replies:** 2\
**Last updated:** [October 9, 2014, 7:44am UTC](https://www.phphelp.com/t/online-movie-game-tutorial/22725 "2014-10-09T07:44:35Z")

</div>

First, I have posted an online tutorial (Still need to add the zip files) on my website on how to make a movie trivia game using PHP, jQuery (JavaScript), and Ajax. The reason I have done this is that it’s extremely lon…

---

## [\[Tutorial\] Handling input safely](https://www.phphelp.com/t/tutorial-handling-input-safely/17790)

<div class="topic-metadata">

**Author:** [@Bleed-Obsidian](https://www.phphelp.com/u/Bleed-Obsidian)\
**Replies:** 8\
**Last updated:** [August 22, 2014, 1:09am UTC](https://www.phphelp.com/t/tutorial-handling-input-safely/17790 "2014-08-22T01:09:08Z")

</div>

Hello Everyone, Here to give you some tips with handling input. Handling input Lets start with the form: \<form method='POST' action='php/echo\_input.php'\> \<p\>Name:\<input type="text" name="name"/\>\</p\> \<input …

---

## [Dynamic Calendar](https://www.phphelp.com/t/dynamic-calendar/23239)

<div class="topic-metadata">

**Author:** [@Strider64](https://www.phphelp.com/u/Strider64)\
**Replies:** 4\
**Last updated:** [August 21, 2014, 12:45am UTC](https://www.phphelp.com/t/dynamic-calendar/23239 "2014-08-21T00:45:13Z")

</div>

Over the weekend I developed a dynamic calendar using php for I came across a thread on the internet where a person was having trouble creating their own. I thought to myself that this would be challenging, so I took it …

---

## [MOVED: SMTP Authentication for an OLD PHP script](https://www.phphelp.com/t/moved-smtp-authentication-for-an-old-php-script/23137)

<div class="topic-metadata">

**Author:** [@astonecipher](https://www.phphelp.com/u/astonecipher)\
**Replies:** 0\
**Last updated:** [July 26, 2014, 3:38am UTC](https://www.phphelp.com/t/moved-smtp-authentication-for-an-old-php-script/23137 "2014-07-26T03:38:28Z")

</div>

This topic has been moved to General PHP Help. \[iurl\]http://www.phphelp.com/forum/index.php?topic=23574.0\[/iurl\]

---

## [Which tutorial do you want?](https://www.phphelp.com/t/which-tutorial-do-you-want/22053)

<div class="topic-metadata">

**Author:** [@JimL](https://www.phphelp.com/u/JimL)\
**Replies:** 14\
**Last updated:** [March 31, 2014, 7:50pm UTC](https://www.phphelp.com/t/which-tutorial-do-you-want/22053 "2014-03-31T19:50:52Z")

</div>

Just wondering which tutorial YOU want next.

---

## [Creating a real-time CMS using jQuery, AJAX, PHP and JSON](https://www.phphelp.com/t/creating-a-real-time-cms-using-jquery-ajax-php-and-json/21797)

<div class="topic-metadata">

**Author:** [@Strider64](https://www.phphelp.com/u/Strider64)\
**Replies:** 4\
**Last updated:** [December 31, 2013, 8:40am UTC](https://www.phphelp.com/t/creating-a-real-time-cms-using-jquery-ajax-php-and-json/21797 "2013-12-31T08:40:49Z")

</div>

I have decided to share how to make a cms where it doesn’t reload the html page when the save button is click. I’m not completely done with fully implementing it on my own website with all the bells & whistles, but I tho…

---

## [Using PHP with databases (PDO tutorial)](https://www.phphelp.com/t/using-php-with-databases-pdo-tutorial/21289)

<div class="topic-metadata">

**Author:** [@JimL](https://www.phphelp.com/u/JimL)\
**Replies:** 8\
**Last updated:** [October 12, 2013, 10:18pm UTC](https://www.phphelp.com/t/using-php-with-databases-pdo-tutorial/21289 "2013-10-12T22:18:49Z")

</div>

Welcome to this tutorial on using databases in PHP. I will be adding more sections in near future. If you have any questions/comments please contact me :slight\_smile: Index The problem(s) with the mysql\_\* library (this…

---

## [How to write php code for \[PHP\]\[/PHP\] tags](https://www.phphelp.com/t/how-to-write-php-code-for-php-php-tags/21225)

<div class="topic-metadata">

**Author:** [@Strider64](https://www.phphelp.com/u/Strider64)\
**Replies:** 1\
**Last updated:** [October 3, 2013, 10:24am UTC](https://www.phphelp.com/t/how-to-write-php-code-for-php-php-tags/21225 "2013-10-03T10:24:47Z")

</div>

I’ve been for the last 6 month trying out how to write code for php tags that you see being used on forums and I finally figured it out. This tutorial uses GeSHi (http://qbnz.com/highlighter/) and PHP OOP style, this is …

[Next page](https://www.phphelp.com/c/the-occasional-tutorial/10.md?page=1)
