Blog

Technologies update by Atul Kumar, All related to website development.

Update cakePHP version from 3.3.x to 3.4.x(latest) using composer

To update cakephp 3.3.x to 3.4.x latest version open conposer and user following command php composer.phar require “cakephp/cakephp:3.4.*” If you facing problem like below Problem 1 Installation request for aura/intl (locked at 1.1.1) Please use following command then. php composer.phar require “cakephp/cakephp:3.4.*” “aura/intl:^3.0.0”

Read More

How to detect device in various PHP platform like CakePHP

This is very simple and useful method to detect device like Android or iPhone in to your website in Core PHP and other platforms. Core PHP $iPhone = stripos($_SERVER[‘HTTP_USER_AGENT’],”iPhone”); $iPad = stripos($_SERVER[‘HTTP_USER_AGENT’],”iPad”); $Android = stripos($_SERVER[‘HTTP_USER_AGENT’],”Android”); CakePHP $isMobile = $this->request->is(‘mobile’); $isAndroid = stripos($this->request->header(‘User-Agent’), ‘Android’); $isIPhone = stripos($this->request->header(‘User-Agent’), ‘iPhone’); $isIPad = stripos($this->request->header(‘User-Agent’), ‘iPad’);

Read More

Characteristics of a Good Programmer

Here are the characteristics that can signal an applicant would make a great addition to your programming team. Impressive technical skills. One mistake many hiring managers make is hiring from a checklist of requirements. Instead of requiring three years of C++ and one year of Java, look at the big picture. A programmer who has […]

Read More

How to install Ruby-on-Rail

Steps to install ruby on rails on windows 7 Go to windows explorer, enter in “C” drive, create a new directory like ‘RubyOnRails’. Now goto command prompt enter in the directory RubyOnRails likewise ( c:\user\administrator\> cd/;  c:\>cd rubyonrails ; c:\RubyOnRails> ). now create a batch file (c:\RubyOnRails> notepad rors.bat;  ). It will ask to create […]

Read More

Dreamweaver Tips and tricks

Remove Unnecessary Space Between the lines. Open the file Click CTRL + F Select “Current document” in “Find in” (You can also select the folder if you have multiple files) Search in “Source code” Tick “Use regular expression” Type “[\r\n]{2,}” (without quotes) in “Find” Type “\n” (without quotes) in “Replace” Press “Replace All”

Read More

jQuery Tips and Tricks

 Disabling Right Mouse Click $(document).ready(function(){ $(document).bind(“contextmenu”,function(e){ return false; }); }); Determine Browser Suppose you were to determine the browser type of the browser currently in use. You can use the following piece of code to do this: $(document).ready(function() { // If the browser type if Mozilla Firefox if ($.browser.mozilla && $.browser.version >= “1.8” ){ // […]

Read More

PHP/CakePHP Useful Setting

PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) ini_set(‘memory_limit’, ‘-1’) Cakephp 1.2.x/1.3.x Set debug Mode on controller Configure::write(‘debug’, 2) User Third Party PHP file in cake php Step1:Copy File In location : App>>vendors>>FILENAME.php Step2: Use Following Code in Controller App::import(‘Vendor’, ‘FILENAME’);

Read More

cannot modify header information headers already sent [Solved]

No output before sending headers! Functions that send/modify HTTP headers must be invoked before any output is made. Otherwise the call fails: Warning: Cannot modify header information – headers already sent (output started at file:line) Some functions modifying the HTTP header are: header / header_remove session_start / session_regenerate_id setcookie / setrawcookie Output can be: Unintentional: Whitespace before <?php or after ?> UTF-8 Byte Order Mark Previous […]

Read More

Something you should know about PHP

PHP session timeout : Typically the default is 24 minutes (1440 seconds) Total Super Global Variables In PHP : 8 In PHP: == Operator checks only value of variables whereas === operator check’s value as well as data type of the variable. PHP Handles XML through the expat c library In PHP, the word “and” […]

Read More

Common Interview Question for Web developer 1

What industry sites and blogs do you read regularly? This question can give you an idea of how in-tune they are with the latest industry trends and technologies, as well as how passionate they are about webdev. It’ll help separate the people who do it as a career AS WELL as a hobby for those […]

Read More