You are here: Daniel Dumas »

November, 2008

Detecting the data type of a PHP variable

Detecting the datatype of a specific PHP variable can be done by using PHP gettype() function. refer below for example.

<?php

//define variables
$on = true;
$age = 20;
$name = "daniel";
$price = 99.99;

//Returns Boolean
echo gettype($on);

//Returns String
echo gettype($name);

//Returns Integer
echo gettype($age);

//Returns Double
echo gettype($price);

?>

Keep Reading…

Free One Way Text Link Web Directories List

Free One Way Text link Web Directories is one of the many ways to increase web traffic and ofcourse one of the great way to increase or to build backlinks of your site without spending a single dime, just effort ofcourse and what is good with this is these sites doesn’t require a reciprocal link from you. This list of Free One Way Text Link Web Directories is the one Keep Reading…

Google is indexing my blog post very fast. .

Weeeee i just noticed that google is indexing my blog post very fast :happy: my blog entry got indexed in the blog search in just minutes weeee :D hehehe nothing important i just want to share it haha. . i took a snap shot of my blog search a while ago hehe. . Keep Reading…

PHP and MySQL Basics: Saving form input in PHP variables

form can add interactivity to your site, it enables you to get information or comments from your visitors. saving a value from a form input to a php variable is very easy. refer to the example below.

Example 1: Processing forms in the same php file

Copy and Paste the code below to your text editor and save it as form.php, then run it on your localhost Keep Reading…

Do Follow Blogs List :: Blogs that follow

Hi everyone i just want to share this compilation of do-follow blogs that i personally use to get free backlinks when i comment. please read the site owners comment policy before commenting on their blog to be sure your comment will be approved. if you have a do-follow blog.. Keep Reading…