Archive for the ‘PHP’ Category

PHP – The Trendiest Web Programming Language

May 13th, 2010

PHP is now considered to be the most trendy web programming language. The biggest advantage of PHP is that, it is an open source platform. This helps in dropping cost and time for any web developing organization. Organization yearning to build a website or a web based application that will not only give a user friendly experience but also run your database. PHP is judged to be one of the best web programming languages and is extensively chosen since its foundation in 1995. This is the faultless choice of program if the client wants the project to be incorporated with a database.

The most excellent part of PHP is that it is an open source web development framework. It has all built-in developments that make it an absolute web application developing program for any prerequisite. PHP adds the winning frame over its competitors such as .Net and java which are also giants in the web development industry. PHP is considered to be the most popular and trendy web programming language. The biggest benefit is that, it is an open source platform. This helps in dipping cost and time for any web developing company.

Today, most of the companies favor a dynamic website where the content can be modified and updated sporadically. The web world was missing such websites. This appears to be a terrible to all programming languages and it made things inferior when the client demanded an SEO friendly website. The birth of PHP as a dynamic web programming language finished the issue of a website being static all the time. Each version that was released, improved the performance and security of the internet programming language.

Features of PHP Development are:

* PHP decreases the lines of code radically. This helps the quality assertion team when the testing procedure is done.
* The applications are protected and locked like never before.
* The websites built using PHP boost performance and assures to be consistent and user friendly.
* PHP being an open source language is a massive advantage. This decreases cost and time to build an application or a website.
* Websites built using PHP not only helps the developers, but also the website owners. The website is easy to sustain and further developments can be executed since the language PHP uses is of international principles.

only 1

Resize Image on the fly

May 18th, 2006

Hi,

I have recieved many queries from people asking , how can they resize image in the fly using php.

Today I will explain how we can do it , but before we jump into code it has some prerequisite and constraint:

1) GD library should be installed on your server.

2) It works with only jpg and gif images.

IF you wondering how to make sure GD library is installed on your server , use the code below-

function GDCheck()
{
echo ” Status of GD support on your server: “;

// Check if the function gd_info exists (great way to know if gd is installed)
if(function_exists(“gd_info”))
{
echo “YES”;
$gd = gd_info();

// Show status of all values that might be supported(unsupported)
foreach($gd as $key => $value)
{
echo “–” . $key . “: “;
if($value)
echo “YES”;
else
echo “NO”;
}
}
else
echo “NO”;
}

GDCheck();
?>

None yet

Uploading Multiple Files with PHP

April 27th, 2006

Today we will see how can we write a code to upload mutilpe files, this is pretty simple. You can do it using one file or one html file and php file.

Today will see how we can do it with a single ( please see I am not adding bells and whistles)
// Absolute path of location where file is to be uploaded and don’t forget to have CHMOD 777 for it
$fileDir = “absolute path to location”;
$intuploadcount = 0;
for ($intCount=0;$intCount<$numoffile;$intCount++)
{
//Check if the all the input box have data or not
if (trim($_FILES['file']['name'][$intCount])!="")
{
$newfile = $file_dir.$_FILES['file']['name'][$intCount];
move_uploaded_file($_FILES['file']['tmp_name'][$intCount], $newfile);
$intuploadcount++;
}
}

if (isset($intuploadcount)&& $intuploadcount>0)

print “$intuploadcount files uploaded
“;

if (isset($intuploadcount)&& $intuploadcount>0)

print “$intuploadcount files uploaded
“;

// echo “

“;
//for($i=0;$i<$filecount;$i++) {
// echo "
“;
//}
// echo “
“;
//echo “

“;
//?>
?>
Doing with html and php files is simple, you just need to create form in html and instead of using ‘for’ loop to generate box, you need to make different box and then create another file ( name it ) and in action of form give the name of file..

That;s it, it should work now.

only 1