Posts Tagged ‘Scripting’

PHP Tutorials: Security – XSS (Cross-site scripting)

Protect against injecting of client-side scripts (such as JavaScript) on your website. XSS affects any user-defined data that is output anywhere on your site. WEBSITE phpacademy.org FORUM http TWITTER twitter.com FACEBOOK www.facebook.com

PHP Tutorial 29 – MySQL Reading Data (PHP For Beginners)

This video explores the SELECT statement when working with MySQL queries in PHP. We take two mock entries from our table and then display two fields in that table onto a clients page. This video does not show how to use the statement effectively but that will be covered further down the line. For more information, check out the website: howtostartprogramming.com

PHP Tutorial 28 – MySQL Inserting Data (PHP For Beginners)

This tutorial takes a look at how to insert data into a MySQL Table and specify which fields to insert data into. There is no example of using this to insert user-generated data yet because of the 15 minute limit but I will cover that don’t worry. The more experienced viewers will know how to do this already. For more information, check out the website: howtostartprogramming.com

PHP Tutorial 27 – MySQL Creating A Table (PHP For Beginners)

In the previous tutorial we took a first look at MySQL and Phpmyadmin. In this video we will run our first MySQL Query through PHP to create a table inside of our accounts database that we created in part 26. For more information, check out the website: howtostartprogramming.com

PHP Tutorial 25 – Writing To A File (PHP For Beginners)

In the previous tutorial we looked at the file_get_contents function which allowed us to read the contents of a file. This tutorial looks at the file_put_contents function which will allow us to easily put data into a file. We will also look how to overwrite the data and append the data. For more information, check out the website: howtostartprogramming.com

PHP Tutorial 24 – Reading A File (PHP For Beginners)

There are multiple ways to read a file in PHP but the method recommended by PHP.NET is to use the file_get_contents function. It will return the file as a string and then allow you to play around with it. You could use this for a local text file on your machine or even an external HTML page. For more information, check out the website: howtostartprogramming.com

PHP Tutorial 22 – Check If Variable Is Set (PHP For Beginners)

The isset function will allow you to determine if a variable has been set or not. This can be useful when checking if user input has been entered or not. The function will return either a true or false value. For more information, check out the website: howtostartprogramming.com

PHP Tutorial 21 – Find If String Contains a String (PHP For Beginners)

The strpos(String Position) function will allow you to check if one string contains another string and will also determine the first occurrence of that string. This function has been very useful to me when parsing web pages and should prove useful for you too. For more information, check out the website: howtostartprogramming.com

PHP Tutorial 23 – Embedding HTML And PHP (PHP For Beginners)

There are many ways to output a response inside of your HTML and this video will investigate the different methods that you can use. The easiest way is to use single quotes but we can also stop and start our PHP script without causing errors in If Statements or Loops. For more information, check out the website: howtostartprogramming.com

PHP Tutorial 1 – Introduction (PHP For Beginners)

In this tutorial we go over a short presentation on what PHP is, what is required to learn it and what we will be covering further down the line. This video will hopefully introduce you to the PHP scripting language and get you interested in learning more. For more information, check out the website: howtostartprogramming.com