In this small and short post i will be showing you how to place comments in your php coding for others to see which does not get shown when the file is executed only viewable in the source code.
First i will show you how to use a single line comment. Which is used just for [...]

The include() function is used to include another file in the current file. If you have set variables in one file i.e. config.php and you would like to include it in another file i.e. index.php you would use the include() function.
I will show you a example of this. The following file is config.php where i [...]

09
Sep

At some point you will want a random number string but dont have the time to create new ones all the time, this is where the rand() function comes in. rand() Function creates random numbers from the numbers you set.
<?php
echo rand(0, 10);
?>
The code above will create and display a random number anything from 0 to [...]

The function file_get_contents() reads a file into a string. Using the function doesnt always work or sometimes uses more server memory. Another way of grabbing content from a url is using cUrl. cUrl allows you to grab/retrieve content from another server/url.
I have written a simple function which will retrieve content from the given url using [...]

08
Sep

htmlentities function converts all applicable characters to HTML entities. For example “<b>Hello World</b>” is converted to ” &lt;b&gt;Hello World&lt;/b&gt; “
Using this function is simple and easy. I have coded a example below;

<?php
$text = ‘<b>Hello World</b>’;
echo htmlentities($text);
?>

If you have any questions please post a comment and i will contact you as soon as possible.

Not everyone can afford a encoder or trust them, so why not create your own basic encoder! In this tutorial i will show you how to encode letters into another letter of your choice. For example the letter “a” will be known as letter “f” and so on.
First of all i wrote out all the [...]

07
Sep
stored in: PHP/MYSQL

Variables in PHP are represented by a dollar sign followed by the name of the variable. The variable name is case-sensitive.

<?php
$name = ‘John’;
$age = ‘23′;
$location = ‘London’;
echo ‘My name is: $name and i am $age years old, currently living in $location’;
?>

This is output the following:

My name is: John and i am [...]

07
Sep

The $_GET variable is used to gather values/data from a form or url.
Information sent using the $_GET varible is visible in the users web browser, for example http://yourdomain.com/?url=http://google.com which has defined http://google.com as the url.
So for example if i was to use the following php code:
<?php
print $_GET['url'];
?>
It will display the domain http://google.com.
You can change this [...]

You may have seen functions or you may not.  Function() is a defined chunck of code set which can be executed when ever it is needed. A function() consists of a few simple steps.

All functions start with the word “function” followed by a related name for the function with “()” after it.
Insert { in the [...]

07
Sep

From: http://www.php.net/index.php#id2008-08-07-1 
PHP 4.4.9 released!
The PHP development team would like to announce the immediate
        availability of PHP 4.4.9. It continues to improve the security and the
        stability of the 4.4 branch and all users are strongly encouraged to
        upgrade to it as soon as possible. This release wraps up all the
   [...]