<?php echo ($output['description']!=”)?$output['description']:”No Records Found”; ?>
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Feb | ||||||
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | ||||||
<!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>Untitled Document</title>
</head>
<body>
basic functions:
php
a
–
abs() - Math.abs()
addcslashes()
addslashes
aggregate
array
array_change_key_case
array_chunk
array_combine
array_count_values
array_diff
array_diff_assoc
array_diff_key
array_fill
array_filter
array_flip
array_intersect
array_intersect_assoc
array_intersect_key
array_key_exists
array_keys
array_map
array_merge
array_multisort
array_pad
array_pop
array_push
array_rand
array_reduce
array_reverse
array_search
array_shift
array_slice
array_splice
array_sum
array_unique
array_unshift
array_values
array_walk
m
–
mail
max
md5
md5_file
min
mkdir
mktime
date parameters
floor
ceil
round
sort functions
————–
arsort – associative reverse
asort – associative sort
ksort – sort by key
krsort – sort by key in reverse
sort – normal asort
rsort – normal asort in reverse
usort
uksort
s
–
serialize
Session Handling Functions
set_magic_quotes_runtime
setcookie
sha1
sha1_file
shuffle
sleep
split
spliti
sprintf
str_ireplace
str_pad
str_repeat
str_replace
str_shuffle
str_split
str_word_count
strcasecmp
strchr
strcmp
strftime
strip_tags
stripos
stripslashes
stristr
strlen
strpos
strrchr
strrev
strripos
strrpos
strstr
strtok
strtolower
strtotime
strtoupper
strtr
strval
substr
substr_compare
substr_count
substr_replace
include
include_once
require
require_once
count
current
end
next
prev
reset
key
each
class
——
get_class
get_parent_class
is_subclass_of
htmlentities()
htmlspecialchar()
urlencode()
urldecode()
addslashes()
stripslashes()
serialise()
unserialise()
get_magic_quotes_gpc()
get_magic_quotes_runtime()
base64_encode()
base64_decode()
md5()
md5_file() 160 bit
sha1() 128 bit
sha1_file()
crc32() 32 bit
crypt()
is_writable()
is_resource()
is_subclass_of()
is_nan()
———————
Date & Time
————
strftime()
strtotime()
strptime()
checkdate()
Regular Expression
——————
php questions :
1. Types of errors in php :
php have 8 standard errors and 3 custom errors
E_NOTICE :
non fatel error. it occur when attempts to reference an undefined variable.
E_WARNING :
non fatel error. it occurs when parsing invalid data types to an internal php function
E_ERROR :
fatel error
E_PARSE :
fatel error. it is a syntax error
E_CORE_WARNING :
E_CORE_ERROR :
E_COMPILE_WARNING :
E_COMPILE_ERROR :
Custom errors:
E_USER_WARNING
E_USER_ERROR
E_USER_NOTICE
Internal error handling functions:
set_error_handler()
restore_error_handler()
error_reporting()
error_log()
trigger_error()
—————————————————————————
2. when session will expire and how to set
default session lifetime in php is 1440 sec(24 minutes)
we can change the value using the function
ini_set(’session.gc_maxlifetime’ , ‘2550′)
in php ini file
——————–
the session value is stored in the server tmp directory
ex.
xampplite/tmp
we can change the directory using the function
ini_set(’session.save_path’ , ‘\xampplite\ad’)
—————————————————————————-
3. how to find the difference between two dates
- assign two dates to two variables using strtotime function.
- pass this variables to one user defind function
- in that function split the two dates into two arrays using getdate() function
————————————————————————–
4. predefind classes in php
- dir
- exception
———————————————————————–
5. Difference between php4 and 5
php4
- zend engine one is used
- pass by value
- constructor name is the class name
- register global variables in ON
php5
- zend engine two is used
- pass by reference
- constructor starts with __construct()
- refister global variables is Off
———————————————————————–
6. how to increase the execution time in php
ini_set(‘max_execution_time’ , 60)
default execution time is 30 seconds
—————————————————————-
7. Expansion of LAMP
L – Linux
A – Appache
M – MySql
P – Php , Python , Perl , Ruby
————————————————————————
8. how to find the window size using javascript function
non ie browser
window.innerWidth
window.innerHeight
window.outerWidth
window.outerHeight
ie 6
document.documentElement.clientWidth;
document.documentElement.clientHeight;
ie 4
document.body.clientWidth;
document.body.clientHeight;
————————————————————————-
9. how to identify the browser
brow = navigator.appName;
if(brow == ‘Microsoft Internet Explorer’)
{
alert(“I am ” + brow);
}
else if(brow == ‘Netscape’)
{
alert(“I am ” + brow);
}
—————————————————————————
10. appache php configuration
php configuraion
—————-
move php5ts.dll from php directory to windows directory
Rename the c:\php\php.ini-dist to c:\php\php.ini, then make the following changes in the c:\php\php.ini file:
(1) doc_root = “c:\webs\test” and
(2) extension_dir = “C:\php\ext”.
Note that you should use BACKSLASHES in the php.ini file.
Apache Configuration
——————–
In the file C:\Program Files\Apache Group\Apache2\conf\httpd.conf, change the DocumentRoot entry to: DocumentRoot “C:/webs/test”. Note that you should use FORWARD SLASHES in the http.conf file.
Also in the file C:\Program Files\Apache Group\Apache2\conf\httpd.conf, change the Directory entry to: <Directory “C:/webs/test”>.Note that you should use FORWARD SLASHES in the http.conf file.
Again in the C:\Program Files\Apache Group\Apache2\conf\httpd.conf file, add the following lines: hint: to find this position fast, search for “media types”
ScriptAlias /php/ “c:/php/”
AddType application/x-httpd-php .php .php5
Action application/x-httpd-php “/php/php-cgi.exe”
SetEnv PHPRC “C:/php”
Lastly, we need to make one last change to this C:\Program Files\Apache Group\Apache2\conf\httpd.conf file. Find the “DirectoryIndex” entry and add “index.php” to the end of the line as shown in this screenshot.
mysql configuration
——————-
First of all, check the c:\php directory and make sure that the files libmysql.dll and php_mysql.dll are both there. If they are not there, check the c:\php\ext directory and copy the files into c:\php
Then open up the file c:\php\php.ini in your editor and ADD the line extension=php_mysql.dll.
————————————————————————————————-
11. AJAX:
<form action=” https://www.paypal.com/cgi-bin/webscr” method=”post”>
<input type=”hidden” name=”cmd” value=”_xclick”>
<input type=”hidden” name=”business” value=” gene@masterspokenenglish.com”>
<input type=”hidden” name=”item_name” value=”DVD-1 Tonal Vowels”>
<input type=”hidden” name=”item_number” value=”MSE DVD-1″>
<input type=”hidden” name=”amount” value=”99.00″>
<input type=”hidden” name=”no_note” value=”1″>
<input type=”hidden” name=”currency_code” value=”USD”>
<input type=”image” src=” https://www.paypal.com/images/x-click-butcc.gif”
border=”0″ name=”submit” alt=”Make payments with PayPal – it’s fast, free
and secure!”>
</form>
<FORM METHOD=POST ACTION=”http://www.safepay.net/cgi-bin/shop/cart.cgi?”>
<INPUT TYPE=HIDDEN NAME=merchant VALUE=”bacastange”>
<INPUT TYPE=HIDDEN NAME=name VALUE=”(P-1) Purple, blue & rose”>
<INPUT TYPE=HIDDEN NAME=sh VALUE=”1″>
<INPUT TYPE=HIDDEN NAME=price VALUE=”24.00″>
<INPUT TYPE=HIDDEN NAME=img VALUE=”http://www.bacastange.com/images/pendants/p-1_24small.jpg”>
<INPUT TYPE=HIDDEN NAME=img2 VALUE=”http://www.bacastange.com/images/pendants/p-1_24.jpg”>
<input type=HIDDEN name=”custom1″ value=”1 inch x 1 inch purple, blue & rose – shipping and handling information” onlick=”javascript:ShowWin_1184393822437()” />
<INPUT TYPE=submit NAME=”add” VALUE=”Add to Cart”>
</FORM>
<!– ******************************************************************************************************************************************************************** –>
<ul type=”disc”>
<li><a href=”display.php?lLimit=50000&uLimit=100000″>$50,000 – $100,000</a></li>
<li><a href=”display.php?lLimit=100001&uLimit=105000″>$100,001 – $150,000</a></li>
<li><a href=”display.php?lLimit=105001&uLimit=200000″>$150,001 – $200,000</a></li>
<li><a href=”display.php?lLimit=200001&uLimit=300000″>$200,001 – $300,000</a></li>
<li><a href=”display.php?lLimit=300001&uLimit=400000″>$300,001 – $400,000</a></li>
<li><a href=”display.php?lLimit=400001&uLimit=500000″>$400,001 – $500,000</a></li>
<li><a href=”display.php?lLimit=500001&uLimit=700000″>$500,001 – $700,000</a></li>
<li><a href=”display.php?lLimit=700001&uLimit=999999″>$700,001 – $999,999</a></li>
<li><a href=”display.php?lLimit=1000000&uLimit=up”>$1,000,000 and up.</a></li>
</ul>
<!– ******************************************************************************************************************************************************************** –>
<?php
//echo $query=”SELECT * FROM zipweb WHERE price > “.$_REQUEST['lLimit'].” AND price < “.$_REQUEST['uLimit'];
$query=”SELECT * FROM zipweb WHERE price > “.$_REQUEST['lLimit'].” AND price < “.$_REQUEST['uLimit'];
//echo $query;
$result = mysql_query($query) OR die(“error in query”.mysql_error());
$i=0;
while($row=mysql_fetch_array($result))
{
$i++;
?>
<tr>
<td><div align=”right”><? echo $i;?></div></td>
<td>
<div align=”left”><a href=”flash.php?vid=<?php echo $row['zip_id']; ?>”><? echo $row['listing'];?></a></div>
</td>
<?php
}
?>
<!– ******************************************************************************************************************************************************************** –>
<?php
$vid=$_REQUEST['vid'];
$query=”SELECT * FROM zipweb where zip_id=$vid”;
?>
<!– ******************************************************************************************************************************************************************** –>
<?php
session_start();
””””””””””””””””
$res = mysql_query($qry);
// echo $_SESSION['id']=mysql_insert_id();
echo $_SESSION['id']=mysql_insert_id();
header(“location:video.php”);
}
?>
<!– ******************************************************************************************************************************************************************** –>
<?
session_start();
?>
<?php
include “database/config.php”;
include “database/opendb.php”;
// The Cofigration Details
$config['BASE_DIR'] = ‘/var/www/zipwebtv.com/upload/flvvideo’;
$config['BASE_URL'] = ‘http://www.zipwebtv.com/upload/flvvideo’;
$config['VDO_DIR'] = $config['BASE_URL'].’/video’;
$config['FLVDO_DIR'] = $config['BASE_URL'].’/upload/flvvideo’;
$config['ffmpeg'] = ‘/usr/bin/ffmpeg’;
$config['vdodir'] = ‘./upload/video’;
$config['flvdodir'] = ‘./upload/flvvideo’;
if($_REQUEST['future']!=1){
/* Code for flv conversion and uploading */
$p = $_FILES['video']['name'];
$pos = strrpos($p,”.”);
$ph = strtolower(substr($p,$pos+1,strlen($p)-$pos));
$vid = rand();
$vdoname = $vid.”.”.$ph;
$ff = ‘./upload/video’.”/”.$vdoname;
if(move_uploaded_file($_FILES['video']['tmp_name'], $ff)){
$mov = new ffmpeg_movie($ff);
// the duration of the file
$duration=$mov->getDuration();
if(exec(“$config[ffmpeg] -i $config[vdodir]/$vdoname -ar 22050 -ab 32 -f flv $config[flvdodir]/”.$vid.”.flv”));
$qry = “UPDATE zipweb set url=’”.$vid.”.flv’ where zip_id=”.$_SESSION['id'];
$res = mysql_query($qry);
}
/* End of code for flv uploading */
}
?>
<!– *************************************************select********************************************************************************************* –>
<!– WHILE LOOP TR TD –>
<table width=”544″ border=”1″ cellspacing=”0″ cellpadding=”10″>
<tr>
<td class=”delete_head”> </td>
<td class=”delete_head”><img src=”images/deleteall.png” width=”110″ height=”26″ /></td>
<td width=”23″ class=”delete_head”> </td>
<td width=”219″ class=”delete_head”> </td>
</tr>
<?php
$sql=”select * from teamphoto order by id desc”;
$result=mysql_query($sql) or die(mysql_error());
$tr=1;
while($row=mysql_fetch_array($result,MYSQL_ASSOC))
{
if($tr%3==1)
{
echo “<tr>”;
}
?>
<td width=”20″ align=”center” valign=”top” class=”delete”><input type=”checkbox” name=”checkbox” value=”checkbox” /></td>
<td width=”202″ align=”center” class=”delete”><img src=”images/team_gallery1.jpg” width=”185″ height=”107″ /><br /><?php echo $row['team_name']; ?></td>
<?php
if($tr%3==0)
{
echo “</tr>”;
}
$tr++;
}
?>
</table>
<?php
echo ‘<img src=”images/’.$row['team_image'].’” width=”185″ height=”107″ />’;
echo “<br>”;
?>
<?php echo $row['team_name']; ?></td>
<!– ***************************************fetch_array**************************************************************************************************************** –>
HREF:
<?php
while($row = mysql_fetch_array($pace_news_result))
{
$id = $row['news_id'];
echo “<a class = \”a5menu\” style=\”text-decoration:none;\” href=\”news1.php?id=$id\”>”. “<p>” .$row['news_title'].”</p>”.”</a>”;
}
?>
<!– ******************************************************************************************************************************************************* –>
Admin Panel:
User Name :
Password :
<?php
session_start();
include(“config.php”);
include(“opendb.php”);
$msg = $_REQUEST['msg'];
// print_r($_POST);
if(isset($_POST['Submit']))
{
$username = $_POST['username'];
$password = $_POST['password'];
///////////////////// CHECK USERNAME AND STATUS//////////////
$sqlusername = “SELECT * FROM pace_admin WHERE admin=’$username’
and password=’$password’”;
$result = mysql_query($sqlusername);
$admin_num_row = mysql_num_rows($result);
if($admin_num_row==1)
{
header (“location: adminpage.php”);
}
else
{
$msg = “Invalid Username And Password “;
header(“location: index.php?msg=$msg”);
}
}
?>
<!– ********************************num_rows********************************************************************************* –>
NUM_ROWS:
<td valign=”top” class=”td-style03″>
<p>
<?php
if($news1_num_rows==0)
{
echo “There is no news”;
}
else
{
?>
<?php if($_REQUEST['id']!=”") { ?>
<?php echo “<p>”; echo “<div class=\”div0001\”>”. $row['news_title'].”</div>”.”<br>”.”<br>”.$row['news_description']; echo “</p>”; ?>
<?php } ?>
<?php if($_REQUEST['id']==”") { ?>
<?php echo “<p>”; echo $row_id['news_title'].”<br>”.”<br>”.$row['news_description']; echo “</p>”; ?>
<?php }
} ?>
</p>
</td>
<!– *********************************************while******************************************************************** –>
num_rows:
<?php
if($news2_num_rows==0)
{
echo “There is no news”;
}
else
{
while($row = mysql_fetch_array($pace_news_result))
{
echo “<p>”.$row['news_title'].”<br>”.$row['news_description'].”</p>”;
}
}
?>
<!– *******************************ahref********************************************************************************** –>
<?php
if($num_rows==0)
{
echo “There is no Latest News”;
}
else
{
while($row = mysql_fetch_array($pace_news_result))
{
$id = $row['news_id'];
echo “<a class = \”a5menu\” style=\”text-decoration:none;\” href=\”news1.php?id=$id\”>”. “<p>” .$row['news_title'].”</p>”.”</a>”;
}
}
?>
<!– ***************************************************************************************************************** –>
<tr>
<td align=”right” class=”td-style05″>
<?php if($news1_num_rows!=0) { ?>
<a href=”newsmore.php” class=”a2menu”>[_More]</a>
<?php } ?>
</td>
<td> </td>
</tr>
<!– Loop Techniquee…ahref……………………………………………………………………………………………………… –>
<?php
if($num_rows==0){
echo “There is no Latest News”;
}else{
while($row = mysql_fetch_array($pace_news_result))
{
$id = $row['news_id'];
?>
<a class = “a5menu” style=”text-decoration:none;” href=”news1.php?id=<? php echo $id; ?>”> <p><?php echo $row['news_title']; ?></p>
<?php }} ?>
<!– Loop Techniquee………………………………………………………………………………………………………… –>
<!–javascript –>
script language:
function check()
{
alert(“hai selva”)
}
cursor point to page:
document.wingform.important.focus()
return false
}
if((document.mathkit.findinfo[0].checked==false)&&
(document.mathkit.findinfo[1].checked==false)&&
(document.mathkit.findinfo[2].checked==false))
{
alert(“please find your information”)
<<<document.mathkit.findinfo[0].focus()>
return false
}
<tr><td><img src=”images/cont_bg.gif”></td></tr>
<tr><td><img src=”images/cont_top.gif”></td></tr>
<td><img src=”images/footer.gif” width=”268″ height=”35″></td>
<tr><td><img src=”images/footer.gif” width=”268″ height=”35″></td></tr>
<tr><td><img src=”images/rechts_bg2.gif”></td></tr>
<tr><td><img src=”images/s_bg.gif”></td></tr>
<tr><td><img src=”images/navi_bg.gif”></td></tr>
<div align=”right”><tr><td><img src=”images/cont2_bg.gif” width=”393″ height=”289″></td></tr></div>
<?php
$degree = array(1=>”M.Tech”,”B.Tech”,”B.E”,”M.Sc”,”B.Sc”);
?>
<?php
$specialization=array(1=>”Information Tech”,”Computer Science”,”Computer Science”,”Computer Science”,”Computer Science”,”Computer Science”);
?>
<tr align=”center”>
<td><select name=”degree” >
<option label=”M.Tech” selected=”selected”>M.Tech</option>
<option label=”B.Tech” selected=”selected”>B.Tech</option>
<option label=”B.E” selected=”selected”>B.E</option>
<option label=”M.Sc” selected=”selected”>M.Sc</option>
<option label=”B.Sc” selected=”selected”>B.Sc</option>
</select> <td><input name=”name” type=”text” /></td>
<td><select name=”specialization”>
<option label=”Information Tech” selected=”selected”>Information Tech</option>
<option label=”Computer Science” selected=”selected”>Computer Science</option>
<option label=”Computer Science” selected=”selected”>Computer Science</option>
<option label=”Computer Science” selected=”selected”>Computer Science</option>
<option label=”Computer Science” selected=”selected”>Computer Science</option>
</select> <td><input name=”name” type=”text” /></td>
</tr>
<tr align=”center”>
<td><select name=”degree” >
<option value=”degree” selected>degree</option>
<?php
for($i=1;$i<=5;$i++)
{
echo “<option value=\”$i\”>$i</option>”;
}
?>
</select> <td><input name=”name” type=”text” /></td>
<select name=”specialization” >
<option value=”specialization” selected>specialization</option>
<?php
for($i=1;$i<=5;$i++)
{
echo “<option value=\”$i\”>$i</option>”;
}
?>
</select> <td><input name=”name” type=”text” /></td>
</tr>
<!–javascript –>
<script language = “Javascript”>
function check()
{
if((document.childmodel.area[0].checked==false)&&
(document.childmodel.area[1].checked==false)&&
(document.childmodel.area[2].checked==false))
{
alert(“please select your area of interest”)
document.childmodel.area.focus()
return false
}
if(document.childmodel.impques.value==”")
{
alert(“please enter your important question”)
document.childmodel.impques.focus()
return false
}
if(document.childmodel.bigfrust.value==”")
{
alert(“please enter your biggest frustration”)
document.childmodel.bigfrust.focus()
return false
}
if(document.childmodel.searchengine.value==”")
{
alert(“please enter your searchengine”)
document.childmodel.searchengine.focus()
return false
}
if((document.childmodel.findinfo[0].checked==false)&&
(document.childmodel.findinfo[1].checked==false)&&
(document.childmodel.findinfo[2].checked==false))
{
alert(“please select your find information”)
document.childmodel.findinfo.focus()
return false
}
if(document.childmodel.newsletter.value==”")
{
alert(“please enter your execptation newsletter”)
document.childmodel.newsletter.focus()
return false
}
if(document.wingform.email.value==”")
{
alert(“please enter your email address”)
document.childmodel.email.focus()
return false
}
if(document.childmodel.age.value==”")
{
alert(“please enter your age”)
document.childmodel.age.focus()
return false
}
if((document.childmodel.gender[document.childmodel.gender.selectedIndex].value ==”gender”))
{
alert(“select your gender”)
document.childmodel.gender.focus()
return false
}
if(document.childmodel.state.value==”")
{
alert(“please enter your state”)
document.childmodel.state.focus()
return false
}
if(document.childmodel.phone.value==”")
{
alert(“please enter your phone”)
document.childmodel.phone.focus()
return false
}
return true
}
</script>
</body>
</html>
<a href=”javascript:history.go(-1)”>
$degree2 = $_POST['btech'];
$degree3 = $_POST['be'];
$degree4 = $_POST['msc'];
$degree5 = $_POST['bsc'];
$degree6 = $_POST['others'];
$specialization2=$_POST['com1puterscience'];
$specialization3=$_POST['com1puterscience'];
$specialization4=$_POST['com1puterscience'];
$specialization5=$_POST['com1puterscience'];
$specialization6=$_POST['others'];
<!–<option value=”btech”>btech</option>
<option value=”be”>be</option>
<option value=”msc”>msc</option>
<option value=”bsc”>bsc</option>
<option value=”others” >others</option> <td><input name=”anydegree” type=”text” disabled/></td>–>
<!–<option value=”computerscience”>computerscience</option>
<option value=”computerscience”>computerscience</option>
<option value=”computerscience”>computerscience</option>
<option value=”computerscience”>computerscience</option>
<option value=”others” >others</option> <td><input name=”otherspecial” type=”text” disabled /></td>–>
$a = $_POST['mtech'];
$b=$_POST['informationtech'];
//$degree = $degree1.”-”.$degree2.”-”.$degree3.”-”.$degree4.”-”.$degree5.”-”.$degree6;
//$anydegree=$_POST['anydegree'];
//$specialization=$_POST['informationtech'];
//$specialization =$specialization1.”-”.$specialization2.”-”.$specialization3.”-”.$specialization4.”-”.$specialization5.”-”.$specialization6;
//$otherspecial=$_POST['otherspecial'];
echo “value “.$a.”<br/>”;
//echo “value “.$anydegree.”<br/>”;
echo “value “.$b.”<br/>”;
//echo “value “.$otherspecial.”<br/>”;
?>
</p><!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<!–<style type=”text/css”>
.t{font-size:bold; text-color:blue; font-family:arial; text-decoration:none; align:}
</style>–>
<script language=”javascript”>
function check()
{
if(document.ezynes.name.value==”")
{
alert(“please enter your name”)
return false
}
if(document.ezynes.email.value==”")
{
alert(“please enter your email”)
return false
}
if(document.ezynes.comments.value==”")
{
alert(“please enter your comments?”)
return false
}
return true
}
/*gener male female*/
if ( ( document.contact_form.gender[0].checked == false )
&& ( document.contact_form.gender[1].checked == false ) )
{
alert ( “Please choose your Gender: Male or Female” );
valid = false;
}
</script>
</head>
<body>
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
</head>
<body>
<form action=”file.php” method=”post” enctype=”multipart/form-data”>
<table><tr><td>
<INPUT size=35 name=”fileupload” type=”file” ></input>
<input type=”submit” value=”upload”>
</td></tr></table>
</form>
</body>
</html>
———————————————————————————
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″>
<script language=”JavaScript”>
alert(“hi”);
</script>
</head>
<body>
<?php
echo “welcome”;
$src=$_FILES['fileupload'] ['tmp_name'];
$desc=$_FILES['fileupload'] ['name'];
if(is_uploaded_file($src))
{
echo “<br>This file is uploaded file”;
}
else
{
echo “<br>This file is not uploaded file”;
}
$desc=”./abc.txt”;
echo $desc;
if (move_uploaded_file($src,$desc)){
echo “<br>uploaded”;
}
else
{
echo”<br>Not uploaded”;
}
$filename = $_FILES['fileupload']['name'];
$tmpname = $_FILES['fileupload']['tmp_name'];
$size = $_FILES['fileupload']['size'];
$path = “file/”.$filename;
move_uploaded_file($tmpname,$path);
?>
</body>
</html>
Must follow these articles
· http://tips.webdesign10.com/basic-drupal-seo-on-site-optimization
· http://drupal.org/node/67767
· http://www.brianchappell.com/drupal-seo-tutorial/
· http://blamcast.net/articles/drupal-seo
DRUPAL BLOG MODULE http://drupal.org/handbook/modules/blog
You must enable the “recent blog posts” block at administer >> blocks to show the 10 most recent blog posts. and include on homepage
5 static html pages that are SEO optimised and functionality to be able to easily add additional static html pages
Simplenews or other similiar newsletter application http://drupal.org/project/simplenews
Feedback http://drupal.org/project/feedback
Advanced Forum http://drupal.org/project/advanced_forum
1. Google Keyhaviour
2. Google Analytics
3. URLify | Pathauto Module
4. XML Sitemap
5. MetaTags
6. Global Redirect
7. Search 404
8. Service Links / Digg This
9. Aggregator on homepage
10. Find URL Alias
EXPERIENCE CERTIFICATE
May 0000000
This is to certify that Mr. MH was employed by ABC from 02.01.2001 till 01.03.06. ABC has almost 350 employees .During his final year Mr MH was a Project Manager of the Software Development Section, which has 60 employees.Mr. MH is a responsible, hard working and honest person. The management was highly pleased and satisfied with his performance.
Mr. MH joined us as a Junior Software Engineer in January 2001 and his duties included development using Microsoft Technologies such as Visual Basic 6.0, ASP (Active Server Pages), XML and Microsoft SQL Server. He also took part in designing and documenting the project with UML (Rational Rose 2000).
It is our company policy that we have a 6 month probation period for new hirings but on the basis of his performance and good technical skills, his employment was confirmed within 3 months.
In September 2001, Mr MH worked in a team to develop a paperless virtual back office system for the UK based company; APL Pvt. Ltd. In January 2002, he was promoted to Software Engineer and his new responsibilites were: preparing the Detail Design Specification document, communicating design with other developers, participating in development by Microsoft SQL Server 2000, VB 6.0, XML, ASP and UML, project documentation and client meetings.
In August 2002, we won another UK contract to develop the accounting, payroll and financial systems for GGP PLC. We held an in-house competition (is that really the right word?)to choose the team to work on the account. Mr. MH was among top three employees in that competition so he was put in the team as Senior Software Engineer. Now his responsibilities were: correspondence with our UK clients, understanding their requirements, preparing the documents, designing the system, getting approval from the client and developing it. He used ASP and SQL Server 2000.
In 2003, Mr MH was promoted to Team Leader for a major software project that involved computerisation of land records in Pakistan. His responsibilities were: meeting with clients to prepare the specification document, functional specification, project plan, maintaining schedules for rest of the team members, designing the architecture of the applications and managing the whole team..
In October 2004,we participated in GITEX in Dubai, and we selected Mr MH to represent us there.
In November 2004 we started developing a product named UREMIS and keeping in view the leadership, motivating, analytical and designing capabilities of Mr. MH, he was appointed its Project Manager. He was responsible for the recruitment of the team, monitoring day to day functions of the project, defining standards and processes, supervising and guiding the project team, monitoring and evaluating the progress. He was actively involved in the day to day administration of the activities, appraisal of staff performance, coordinating and managing the overall performance of the staff. He was then involved in presenting the product to prospective clients and won several accounts for us.
Since he has been employed by us, MR MH has shown an excellent attitude to his work, has been a popular member of our team, and contributed to our success. By implementing a continuous improvement strategy he has made his department an example for the other departments. He has proved a good trainer and mentor for his staff. He has redesigned and reengineered the software development infrastructure and procedures to meet the intense and ever increasing demand of latest technologies of Information technology.
Due to his skills, commitment and continued hard work, we wish him success in his ambitions.
For ABC (Pvt) Ltd
XYZ
Human Resource Manager.
insertHeader();
insertMenu(‘nrm_usage’);
<a href="URL" title="CAPTION" rel="gb_image[]">HTML</a>
<a href="http://static.flickr.com/119/294309231_a3d2a339b9.jpg" title="Flower" rel="gb_image[]">Show flower</a>
<a href="URL" title="CAPTION" rel="gb_imageset[NAME]">HTML</a><a href="URL" title="CAPTION" rel="gb_imageset[NAME]">HTML</a>
<a href="static_files/salt.jpg" rel="gb_imageset[nice_pics]" title="Salt flats in Chile">Salt flats</a><a href="static_files/night_valley.jpg" rel="gb_imageset[nice_pics]" title="Night valley">Night valley</a>
<a href="URL" title="CAPTION" rel="gb_page[WIDTH, HEIGHT]">HTML</a>
<a href="http://google.com/" title="Google" rel="gb_page[500, 500]">Launch Google.com</a>
<a href="URL" title="CAPTION" rel="gb_page_center[WIDTH, HEIGHT]">HTML</a>
<a href="http://google.com/" title="Google" rel="gb_page_center[500, 500]">Launch Google.com</a>
<a href="URL" title="CAPTION" rel="gb_page_fs[]">HTML</a>
<a href="http://google.com/" title="Google" rel="gb_page_fs[]">Launch Google.com</a>
<a href="URL" title="CAPTION" rel="gb_pageset[NAME]">HTML</a><a href="URL" title="CAPTION" rel="gb_pageset[NAME]">HTML</a>
<a href="http://google.com/" title="Google" rel="gb_pageset[search_sites]">Launch Google search</a><a href="http://search.yahoo.com/" rel="gb_pageset[search_sites]">Launch Yahoo search</a>
http://regexlib.com/
digits
^\d+$
classical Decimal
^\d+(?:\.\d{0,6})?$
Decimal with two points
^[-+]?[0-9]\d{0,7}(\.\d{1,2})?%?$
Currency(complete) format = 9,999,999,999.00
^\$?([0-9]{1,3},([0-9]{3},)*[0-9]{3}|[0-9]+)(.[0-9][0-9])?$
Note: This topic will be updated periodically with more regular expersions