Posts

google talk multiple login

google talk multiple login 1. Right-click on the desktop 2. Select New 3. Select Shortcut 4. Paste this into the text box: "c:\program files\google\google talk\googletalk.exe" /nomutex 5. Click Next . Name it whatever: Google Talk Multiple, etc. 7. Click OK until you are done

Time Zone Error in Cake php

PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date. timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Los_Angeles' for '-8.0/no DST' instead in C:\xampp\htdocs\cake_1_2\cake\libs\cache.php on line 429   Warning in cake to resolve this you have to follow this path. Yourfoldername/cake/libs/cache.php Open this file Press ctrl+g and go line no. 570 You will find the code like this if (!is_numeric($this->settings['duration'])) {           $this->settings['duration'] = strtotime($this->settings['duration']) - time();     }    return true; simply paste this code:    date_default_timezone_set('UTC'); Example: if (!is_numeric($this->settings['duration'])) {                                 d

how to Dreamweaver read the CakePHP Files or Opening CakePHP Files in Dreamweaver?

In cake php there are two type of file which is mostly used in cake php THTML and CTP Files. So in dreamweaver There are ultimately 3 files that you need to edit. Path of file is C:\Program Files\Adobe\Adobe Dreamweaver CS3\configuration Open this folder and Open up “Extensions.txt” and on the first line at the very end add THTML and CTP separated by commas, in this file there is line like this MASTER,THTML,CTP:All Documents Similarly add these two extensions to the “:PHP Files” line. PHP,PHP3,PHP4,PHP5,TPL,THTML,CTP:PHP Files Next open the “DocumentTypes” folder and edit the “MMDocumentTypes.xml” file, just open it up using notepad or wordpad. Search for the line which has an id “PHP_MySQL” and add the THTML/CTP file extensions to both the “winfileextension” and “macfileextension” so the line should read: 1. winfileextension="php,php3,php4,php5,thtml,ctp" 2. macfileextension="php,php3,php4,php5,thtml,ctp" The final file is another version of t

How to write a where query in cakephp?

write a where query in cakephp    $var = $this->module->find('all',array('conditions' =>array('name' => 'xyz')));    this->set('user',$var); Note:- where 'all' is putting all field from table; you can replace 'all' by single field name also; 'name => xyz' is condition of query in cake php; 'user' is a variable which you will use in view folder for a page; // example: foreach($user as $users) in index.php

How to setup a 301 Redirect in php

A 301 HTTP response status code is a way of telling search engines that a page, pages, directory or entire website has been permanently moved to another place on the web. This is very useful if you have changed the structure of your websites url’s or if you have moved domain. You can also redirect your entire site. Whereas a 301 code tells search engines that something has been permanently moved , a 302 code tells search engines that something has been temporarily moved . This is useful if you only want to redirect a page for a short period of time. To do a 302 redirect simply change the 301 part to 302. You can also use 303, which is means ’seeother’ and the page has been replaced by something else. Again, to do this simply substitute 301 with 303 in the tutorials below. How to setup a 301 Redirect The basic code for redirecting is : Redirect 301 old_location new_location   The old location of the file has to be the absolute path from the root of your server. The new

150 useful run commands

To Access… Run Command Accessibility Controls access.cpl Accessibility Wizard accwiz Add Hardware Wizard hdwwiz.cpl Add/Remove Programs appwiz.cpl Administrative Tools control admintools Adobe Acrobat (if installed) acrobat Adobe Designer (if installed) formdesigner Adobe Distiller (if installed) acrodist Adobe ImageReady (if installed) imageready Adobe Photoshop (if installed) photoshop Automatic Updates wuaucpl.cpl Bluetooth Transfer Wizard fsquirt Calculator calc Certificate Manager certmgr.msc Character Map charmap Check Disk Utility chkdsk Clipboard Viewer clipbrd Command Prompt cmd Component Services dcomcnfg Computer Management compmgmt.msc Control Panel control Date and Time Properties timedate.cpl DDE Shares d