$foo = “Variable!\n”;
$bar = “foo”;
$wom = “bar”;
$bat = “wom”;
print $foo;
print $$bar;
print $$$wom;
print $$$$bat;
Here if you will print the output you will get
Variable! Variable! Variable! Variable!
Archive for April, 2008
variable variables interesting ??
April 23, 2008what is the difference between “23″ and “\x23″
April 22, 2008023 is octal number where as x23 is a hex number.
how to find difference between two revisions in svn
April 22, 2008shell > svn diff -r filename
It will show +++++ where the changes had been done.
how to get number of arguments in functions
April 21, 2008well we can get it by using “func_num_args“
most important thing is that we have to call this function inside the called function
like
function example(1,2,3)
{
$num=func_num_args();
return $num;
}
how can you call the constructor for parent class
April 21, 2008parrent :: constructor($value)
example is :
class A {
function example() {
echo “I am A::example() and provide basic functionality.\n”;
}
}
class B extends A {
function example() {
echo “I am B::example() and provide additional functionality.\n”;
[...]
how can we send mail through javascript
April 21, 2008Here we can send email by using “mailto” function in javascript
here is the script to do the task
function sendEmail(formName)
{
var inputMessage=document.formName.msgbox.value;
location=”mailto:emailaddress@domainname.com?subject=hi&message=”+inputMessage;
return true;
}
how to open your pc in 10 seconds
April 21, 2008Follow the following steps:
1) Press start button .
2) Click on run
3) write regedit and press enter
4) search for HKEY_LOACAL_MECHINE\SYSTEM\CurrentControlSet\Control\ContentIndex
5) now there u find the “Startup Delay”
6) double click on it . its default value is 4800000 (75300:hexadecimal)
7) change the setting to 400000
restart your computer and you are all set.
how to start/stop mysql in windows in dos
April 21, 2008DOSĀ > net start mysql
this will start mysql
DOS> net stop mysql
this will stop mysql
mysql transaction
April 19, 2008it is the set of instructions or queries i.e is either executed or rolled backas a single atomic unit.
berkeleyDB and mysql are two storage engines that support mysql transaction.
mysql table locks
April 19, 2008There is 3 types of table locking.
1) table level locking // locks the entire table
2) page level locking // locks some [...]