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
stored in: PHP/MYSQL

If your wanting to learn php then your going to have to learn the basic’s first, and in every programming language theres always the basic ‘Hello World’ where it should display ‘Hello World’ either on the web page or in a software program. So today ill start with the ‘Hello World’ 
<?php 
echo ‘Hello World’; 
?> 
Now change the [...]