How to find PHP version through command prompt in windows?

How to find PHP version through command prompt in windows?



This question may get asked in PHP interview.

You just need to find out where is your PHP folder. If you are using XAMPP or WAMP then you will see a php folder. You just need to go into the php folder as:
 xampp -> php
wamp -> php

Now open command prompt here, And then just type in this command as :

   C:\xampp\php>php -v

    Then you will see something like:

PHP 5.5.19 (cli) (built: Nov 12 2014 12:35:44)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies


C:\xampp\php>

Your command prompt window should like this:


----
Keep reading, keep learning.

PHP Developer Salary: How much does a PHP Developer make?





In India, It's depends upon company, location and your skills. An average starting annual salary of php developer is near to 90,0000 INR that goes up to 4.50 lakhs in a three years of time.

In India, starts from as low as 8k/month to as high as 1.5L/month. Although low paying sections are more occupied.

As a programmer you need to have a very good understanding of how development technologies works in general and how are they co-related.

Summary:
For Freshers its 8-12K.
After 1 year - 16K
After 2 year - 22K
After 3 Year - 30K
After 4 Year - 36K
After 5 Year - Upto 45K
-60K


PHP Developer Salary depends on experience, logic, ideas, innovation, contacts, business development etc etc stuff. 

Learn and earn. 




Walk Ins for PHP Developer (16th and 17th Aug'16) : Noida

About Chetu:
Founded in 2000, Chetu is SAS 70 Type II Certified Global Information Technology Company that specializes in Application software development, Systems integration, business intelligence, mobile and Infrastructure Support. 


Experience required for the Job: 2 - 4 years

Interview at Chetu India (P) Ltd
Information Technology Services for the position of PHP Developer. 


Required Skills:-
- Experience in PHP & MySQL, various open source frameworks,
- Strong knowledge of JavaScript, XHTML, CSS, AJAX, SQL.
- Excellent communication, self motivator, team player, ability to solve complex problems, design & requirements documentation.


Job Location:- Noida.

Venue Details: 
Chetu India (P) Ltd. - Software Development Excellence
A - 186/187, Sector 63, 
Noida UP - 201301.
Opposite Fortis Hospital







Contact:
Siddarth Thakur
HR Team
Chetu India Pvt Ltd - Delivering World-Class IT Solutions
Office IN : 0120-4237301 | URL : www.chetu.com 
 
 

Why this" i" in every for loop (outer) and "j" in inner for loop?


One idea is that i is used for "index".

Answer1:
One major factor for such practice could be the resources available. Majority of programming books and online resources follow the same notation. They tend to use 'i' for outer and 'j' for the inner loop, irrespective of the programming language used. While starting to program, you can easily get used to what you see regularly.

Why is it 'i' and not 'a' or 'b'? Well, loops are normally used while iterating an array. The elements are accessed through their index. Instead of using the name 'index', I can simply use 'i'. What about 'j'? I really don't know. Let me guess. The letter 'j' follows 'i'.

Answer2:

i and j have been used in maths long before it was used in programming. It is also used in papers that predate higher level languages (remember seeing stuff like  "Xi,j").

Well when fortran was designed they apparently followed the same trend, that they assigned alphabets starting with i to n to integers and and all other would default to real number(floating point).

Most people seem to have seen little reason to change that. It's widely known and understood, and quite succinct. Every once in a while you see something written by some psychotic who thinks there's a real advantage to something like:

for (int outer_index_variable=0; outer_index_variable < 10; outer_index_variable++)  
 for (int inner_index_variable=0; inner_index_variable<10;        inner_index_variable++)   
      x[outer_index_variable][inner_index_variable] = 0;

Thankfully this is pretty rare though, and most style guides now point out that while long, descriptive variable names can be useful, you don't always need them, especially for something like this where the variable's scope is only a line or two of code.


CodeIgniter: Best PHP Framework for beginner

After writing first post on CodeIgniter I decided to write this.

CodeIgniter is better for a beginner.
If you know PHP programming (basics), CodeIgniter is for you.





All frameworks I can think of in the PHP world are strongly object oriented, so provided you're comfortable with that, you should be in a good place to make a start. The advantage with using a framework is that you can learn best practices, which is especially important in the PHP ecosystem - as a PHP programmer myself I can tell you that there are a number of poor practices that are passed around on blogs etc, and it will pay to learn from the correct sources.

As we know, Codeigniter is a Model/View/Controller (MVC) based framework so this is best structure to build any application. Each request comes to controller and performing any database interaction though Model, all out put goes to View for the end result. Where as, in custom PHP each single page serves as MVC where we can see so much complexity.

Pros of CodeIgniter: 

  • Super easy to set up and use. This makes the entry level for a newer PHP developer much lower.
  • Extremely well-documented, with examples in a lot of places to illustrate usage.
  • Extremely fast.
  • Huge community. As with Cake, since CI has been around so long you can almost always find your answer via Google, CI forums, or their IRC channel. This also means there’s lots of code contribution to help get things done (like Paypal libraries, etc)


Ready to Go & Almost Zero Configuration:
If you are going to start a new project with custom PHP then you obviously need to set and collect couple of files to get this start. You must need to build database & other configuration files. Mostly, developers have to write everything from scratch. In Custom development, we will see database queries and other php functions being used directly into lot of files. Following are few files we need in custom development.

Custom PHP
– connection.php
– config.php
– Database.Class.php
– login.php
– logout.php

CodeIgniter
In Codeigniter we dont need to worry about such classes and configurations. We will only need to download latest version from there website and after unzipping and setting up few things you are ready to go. The whole zip comes with 3 folders usually,

– application
– system
– user_guide

The system/ folder contains all libraries and classes which we can add and use in our application. We dont need to do anything with system folder because all our work will go to application folder. The application folder is a set of folders and each folder name defines the purpose of its creation.

These two files are needed to setup in CodeIgniter:

– application/config/config.php file with a text editor and set your base URL.
– application/config/database.php If you intend to use a database then set your database settings.

Download CodeIgniter from here.