Top 10 PHP Tips for Developers

I have always wanted to write an article like this, because I think about it all the time – what 10 things would I deem the most important to pass on to someone else? Well, after literally years of thought I think I have come…

100 PHP Interview Questions

100 PHP INTERVIEW QUESTIONS 1.What is the difference between $name and $$name? $name is variable where as $$name is reference variable like $name=Sonia and $$name=Singh so $Sonia value is Singh. 2. How can we submit a form without a submit button? Java script submit ()…

WordPress Interview Questions and Answers

WordPress Interview Questions and Answers Q-1 What is WordPress? Ans. The WordPress web site defines WordPress as “web software you can use to create a beautiful website or blog. “ That describes it in the simplest form possible though I will try to expand on…

Recent PHP interview Questions and Answers

Questions : 1 What is Full form of PHP ? Who is the father or inventor of PHP ? Answers : 1 Rasmus Lerdorf is known as the father of PHP that started development of PHP in 1994 for their own Personal Home Page (PHP)…

PHP INTERVIEW QUESTIONS

Advance Congratulation for your Interview What’s PHP The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications. What Is a Session? A session is a…

Recent PHP interview Questions in HCL

1. mvc architecture 2. program to print first 10 prime nos. 3. program to print sum of digits 4. program to reverse the string without using strrev() 5. program to display the following pattern:            *       ***      ***** 6. jquery functions like live()…

Simple Microsoft Excel file generation via PHP and Mysql

config.php :- <?php $host_name=”localhost”; $username=”root”; $password=””; $db_name=”test”; //Database Connection $conn=mysql_connect($host_name,$username,$password); //Database Select mysql_select_db($db_name,$conn); ?> BuyerAssistReport.php :- <?php error_reporting (E_ALL ^ E_NOTICE); include(“config.php”); $query  = “SELECT * FROM fruit “; $result = mysql_query($query) or die(mysql_error().’Error, query failed’); $tsv=””; $html=””; $xml = “”; while($row = mysql_fetch_array($result)) {…

php script for creating vcf – address file

index.php:- <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“> <html xmlns=”http://www.w3.org/1999/xhtml“> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ /> <title>Vcard creation – gsivaprabu</title> <body bgcolor=”#FFCC66″> <h2 align=”center”>Vcard creation – gsivaprabu</h2> <div style=”margin-top:50px;” align=”center”>   <form action=”generate_card.php” method=”get”>     First Name:     <input type=”text” name=”fname” />…

Simple and powerful captcha in PHP

example_form.php <?php     require_once(‘RainCaptcha.class.php’);     $captcha = new RainCaptcha(); ?> <html> <body> <form action=”example_handler.php” method=”post”>   <table>     <tr>       <th>Captcha</th>       <td><img src=”<?php echo $captcha->getImage(); ?>” /> <br />         <input name=”captcha” type=”text” maxlength=”5″ /></td>     </tr>     <tr>       <td></td>       <td><input type=”submit”…

1 2 3