Feeds:
Posts
Comments

<?

$ist=IST SERVER TIME;

$pst= PST SERVER TIME;

/*

Initially we need to find the IST,PST server time values. And then get the all relevant time variables for both(i.e $Year,$Month,$Day ..etc )

*/

?>

<script type=”text/javascript”>

//format new Date(year, month-1, day, hours, minutes, seconds, milliseconds.

//pass the server time variables to the corresponding arguments.

var ist=new Date(‘<?=$Year?>’,'<?=$Month-1?>’,'<?=$Day?>’,'<?=$H?>’,'<?=$M?>’,'<?=$S?>’);
var pst=new Date(‘<?=$Yearpst?>’,'<?=$Monthpst-1?>’,'<?=$Daypst?>’,'<?=$hr?>’,'<?=$mo?>’,'<?=$se?>’);

var montharray=new Array(“January”,”February”,”March”,”April”,”May”,”June”,”July”,”August”,”September”,”October”,”November”,”December”)

var shortmonth=new Array(“Jan”,”Feb”,”Mar”,”Apr”,”May”,”Jun”,”Jul”,”Aug”,”Sep”,”Oct”,”Nov”,”Dec”)

function padlength(what){

var output=(what.toString().length==1)? “0″+what : what

return output

}

function formatField(num, isHour)

{

if (typeof isHour!=”undefined”)

{ //if this is the hour field

var hour=(num>12)? num-12 : num

return (hour==0)? 12 : hour

//var hour=(num>23)? num-24 : num

//return hour

}

function displayTime(objTime,target,format)
{
objTime.setSeconds(objTime.getSeconds()+1)
var datestring=padlength(objTime.getDate()) + ” ” + shortmonth[objTime.getMonth()] + ” ” + objTime.getFullYear()
var timestring=padlength(objTime.getHours())+”:”+padlength(objTime.getMinutes())+”:”+padlength(objTime.getSeconds())
var hour = objTime.getHours();
var minutes = objTime.getMinutes();
var seconds = objTime.getSeconds();
var month = objTime.getMonth();
var date = objTime.getDate();
var year = objTime.getFullYear();
var ampm=(hour>=12)? “PM” : “AM”
document.getElementById(target).innerHTML=datestring+”, “+ formatField(hour,1) + “:” + formatField(minutes) + “:” + formatField(seconds) + ” ” + ampm + ” ” + format;

}
setInterval(“displayTime(ist,’IST’,'IST’)”, 1000);
setInterval(“displayTime(pst,’PST’,'PST’)”, 1000);

</script>

//and finally dont forget to call IST and PST divs

<div id=IST></div>

<div id=PST></div>

save the file as php file then run in browser. It will ticking ist,pst times

Any comments welcome.

My bike

Hi Friends,
I have purchased my Yamaha Gladiator 4 months back
Till now Im happy with the performance of the bike…Its pickup is so nice…….

As i am a new rider , looking comfotable.
As per my analysis there is no other 125cc bike will match with the performance of Gladi…
Its style too superb….When U r looking for a stylish,powerful and reliable bike then U can select the GLADI…..Its the best option for U.

According to me positive and negative abt GLADI is as follows

POSITIVE POINTS

# Stylish(fantastic)
# Powerful in that segment
# Easy Handling
# Nice Torque
# Good Pickup

NEGATIVE POINTS
* LESS MILEAGE( GETTING AROUND 45 in CITY)
* Little bit stiff on gear shift. Especially at high gear(Expecting that may coreected after 1st service…)
* Compared other bikes feels little bit noisy…..(compare with honda shine)…..But I love it…

If U r lokking for a 125cc sporting bike then go for GLADI……
whatever it may be,,,,The product is from YAMAHA….So U can trust on Engine for sure…..Their engines are well named for reliablity….NO other branded bike wont last like this…

If U r looking for a commuting bike then U can select any other …. GLADI is only for the people who loves bike riding….

உன்னிடம் சொல்லிவிடவென்று
உருவாக்கி வைத்த வார்த்தையொன்று
சொல்லப்படாமலேயே காத்திருக்கிறது
உனை கடக்கையில்,
வழக்கமான புன்னகையில்,
மணிக்கனக்கான உரையாடலில்,
ஒரு பொழுதினில்
என் கண்களோ, செய்கைகளோ
ஏதோ ஒன்று உணர்த்தியிருக்கக்கூடும்
நான் சொல்லிவிட துடிக்கும் வார்த்தைதனை
பாசாங்கில் பவனி வரும்
உன்னிடம் கூட எனக்கான வார்த்தை
தவமிருக்கக்கூடும்..

CakePHP is an open source web application framework written in PHP, modeled after the concepts of Ruby on Rails, and distributed under the MIT License.

Here the configuration

First install xampp which consists of Apache, PHP, and MySQL. The install process just copies some files to a specified folder.

Next

Get latest cake php

download

Let’s take a look at what CakePHP looks like right out of the box. You know what CakePHP looks like from a basic MVC request standpoint, but you’ll need to know how its files are organized as well.

  • app
  • cake
  • docs
  • index.php
  • vendors

When you download CakePHP, you will see four main folders. The app folder will be where you work your magic: it’s where your application’s files will be placed. The cake folder is where we’ve worked our magic. Make a personal commitment not to edit files in this folder. We can’t help you if you’ve modified the core. The docs folder is for the quintessential readme, changelog, and licensing information. Finally, the vendors folder is where you’ll place third-party PHP libraries you need to use with your CakePHP applications

CakePHP’s app folder is where you will do most of your application development. Let’s look a little closer and the folders inside of app.

config
Holds the (few) configuration files CakePHP uses. Database connection details, bootstrapping, core configuration files and more should be stored here.
controllers
Contains your application’s controllers and their components.
locale
Stores string files for internationalization.
models
Contains your application’s models, behaviors, and datasources.
plugins
Contains plugin packages.
tmp
This is where CakePHP stores temporary data. The actual data it stores depends on how you have CakePHP configured, but this folder is usually used to store model descriptions, logs, and sometimes session information.
vendors
Any third-party classes or libraries should be placed here. Doing so makes them easy to access using the vendor() function. Keen observers will note that this seems redundant, as there is also a vendors folder at the top level of our directory structure. We’ll get into the differences between the two when we discuss managing multiple applications and more complex system setups.
views
Presentational files are placed here: elements, error pages, helpers, layouts, and view files.
webroot
In a production setup, this folder should serve as the document root for your application. Folders here also serve as holding places for CSS stylesheets, images, and JavaScript files.
Steps
  • After that open “httpd.conf” located on “apache\conf” folder. Then uncomment the line that contains “mod_rewrite”
  • Afterwards, extract Cake somewhere in the “htdocs” folder. I usually put it in “htdocs\cake”.
  • The last step is to copy “database.php.default” in “app\config” of Cake’s folder to “database.php”. Then change the “$default” variable to suit your database settings
An example is:

class DATABASE_CONFIG
{
   var $default = array('driver' => 'mysql',
      'connect' => 'mysql_connect',
      'host' => 'localhost',
      'login' => 'root',
      'password' => '',
      'database' => 'test',
      'prefix' => '');
}

Which works with the default MySQL in xampp

Hello world!

Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!