A rewrite engine is software that modifies a web URL’s appearance (URL rewriting). Rewritten URLs (sometimes known as short, fancy URLs, or search engine friendly – SEF) are used to provide shorter and more relevant-looking links to web pages. The technique adds a degree of separation between the files used to generate a web page and the URL that is presented to the World.
Category Archives: general
Hotlinking
Hotlinking (also known as Inline linking, leeching, piggy-backing, direct linking, offsite image grabs, bandwidth theft) is the use of a linked object, often an image, from one site by a web page belonging to a second site. The second site is said to have an inline link to the site where the object is located.
Website builder
Website builders are tools that allow the construction of websites without manual code editing. They fall into two categories: on-line proprietary tools provided by web hosting companies, typically intended for users to build their private site; and software which runs on a computer, creating pages off-line and which can then publish these pages on any host. (The latter are often considered to be “website design software” rather than “website builders”.)
Online website builders
uCoz
Jimdo
Moonfruit
Squarespace
Weebly
Doomby
Webnode
Webs
Wix
What is .vm file?
VM file is a Velocity Macro File. Apache Velocity is a Java-based template engine that provides a simple yet powerful template language to reference objects defined in Java code.
Velocity macro files (VM) are Velocity`s templates, they are html files with variables that are substituted by Velocity.
command to list files in dos
dir /p – It will display all files one page at a time.
dir /w- You can use this command to list just the files and directories going horizontally
dir /s /w /p – Llist all the files and directories in the current directory and the sub directories after that, in one
dir /s – Lists the files in the directory that you are in and all sub directories after that directory
dir *.exe – The above command lists any file that ends with .exe.
dir >file.txt -Takes the output of dir and store it to the file file.txt
dir /s |find “i” |more – List all directories, one screen page at a time, and see the number of files in each directory and the amount of space each occupies.
dir /ad – List only the directories in the current directory.
page at a time.
dir /on-List the files in alphabetical order
dir /o-n- List the files in reverse alphabetical order.
Famous websites that use PHP
Facebook – World’s biggest social networking platform is developed in PHP
Yahoo! – World’s second largest search engine.
YouTube – Biggest video sharing website .
Wikipedia – Web encyclopaedia .
Align divs horizontally – CSS
</div>
Facebook like button
Display tweet button with number of tweets
Dynamically Add/Remove Any number of Textboxes
<?php $max_no_boxes=10; ?>
<script type="text/javascript">
function addnames() {
document.getElementById("totalnames").value =
Number(document.getElementById("totalnames").value) + Number(1);
if(Number(document.getElementById("totalnames").value)>=
Number(<?php echo $max_no_boxes ?>)){
document.getElementById("totalnames").value=<?php echo $max_no_boxes ?>;
document.getElementById("nameButton").style.display="none";
}
document.getElementById("name"+document.getElementById("totalnames").value)
.style.display="block";
}
function removenames() {
document.getElementById("name"+document.getElementById("totalnames").
value).style.display="none";
document.getElementById("totalnames").value =
Number(document.getElementById("totalnames").value) - Number(1);
if(Number(document.getElementById("totalnames").value)<
Number(<?php echo $max_no_boxes ?>))
document.getElementById("nameButton").style.display="block";
}
</script>
<table>
<tr>
<td valign="top">Name</td>
<td valign="top">
<div class="project_right">
<?php for($i=2;$i<=$max_no_boxes;$i++) { $nameValue = "name".$i; ?>
<div style="display:<?php echo $totalnames>= $i ?"block":"none"; ?>"
id="name<?= $i ?>">
: <input type="text" name="name<?= $i ?>" class="projectText"
value="<?php echo $$nameValue ?>">
<a href="javascript:return false;" onClick="javascript:removenames();">Remove</a>
</div>
<?php } ?>
<div style="width:175px;; clear: left; float:left">:
<input type="text" name="name1" class="projectText"
value="<?php echo $name1 ; ?>">
</div>
<div style="width:20px; clear: none; float:left">
<a id="nameButton" href="javascript:return false;"
onClick="javascript:addnames();">Add</a>
</div>
<input type="hidden" id="totalnames" name="totalnames"
value="<?php echo $totalnames==""?1:$totalnames; ?>" />
</div>
</td>
</tr>
</table>