Free Essay

Essay on Business Operations Management

In:

Submitted By dipti
Words 5893
Pages 24
8956860531

Am I speaking to .... ?
Hi I'm calling from
Is it right time to start interview? can we start? ur resume is in front of me u r from ... right? but we are based in pune, r u ready to move here how many companies u have worked in till now? then why would u like to switch?

so far u have worked in (number) projects were they all in core php? if not then in what other framework? then ask about that framework so u have experiance in oop then ask oop questions then go to php questions then go to my sql then js

I think thats all we need our hr will get back to u with the decision/result but before that may i know ur current ctc and expected ctc? and is it negotiable?

PHP:
1) What is use of header() function in php ?
The header() function sends a raw HTTP header to a client.We can use herder() function for redirection of pages. It is important to notice that header() must be called before any actual output is seen..
2) what does the error message "header already sent" mean?
Ques: 10 How we can upload videos using PHP?
Ans:
When want to upload videos using PHP we should follow these steps:
1.first you have to encrypt the the file which you want to upload by using "multipart-form-data" to get the $_FILES in the form submition.
2.After getting the $_FILES['tmp_name'] in the submition
3.By using move_uploaded_file (tmp_location,destination) function in PHP we can move the file from original location.

3) What is the difference between $name and $$name?
$name is variable where as $$name is reference variable like $name=sonia and $$name=singh so $sonia value is singh.

4) What are the differences between require and include?
Both include and require used to include a file but when included file not found
Include send Warning where as Require send Fatal Error .

5) Can we use include ("xyz.PHP") two times in a PHP page "index.PHP"?
Yes we can use include("xyz.php") more than one time in any page. but it create a prob when xyz.php file contain some funtions declaration then error will come for already declared function in this file else not a prob like if you want to show same content two time in page then must incude it two time not a prob

7)How we get IP address of client, previous reference page etc ? By using $_SERVER['REMOTE_ADDR'],$_SERVER['HTTP_REFERER'] etc

How can we get second of the current time using date function?
$second = date("s");

Ques: 8 What function we used to change timezone from one to another ?
Ans:
I have given you a function using them we can change a timezone into another timezone. date_default_timezone_set() function
Example:
date_default_timezone_set('India');
And we use date_default_timezone_get() function to get the entered date.

8)What are the reasons for selecting lamp (Linux, apache, MySQL,
PHP) instead of combination of other software programs, servers and operating systems?
All of those are open source resource. Security of Linux is very very more than windows. Apache is a better server that IIS both in functionality and security. MySQL is world most popular open source database. PHP is more faster that asp or any other scripting language.

9) What is the role of ob_start in php?
This function will turn output buffering on. While output buffering is active no output is sent from the script (other than headers), instead the output is stored in an internal buffer. http://php.net/manual/en/function.ob-start.php 10) What is the difference between break and continue statement? break ends a loop completely, continue just shortcuts the current iteration and moves on to the next iteration.

http://stackoverflow.com/questions/4364757/difference-between-break-and-continue-in-php

http://php.net/manual/en/control-structures.continue.php continue 0; and continue 1; is the same as running continue;.

11) Can we give parameter to continue()? continue accepts an optional numeric argument which tells it how many levels of enclosing loops it should skip to the end of.

What is the difference between the functions unlink and unset? unlink() is a function for file system handling. It will simply delete the file in context. unset() is a function for variable management. It will make a variable undefined.
How do I open a file to write content to?
Working with files and folders in PHP is fairly easy though it can take a little while to get used to.

You need to create a filehandle, which is a pointer to a file, that you wish to write too.

Use the fopen function to open a file, and pass the name of the file as the first parameter and what you want to do with it second - in this case 'w' for write.

Then simple use fwrite to write to your file, and close it with fclose.

Here's a simple example that will create a file in the directory called example.txt and write to it with just a few lines of PHP code.

<?php

$myfile = fopen("example.txt","w"); fwrite($myfile,"That was easy!"); fclose($myfile); ?>
For printing out strings, there are echo, print and printf. Explain the differences. echo is the most primitive of them, and just outputs the contents following the construct to the screen. print is also a construct (so parentheses are optional when calling it), but it returns TRUE on successful output and FALSE if it was unable to print out the string. However, you can pass multiple parameters to echo, like:
<?php echo ‘Welcome ‘, ‘to’, ‘ ‘, ‘fyicenter!’; ?> and it will output the string “Welcome to fyicenter!” print does not take multiple parameters. It is also generally argued that echo is faster, but usually the speed advantage is negligible, and might not be there for future versions of PHP. printf is a function, not a construct, and allows such advantages as formatted output, but it’s the slowest way to print out data out of echo, print and printf.

12) What is the difference between mysql_fetch_object and mysql_fetch_array? String Function :

1)what does php strstr do? What is the equivalent javascript method?
Find the first occurrence of a string

what is output of: $e = false || true; $f = false or true; stristr is case-insensitive means able not able to diffrenciate between a and A
2)I want to combine two variables together: $var1 = 'Welcome to '; $var2 = 'TechInterviews.com'; What will work faster? Code sample 1: $var 3 = $var1.$var2; Faster Or code sample 2: $var3 = "$var1$var2";

3) What’s the difference between htmlentities() and htmlspecialchars()? - htmlspecialchars only takes care of <, >, single quote ‘, double quote " and ampersand. htmlentities translates all occurrences of character sequences that have different meaning in HTML.
Would you initialize your strings with single quotes or double quotes?
Since the data inside the single-quoted string is not parsed for variable substitution, it’s always a better idea speed-wise to initialize a string with single quotes, unless you specifically need variable substitution.

How can I check if a value is already in an array?
<?php
$values = array("banana","apple","pear","banana");
$newvalue = "pear"; if (in_array($newvalue,$values)) { echo "$newvalue is already in the array!"; }
?>
How can I create an array of the letters of the alphabet?
$letters = range(a,z);

How can I easily view all members of an array?
I want to invert my array, can I do this?
<?php
$values = array("Fred","Bob","George"); print_r($values); $values = array_flip($values); print_r($values); ?>
Array
(
[0] => Fred
[1] => Bob
[2] => George
)
Array
(
[Fred] => 0
[Bob] => 1
[George] => 2
)
How do I remove the first element from an array?
<?php
$values = array(1,2,3,4,5,6,7,8,9,10);
$first = array_shift($values); echo "First value was: $first"; print_r($values); ?> First value was: 1
Array([0] => 2[1] => 3[2] => 4[3] => 5[4] => 6[5] => 7[6] => 8[7] => 9[8] => 10)
How we use array_search() in PHP?
When we use array_search() function if it found the particular value than it will return index corresponding to array value.
Example:
<?php
$Emp_name_array = array(0 => 'vivek', 1 => 'umang', 2 => 'shrish', 3 => 'jalees');
$key = array_search('umang', $Emp_name_array);
// return $key = 1;
$key = array_search('vivek', $Emp_name_array); // return $key = 0;
?>

Ques: 5 How you differentiate among sort(),assort() and Ksort()?
1) sort()
This function sorts an array. Elements will be arranged from lowest to highest when this function has completed.
2) asort()
This function sorts an array such that array indices maintain their correlation with the array elements they are associated with. This is used mainly when sorting associative arrays where the actual element order is significant. 3) ksort()
Sorts an array by key, maintaining key to data correlations. This is useful mainly for associative arrays.

SESSION :
1)what is session?

2)default session time?
1440 seconds(24 minutes)

3)Can we change it? And how can we change it? through ini_set() method.
<?php
$intTime=152; ini_set("session.gc_maxlifetime",$intTime);?> 4) default session save path? session_save_path() returns the path of the current directory used to save session data.

COockies :

what is cookie?

how can we create cookie? bool setcookie ( string $name [, string $value [, int $expire = 0 [, string $path [, string $domain [, bool $secure = false [, bool $httponly = false ]]]]]] )

what is persistent cookie ?
A persistent cookie is a cookie which is stored in a cookie file permanently on the browser's computer. By default, cookies are created as temporary cookies which stored only in the browser's memory. When the browser is closed, temporary cookies will be erased. You should decide when to use temporary cookies and when to use persistent cookies based on their differences:

Temporary cookies can not be used for tracking long-term information.

Persistent cookies can be used for tracking long-term information.

Temporary cookies are safer because no programs other than the browser can access them.

Persistent cookies are less secure because users can open cookie files see the cookie values.

Error types in php ?
1. Notices: These are trivial, non-critical errors that PHP encounters while executing a script - for example, accessing a variable that has not yet been defined. By default, such errors are not displayed to the user at all - although you can change this default behaviour.

2. Warnings: These are more serious errors - for example, attempting to include() a file which does not exist. By default, these errors are displayed to the user, but they do not result in script termination.

3. Fatal errors: These are critical errors - for example, instantiating an object of a non-existent class, or calling a non-existent function. These errors cause the immediate termination of the script, and PHP?s default behavior is to display them to the user when they take place.

difference between explode and split ?
Split function splits string into array by regular expression.
Ex. split(" :", " Jaipur : Delhi : Noida ");
- Explode splits a string into array by string.
Ex. explode(" and", "Jaipur and Delhi and Noida")

6) What is htaccess? Why do we use this and Where?
.htaccess files are configuration files of Apache Server which provide a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof.
Ques: 20 How we can increase the execution time of a PHP script?
Ans:
I have given you some function using them you can increase the execution time of a PHP script.Default time for execution of a PHP script is 30 seconds.
These are,
1.set_time_limit()//change execution time temporarily.
2.ini_set()//change execution time temporarily.
3. By modifying `max_execution_time' value in PHP configuration(php.ini) file.//change execution time permanent.

Why Yii is so Fast
Yii is so much faster because it is using the lazy loading technique extensively. For example, it does not include a class file until the class is used for the first time; and it does not create an object until the object is accessed for the first time. Other frameworks suffer from the performance hit because they would enable a functionality (e.g. DB connection, user session) no matter it is used or not during a request.
What are the different features of this framework?

OOPS Question: [Framework]
What are the differences between procedure-oriented languages and object-oriented languages?
Answers : 23 There are lot of difference between procedure language and object oriented like below
1>Procedure language easy for new developer but complex to understand whole software as compare to object oriented model
2>In Procedure language it is difficult to use design pattern mvc , Singleton pattern etc but in OOP you we able to develop design pattern
3>IN OOP language we able to ree use code like Inheritance ,polymorphism etc but this type of thing not available in procedure language on that our Fonda use COPY and PASTE .

1) What is Constructor / Destructor : constructor method is called for every object creation.We can call parent's constructor method using parent::__construct() from the child constructor.This method is called as soon as the references of the object are removed or if we destroy the object . This feature has been included in PHP 5. Like constructor method we can call the destructor method of parent class by parent::__destruct().
2) What are access modifiers?
Access modifiers decide whether a method or a data variable can be accessed by another method in another class or subclass. four types of access modifiers:
Public: - Can be accessed by any other class anywhere.
Protected: - Can be accessed by classes inside the package or by subclasses ( that means classes who inherit from this class).
Private - Can be accessed only within the class. Even methods in subclasses in the same package do not have access.
Default - (Its private access by default) accessible to classes in the same package but not by classes in other packages, even if these are subclasses. 3) what is final keyword?
Final keyword prevents child classes from overriding a method of super or parent class. If we declare a class as final then it could not have any child class that means no class can inherit the property of this class. 4) what is autoload Magic Method ?
The autoload() magic method of PHP5 get automatically called whenever you try to load an object of class which resides in separate file and you have not included those files using include,require and include_once. It is recommended to use the filename as that of the class name.
What is the use of friend function?
Sometimes a function is best shared among a number of different classes. Such functions can be declared either as member functions of one class or as global functions. In either case they can be set to be friends of other classes, by using a friend specifier in the class that is admitting them. Such functions can use all attributes of the class which names them as a friend, as if they were themselves members of that class. A friend declaration is essentially a prototype for a member function, but instead of requiring an implementation with the name of that class attached by the double colon syntax, a global function or member function of another class provides the match.
5) What is inheritance?
6) What are the types of inheritance?
7) Which types are supported by PHP?
8) what is alternative for multiple inheritance OR What is interface ?
PHP does not support multiple inheritance directly, to implement this we need Interface.
In PHP, signature of the method are declared in the Interface body, and the body part of the method is implemented in derived class. Variables are declared as constant and it can not be changed in the child classes.
We use implement keyword to extend this kind of class, at the same time we can implement more than one interface and one interface can be implemented by another interface.
All methods declared in an interface must be public and the variables should be constant.
This is mandatory that we must declare the body part of the method in the derived class otherwise an error message will be generated.
12) Explain the usage of encapsulation?
Encapsulation specifies the different classes which can use the members of an object. The main goal of encapsulation is to provide an interface to clients which decrease the dependency on those features and parts which are likely to change in future. This facilitates easy changes to the code and features.
13) Explain about abstraction?
Abstraction can also be achieved through composition. It solves a complex problem by defining only those classes which are relevant to the problem and not involving the whole complex code into play.
13) Explain about polymorphism?
Polymorphism helps a sub class to behave like a parent class. When an object belonging to different data types respond to methods which have a same name, the only condition being that those methods should perform different function.
14) Explain about overriding polymorphism?
Overriding polymorphism is known to occur when a data type can perform different functions. For example an addition operator can perform different functions such as addition, float addition etc. Overriding polymorphism is generally used in complex projects where the use of a parameter is more.
16) Explain about parametric polymorphism?
Parametric polymorphism is supported by many object oriented languages and they are very important for object oriented techniques. In parametric polymorphism code is written without any specification for the type of data present. Hence it can be used any number of times.
What’s the special meaning of __sleep and __wakeup?
__sleep returns the array of all the variables than need to be saved, while __wakeup retrieves them.
--------------- MYSQL ----------------------- what is the difference between sql and mysql
SQL means "structured query language" which is the syntax of commands you send to database. MYSQL is the database program which accepts the those commands and gives out the data.

1) - Table types or storage engines in mysql ? - deafult table type in mysql ?
Following tables (Storage Engine) we can create
1. MyISAM(The default storage engine IN MYSQL Each MyISAM table is stored on disk in three files. The files have names that begin with the table name and have an extension to indicate the file type. An .frm file stores the table format. The data file has an .MYD (MYData) extension. The index file has an .MYI (MYIndex) extension. )
2. InnoDB(InnoDB is a transaction-safe (ACID compliant) storage engine for MySQL that has commit, rollback, and crash-recovery capabilities to protect user data.)
3. Merge
4. Heap (MEMORY)(The MEMORY storage engine creates tables with contents that are stored in memory. Formerly, these were known as HEAP tables. MEMORY is the preferred term, although HEAP remains supported for backward compatibility. )
5. BDB (BerkeleyDB)(Sleepycat Software has provided MySQL with the Berkeley DB transactional storage engine. This storage engine typically is called BDB for short. BDB tables may have a greater chance of surviving crashes and are also capable of COMMIT and ROLLBACK operations on transactions)
6. EXAMPLE
7. FEDERATED (It is a storage engine that accesses data in tables of remote databases rather than in local tables.)
8. ARCHIVE (The ARCHIVE storage engine is used for storing large amounts of data without indexes in a very small footprint. )
9. CSV (The CSV storage engine stores data in text files using comma-separated values format.)
10. BLACKHOLE (The BLACKHOLE storage engine acts as a "black hole" that accepts data but throws it away and does not store it. Retrievals always return an empty result)

12. What does myisamchk do?
Ans: It compressed the MyISAM tables, which reduces their disk usage.

13. Explain advantages of InnoDB over MyISAM?
Ans: Row-level locking, transactions, foreign key constraints and crash recovery.

What are the differences between DROP a table and TRUNCATE a table?
DROP TABLE table_name – This will delete the table and its data.
TRUNCATE TABLE table_name – This will delete the data of the table, but not the table definition.

How do I access the current time with mysql?

<?php
$update = mysql_query("UPDATE my_users SET lastlogin = NOW() WHERE username = 'elvis'");
?>

15. What are HEAP tables in MySQL?
Ans: HEAP tables are in-memory. They are usually used for high-speed temporary storage. No TEXT or BLOB fields are allowed within HEAP tables. You can only use the comparison operators = and <=>. HEAP tables do not support AUTO_INCREMENT. Indexes must be NOT NULL.

16. How do you control the max size of a HEAP table?
Ans: MySQL config variable max_heap_table_size. 20. What happens when the column is set to AUTO INCREMENT and you reach the maximum value for that table?
Ans: It stops incrementing. It does not overflow to 0 to prevent data losses, but further inserts are going to produce an error, since the key has been used already.

4. What’s the default port for MySQL Server?
Ans: 3306

2) difference between mysql_connect() and mysql_pconnect() ?
When we are using mysql_connect() function, every time it is opening and closing the database connection, depending on the request .

But in case of mysql_pconnect() function,
First, when connecting, the function would try to find a (persistent) connection that’s already open with the same host, username and password. If one is found, an identifier for it will be returned instead of opening a new connection.
Second, the connection to the SQL server will not be closed when the execution of the script ends. Instead, the connection will remain open for future use (mysql_close() will not close connection established by mysql_pconnect()).

mysql_pconncet() is useful when you have a lot of traffice on your site. At that time for every request it will not open a connection but will take it from the pool. This will increase the efficiency of your site. But for general use mysql_connect() is best.

How do I find the longest value in my mysql table?
$q = mysql_query("SELECT LENGTH(firstname) AS thelength FROM myfriends ORDER BY thelength DESC LIMIT 1");
$longestname = mysql_result($q,0,0);

3) what is aggregate function ? ask any example if know ? ( MIN() , MAx() , AVG() , COUNT etc are aggregate funtions ) 4) simple query - find first 5 employees who has maximum salary - find empoyee who has second max salary 5) Joins and indexing

6) Join or sub-query which one is faster? - In most cases JOINs are faster than sub-queries and it is very rare for a sub-query to be faster.
In JOINs RDBMS can create an execution plan that is better for your query and can predict what data should be loaded to be processed and save time, unlike the sub-query where it will run all the queries and load all their data to do the processing.
The good thing in sub-queries is that they are more readable than JOINs: that's why most new SQL people prefer them; it is the easy way; but when it comes to performance, JOINS are better in most cases even though they are not hard to read too. How can I retrieve values from one database server and store them in other database server using PHP?
For this purpose, you can first read the data from one server into session variables. Then connect to other server and simply insert the data into the database.

JavaScript:
Are Java and JavaScript the Same?
No.java and javascript are two different languages.
Java is a powerful object - oriented programming language like C++,C whereas Javascript is a client-side scripting language with some limitations.
How to embed javascript in a web page? javascript code can be embedded in a web page between <script langugage="javascript"></script> tags
How do you submit a form using Javascript?
Use document.forms[0].submit();
(0 refers to the index of the form – if you have more than one form in a page, then the first one has the index 0, second has index 1 and so on).
1) What are JavaScript types? - Number, String, Boolean, Function, Object, Null, Undefined.

2) What does isNaN function do? - Return true if the argument is not a number.

3) What is negative infinity? - It’s a number in JavaScript, derived by dividing negative number by zero.

4) What boolean operators does JavaScript support? - &&, || and !
How to get the contents of an input box using Javascript?
Use the "value" property. var myValue = window.document.getElementById("MyTextBox").value;
What is the difference between an alert box and a confirmation box?
An alert box displays only one button which is the OK button whereas the Confirm box displays two buttons namely OK and cancel.
What is a prompt box?
A prompt box allows the user to enter input by providing a text box.
How to comment javascript code?
Use // for line comments and
/*
*/ for block comments

5) What does "1"+2+4 evaluate to? - Since 1 is a string, everything is a string, so the result is 124.

6) How about 2+5+"8"? - Since 2 and 5 are integers, this is number arithmetic, since 8 is a string, it’s concatenation, so 78 is the result.

7) What looping structures are there in JavaScript? - for, while, do-while loops, but no foreach.

8) How do you create a new object in JavaScript? - var obj = new Object(); or var obj = {};

9) How do you assign object properties? - obj["age"] = 17 or obj.age = 17.

10) What’s a way to append a value to an array? - arr[arr.length] = value;
What is === operator ?
==== is strict equality operator ,it returns true only when the two operands are having the same value without any type conversion.
How to disable an HTML object ? document.getElementById("myObject").disabled = true;
How to create an input box? prompt("What is your temperature?");
CHECK IF A VARIABLE IS AN INTEGER IN JAVASCRIPT

Codeingniter Questions:

1. What is the URL structure of codeigniter [CodeIgniter uses a segment-based approach] example.com/class/function/ID The first segment represents the controller class that should be invoked.
The second segment represents the class function, or method, that should be called.
The third, and any additional segments, represent the ID and any variables that will be passed to the controller.

2. How to load default libraries and helpers in php 3. Is CodeIgniter Does Require a Template Engine? 4. How can we Removing the index.php file? 5. How can we retrieve an item from your config file? 6. It is possible to create our own library in codeigniter.

CSS: 7. What is CSS?
1. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. Every element type as well as every occurrence of a specific element within that type can be declared an unique style, e.g. margins, positioning, color or size.
2. CSS is a web standard that describes style for XML/HTML documents. 8. ID's are unique: 9. Each element can have only one ID 10. Each page can have only one element with that ID 11. 12. Classes are NOT unique: 13. You can use the same class on multiple elements. 14. You can use multiple classes on the same element. 15. 16. Is CSS case sensitive?
Cascading Style Sheets (CSS) is not case sensitive. However, font families, URLs to images, and other direct references with the style sheet may be.
The trick is that if you write a document using an XML declaration and an XHTML doctype, then the CSS class names will be case sensitive for some browsers.
It is a good idea to avoid naming classes where the only difference is the case, for example: div.myclass { ...} div.myClass { ... }
If the DOCTYPE or XML declaration is ever removed from your pages, even by mistake, the last instance of the style will be used, regardless of case. 17. What is ID selector?
ID selector is an individually identified (named) selector to which a specific style is declared. Using the ID attribute the declared style can then be associated with one and only one HTML element per document as to differentiate it from all other elements. ID selectors are created by a character # followed by the selector's name. The name can contain characters a-z, A-Z, digits 0-9, period, hyphen, escaped characters, Unicode characters 161-255, as well as any Unicode character as a numeric code, however, they cannot start with a dash or a digit.
#abc123 {color: red; background: black}
<P ID=abc123>This and only this element can be identified as abc123 </P> 18. What is inline style? How to link?
Inline style is the style attached to one specific element. The style is specified directly in the start tag as a value of the STYLE attribute and will apply exclusively to this specific element occurrence.
<P STYLE="text-indent: 10pt">Indented paragraph</P> 19. Inline Styles Advantages
* Useful for small quantities of style definitions
* Can override other style specification methods at the local level so only exceptions need to be listed in conjunction with other style methods
Disadvantages
* Does not distance style information from content (a main goal of SGML/HTML)
* Can not control styles for multiple documents at once
* Author can not create or control classes of elements to control multiple element types within the document
* Selector grouping methods can not be used to create complex element addressing scenarios 20. 1. Explain float property. 21. 2. what is inline styling? what other different types exist? when is inline styling necessary (newsletters) 22. 3. what is z-index? 23. 4. Difference in a css class and css id.

------------- Ajax --------------------------
1) What is ajax ?

2) What is syncronus and asyncronus javascript ?
There are two ways that Ajax can access the server.
These are synchronous (wnere the script stops and waits for the server to send back a reply before continuing) and asynchronous (where the script allows the page to continue to be processed and will handle the reply if and when it arrives).

3) How many types of ready states in ajax? 0: request not initialized 1: server connection established 2: request received 3: processing request 4: request finished and response is ready 4) Using ajax can we upload files?

5) Can we submit form using ajax?

6) Can we use ajax in jQuery ?

7) How can we post data using ajax?

8) What is use of XML? (If he knows xml)

ZEND:
Does Zend Framework support PHP 4?
Where is the model in ZF's MVC implementation?
Is ZF a component library or a framework? (http://rathinasamyy.blogspot.in/2011/09/zend-framework-interview-questions.html)
11.what is routing and how it's work?
18.cacheZend_Cache provides a generic way to cache any data.
Caching in Zend Framework is operated by frontends while cache records are stored through backend adapters (File, Sqlite, Memcache...) through a flexible system of IDs and tags. Using those, it is easy to delete specific types of records afterwards (for example: "delete all cache records marked with a given tag").
The core of the module (Zend_Cache_Core) is generic, flexible and configurable. Yet, for your specific needs there are cache frontends that extend Zend_Cache_Core for convenience: Output, File, Function and Class.
Smarty:
1. What is Smarty?
Ans: Smarty is a template engine for PHP... but be aware this isn't just another
PHP template engine. It's much more than that.
2. What's the difference between Smarty and other template engines?
Ans: Most other template engines for PHP provide basic variable substitution and dynamic block functionality. Smarty takes a step further to be a "smart" template engine, adding features such as configuration files, template functions, variable modifiers (see the docs!) and making all of this functionality as easy as possible to use for both programmers and template designers. Smarty also compiles the templates into PHP scripts, eliminating the need to parse the templates on every invocation, making Smarty extremely scalable and manageable for large application needs.

1. can we use loop in smarty?
- loops in smarty: http://www.smarty.net/docsv2/en/language.function.section.tpl http://www.smarty.net/docsv2/en/language.function.foreach 1. How can we write an javascript code in template?
Ans: Surround your javascript with {literal}{/literal} tags.
----------------------
3. What do you mean "Compiled PHP Scripts"?
Ans: Smarty reads the template files and creates PHP scripts from them. Once these PHP scripts are created, Smarty executes these, never having to parse the template files again. If you change a template file, Smarty will recreate the PHP script for it. All this is done automatically by Smarty.
Template designers never need to mess with the generated PHP scripts or even know of their existance. (NOTE: you can turn off this compile checking step in Smarty for increased performance.)

6.How can I be sure to get the best performance from Smarty?
Ans: Be sure you set $compile_check=false once your templates are initially compiled. This will skip the unneeded step of testing if the template has changed since it was last compiled. If you have complex pages that don't change too often, turn on the caching engine and adjust your application so it doesn't do unnecessary work (like db calls) if a cached page is available. See the documentation for examples.
$this->config->system_url();
This function retrieves the URL to your system folder.

Payment Gateway :
Which payment gateway is used ? how can we configure Paypal,etc.?
Nothing more we have to do only redirect to the payPal url after submit all information needed by paypal like amount,adresss etc.
How to implement [handle] authentication or security issue?
How to handle error scenarios ?
How to handle transaction fail situation? how to implement quickbooks payment gateway? on quickbook's site a downloadable package is given just copy it and include the folder in our project folder how data is sent to quickbooks? generating an xml file of data, the code is given in the folder we just need to make changes in it according to our data how the response is obtained? call above file and function that generates the xml then internally sends the data and returns the response, on their site response meanings are given. how transactions can be viewed? on quickbooks site, with user's login details, all the history is maintained.
When to use quickbook? When we do not want user to leave our site to go to a payment gateway site (and do not want them to know which payment gateway we are using)

ECOMMORCE : what’s your favorite eCommerce platform to work with and why?

. What eCommerce engine do you most frequently suggest to your clients?
.Do you use templates for your projects and why?
. Are you a member of any eCommerce community?

WordPress
-wordpress is used for content management
How to install WordPress?
How to secure WordPress?
-two types of wordpress is single user or multi user (hya baddal search karun bagh thoda)
-uses of wordpress: blogging etc..
-installation is a zip file that can be downloaded online

Similar Documents

Premium Essay

Operation and Chain of Supply

...TermPaperWarehouse.com - Free Term Papers, Essays and Research Documents The Research Paper Factory JoinSearchBrowseSaved Papers Home Page » Business and Management Operations and Supply Chain Case Studies In: Business and Management Operations and Supply Chain Case Studies Operations and Supply Chain Case Studies In today’s environment of global shopping where the demand for products is as wide as the number of firms offering them, orders can be placed in advance or at a moment’s notice from across the globe. The question of the manufacturer or reseller is how to best manage production across the supply chain. This paper will have two parts to it; part one will review the case study of the Realco Breadmaster. It will provide analysis on the current supply chain management and will make recommendations for a more strategic approach. Part two will focus on a case study for Toyota. This case will focus on quality and the Lean philosophy. First, it is important to provide some foundation support of what operations and supply chain management entail. Every firm or organization must make a product or provide a service to someone that is needed or valued. Operations are the collection of people, technology, and systems that are in a firm whose primary responsibility is to provide the company’s products or services (Bozarth & Handfield, 2008). “Supply chain is the network of manufacturers and service providers that convert and move good from...

Words: 526 - Pages: 3

Premium Essay

Scientific Management

...Scientific Management - Scientific Management This essay will critically evaluate the scientific management’s importance and its contribution in the current management context. In this era of rapid economic development and industrial expansion of different nations, scientific management has enabled every nation to be involved in this global market. Scientific management is the theory which serves as the ‘backbone’ to many current management theories. Scientific management will be briefly described initially. After that, the essay will identify why scientific management is an important contribution to management theory when Frederick Taylor proposed it.... [tags: Business Employee Management] 1639 words (4.7 pages) $19.95 [preview] Scientific Management - Scientific Management Fredrick Taylor, the father of scientific management. He had a firm belief in "one best way" (Samson & Daft, 2003), of doing something. In the year 1899, Taylor held an experiment that involved German and Hungarian men, whose job involved some very heavy-duty work (Gabor, 2000). To his disappointment, men either refused to work, or wouldn't work to his expectations. The men hated him utterly; to the extent he required security when going home (Gabor, 2000). In his entire dilemma with his employers, in stepped Schmidt, a man not of intelligence but had the strength of a bull and an ox-like mentally required to reach the standards of Fredrick Taylor.... [tags: Taylorism Business Management Essays] :: 3...

Words: 8474 - Pages: 34

Premium Essay

Operations in Healthcare

...Role of Operations Management Role of Operations Management Mark Sealy OPS/HC571 March 3, 2012 Gusti McGee Role of Operations Management Operations management is an essential part of an organization. Organizations are faced with pressure from both internal and external sources. It is the role of an operations manager to identify the pressures and develop programs and policies that will ensure the organization can operate effectively. Operations Management According to Sox, “Operations management focuses on the effective management of the resources and activities that produce or deliver the goods and services of any business.”(Sox, 2011) However, in the health care industry the goods produced are services and are intangible. Since no tangible goods are produced by the health care system, a slightly modified definition is applied. According to Langabeer, “The quantitative management of the supporting business systems and processes that transform resources into health care services.”(Langabeer, 2008). However, in both business environments the operations manager has key functions that must be performed to ensure the success of the organization. Roles There are seven major roles that an operations manager must perform in the health care environment. These functions include workflow process; physical layout; Capacity design and planning; physical network optimization; staffing levels and productivity management; supply chain and logistics management;...

Words: 321 - Pages: 2

Premium Essay

Business Integration

...and assessment Welcome to the Integration of Business Functions module. Managers operate within increasingly complex and changing organisational and contextual circumstances, whether in the market, public or ‘third’ sectors and irrespective of the size of their organisations or the types of goods or services these enterprises produce for their customers or clients. This introductory module provides learners with an understanding of the principal internal and external environmental contexts of contemporary organisations, including the managerial and business context, within which businesses operate. These areas will be explored in more depth in other modules. The primary purpose of this module is to introduce learners to these concepts. This module also introduces learners to a number of business structures, cultures and the political, social, economic, technological, legal and ethical considerations affecting business. The module explores the question ‘What is a business?’ It investigates business functions including human resource management, accounting and finance, operations and marketing and considers the linkages between them and the challenges experienced in managing across functional boundaries. This module seeks to provide an integrated and critical understanding of businesses and their core business functions including internal and external factors which impact on them. After studying this Integration of Business Functions module you should be able to: ...

Words: 714 - Pages: 3

Premium Essay

Managing

... |Unit number, Code and Title | |Pearson BTEC Level 5 HND Diploma Business |Unit 34, R/505/8181, Operations Management in | | |Business | |Module Leader: |Lecturers: | | |Hakeem Kazeem | |Distribution date |Submission deadline | |W/C – 22/09/14 |7th December 2014 | | | | |Assignment title |Operations Management in Business | |Learning Outcome | |Assessment Criteria |In...

Words: 2190 - Pages: 9

Premium Essay

Air Asia

...9/25/13 Air Asia Assignment - Term Papers - Haixzzz Get Access to over 1,148,422 More Essays. Upgrade Your Account Now. Upgrade Essays Book Notes AP Notes Citation Generator More | Hi ilaanabila Search essays Home » Business & Economy Air Asia Assignment By haixzzz, september 2011 | 9 Pages (2048 Words) | 2984 Views| | | Upgrade to access full essay This is a Premium essay for upgraded members Air Asia A. Introduction 1. Objective and scope This paper will analyze the internal and external environment of Air Asia and will look into how it uses Management Information System ( MIS ), specifically its online reservation system to gain competitive advantage. And also discuss why and how important is MIS to Air Asia in running its business. 2. The Important of MIS Low Cost Carriers (LCC) business model is based on no frills service. This means that cost savings is a critical success factor in their operations. Air Asia is no different. And Aie Asia uses MIS to runc this LCC business model. So, what is MIS? MIS is the useful information to support management in an organization so that we get what we want. And MIS tool in Air Asia is the Air Asia booking system. In the competition in the airline business, booking system is the advantage for Air Asia. “The early you book the tickets, the cheaper it will be.” This early booking promotion kills two birds with one stone. It gives customers opportunity for cost savings and encourages a lof of people to plan...

Words: 706 - Pages: 3

Premium Essay

If You Need Help Writing Your Essay on Management

...Help Writing Your Essay on Management You’re really talking about a test of your academic writing endurance and reading endurance here. Management, accounting, and mathematics are the trifecta of yawn worthy subjects to do an essay on, but someone has to write them eventually. If you’re reading this, you’re that person. The only starting suggestions that can be offered are stick to facts and start early on this. You have a long, long, road ahead for this essay. Normally writing an essay is as boring or painful as you make it, but you’ve found the exception to the rule here. Let’s get to those management topics. Starting Topics for Your Essay There are several types of management essays you can do: an operations management essay, project management essay, a business management essay, and so on. Management Essay Topics: The nature of managerial work Basic functions and roles Marketing in the public and private sectors (can be separate topics) Management skills Implementation of policies and strategies within a business policy Policies and strategies in the planning process Middle-level management Upper management First / lower management Organizational structure of a business Other essays you could focus on are a human resources management essay and supply chain management essay. This doesn’t have to be kept to a business nature, though. You’re also open to a stress management essay and a time management essay. Overall there isn’t much there as far as...

Words: 489 - Pages: 2

Premium Essay

Ethic in Hr Mgmt

...Ethics In Human Resource Management Alisha Wood Saint Augustine’s University Ethics and Human Resource Management Wikipedia, defines ethics as: "…a study of values and customs of a person or a group. It covers the analysis and employment ofconcepts such as right and wrong, good and evil, and responsibility." Wikipedia, defines utilitarianism as: “…ethical doctrine of greatest good. The ethical doctrine that the greatest happiness of the greatest number should be the criterion of the virtue of action The complexities of business and our human/social society makes corporate ethics a very interesting study. To a practicing manager in the working world today, this becomes critically important, especially if they don’t get it! And many obviously have not and still do not. The questions are really simple to ask - yet hard to answer: What does good business today really mean? What does ethics have to do, if anything, with good business? What impact can the human resource function have on either? Within business, what is my responsibility as a human resource professional? Corporate social responsibility (CSR) is known as one of the areas that has drawn many attentions in the business environment over the last twenty years. Carroll (1991) argued that corporation should be addressed not only from economic and legal perspectives but also from ethical and philanthropic perspectives; the idea of CSR’s pyramid is then derived. Furthermore, the efficiency theory...

Words: 2132 - Pages: 9

Premium Essay

Business

...Zoom In Zoom Out Page 1 of 2 Business Management Essay COMPANY: Starbucks Subject; “Discuss the impact macro factors may place upon your chosen organisation in the future (1-5 years) and how the organisation may positively manage this”. When speak from macro and micro perspective we must bear in mind that these are two different phenomenon’s. Micro factors can be described as factors that people and businesses keep in mind when making decisions concerning the allocation of resources, whereas macro factors can be described as the factors that are kept in mind when making decisions regarding not only specific companies but industries as a whole and economies, more over micro environmental factors are the one’s over which the business has control for example price, product and promotion whereas macro environmental factors are the one’s over which the business has no control as such as social, cultural, technological and political factors. Businesses operate in markets keeping in mind changing situations not only of their market conditions but also the trends of the economies that they operate in, so that they can adjust and survive in accordance with new situations because adaptation is a must for a business to survive and prosper otherwise a business might be forced to cease operations and shut down. Starbucks is one of top five(Caribou coffee, Tully’s ,Coffee bean and tea leaf, Peet’s Coffee) businesses in a $11 billion industry. The coffee house industry grew from merely...

Words: 511 - Pages: 3

Premium Essay

Tesco Case Study

...Journal of Management and Sustainability; Vol. 4, No. 4; 2014 ISSN 1925-4725 E-ISSN 1925-4733 Published by Canadian Center of Science and Education Analyzing and Evaluating Critically Tesco’s Current Operations Management Shuang Zhao1 1 Business School, University of Kent, UK Correspondence: Shuang Zhao, School of Economics and Management, Inner Mongolia University for the Nationalities, Tongliao, China. E-mail: honeyzhaoshuang@126.com Received: August 31, 2014 Accepted: September 20, 2014 Online Published: November 26, 2014 doi:10.5539/jms.v4n4p184 URL: http://dx.doi.org/10.5539/jms.v4n4p184 Abstract This essay analyses and evaluates critically Tesco’s current operations management. The essay discusses from 3 major perspectives namely, operations strategy, operations design and operations management. Firstly, it will show an introduction. The second section will analyze Tesco’s formats and international expansion at corporate strategy level. And then, based on the customer-centric conception, it will discuss the low price policy, cost control, loyalty card strategy, supply chain management, delivery system management and inventory management at the business unit strategy level and functional strategy level. Following this, it will make a comprehensive conclusion and show the strengths and weakness of Tesco’ operations management. Finally, the article will give some appropriate recommendations to Tesco’s sustainable development. Keywords: operations strategy, operations design...

Words: 3140 - Pages: 13

Premium Essay

Business

...MEDGAR EVERS COLLEGE DEPARTEMNET OF BUSINESS ADMINISTRATION SYLLABUS BUS 103 -- INTRODUCTION TO BUSINESS Tuesday 12:30 PM – 2:55 PM TEXT BOOK: BUSINESS ESSENTIALS by RONALD EBERT AND RICKY GRIFFIN PRENTICE HALL, 2005 INSTRUCTOR: Dr. Simon Best Contact: sbest@mec.cuny.edu COURSE DECSRIPTION This online course has been designed to serve as an introductory and general survey business to acquaint students with the importance of business as a field of study. It involves general outlines of various aspects of business including management, marketing, finance, accounting, business law, human resources management and information systems. Topics to be covered include understanding of business environment, entrepreneurship, global aspects, managing operations, functions of management, basic principles of marketing, managing information, principles of accounting, money and banking and business law. This course will prepare students to take higher level courses in these various related fields. COURSE OBJECTIVES --- To prepare students with basic tools and knowledge required to understand business growth and development with respect to SMEs, entrepreneurship, supply chains and disruptive innovation --- To set the foundations for development of knowledge and information necessary for the success of business ventures. --- To relate the various processes of accounting, finance, marketing, management, information systems and business law to the total system and to understand...

Words: 1450 - Pages: 6

Free Essay

Shuzworld

...------------------------------------------------- Top of Form Bottom of Form * * Services * Instant Price * Order Now * Essays * Dissertations * Quality * Contact * Account You are here: UK Essays » Essays » Business » Memo Providing Recommendations For Shuzworld Business Essay Print Email Download Reference This Send to Kindle Reddit This Memo Providing Recommendations For Shuzworld Business Essay In order to find out the most cost-effectively decision, Shuzworld is considering the possibility of opening a new store on route 20, just outside of Auburn, referred to as the stand-alone option. The second option is opening a store in the Auburn Mall, and the third is not opening a store at all. To do nothing now, and wait for a better time to move in to the market. Shuzworld is also considering purchasing market research. I recommend that Shuzworld should use the decision tree graphical method, because of the nature of the issue (a graphic manner was asked to be used). A very important reason to why I am recommending this tool, is because the decision tree method is most commonly used for this kind of cases, as the Shuzworld presented case. The profitability problem is one of the most important problems of future profitability when opening a new store process and is the important content of the course of operation management. By recommending the use of this crucial tool, we need to understand, that this will give Shuzworld a direction, to which one of...

Words: 6791 - Pages: 28

Premium Essay

Kenworth Motors

...Kenworth Motors Case Study Essays and Term Papers As a consulting. i believed it absolutely was simply a proper personal review of a gathering that 2 business partners that reach out for facilitate. additionally it permits you to suppose . He failed to have associate degree agenda of what the business was all concerning and he wasn't centered concerning the agenda. He simply talks to the shopper and attend a firm that he knew nothing concerning. I don't believe that the adviser was ready for the meeting. Everything wasn't in writing and also the time to arrange for the retreat is just too short to even harden. additionally each the manager and adviser had a positive perspective toward everything. The proposal should be gift at the meeting. he wasn't professionally gift his action and plans to gift however it'll facilitate the potential shopper. He manager himself doesn’t even grasp what's the matter that running within the company before having the consulting to return in. If he's an expert adviser. One issue that I will offer credit to the current consulting is that he's a decent trafficker. he ought to initial analysis concerning the organization and ready himself a trifle higher. additionally he has to do some analysis on the management and it operation inside the organization. As i'm reading this case study.Kenworth Motors Case Study Essays and Term Papers. 3 Kenworth Motors Case As a consulting you mostly have to be compelled to come back and prepare before you meet the...

Words: 1243 - Pages: 5

Premium Essay

Dashman

...3/27/13 Dashman Company WriteWork Essays & Writing Guides for Students Worried about plagiarism? Read this. Login | Help Essay Topics Area & Country Studies Essays (1,432) Art Essays (7,007) Businesss Research Papers (18,264) Humanities Essays (11,304) Literature Research Papers (31,867) History Term Papers (13,753) Law & Government Essays (5,824) Science Essays (9,902) Social Science Essays (16,816) Writing Guides How to write a book report How to write a research paper How to write an essay Search Search over 115,000 essays Go Worried about plagiarism? Get ideas & start writing References & research topics How to outline your essay Improve writing and grades Close Businesss Research Papers (18,264) › Management (5,798) › Management Planning & Decision Making (602) Dashman Company Essay by elgonzz, University, Master's, October 2008 www.writework.com/essay/dashman-company 1/6 3/27/13 Dashman Company download word file, 2 pages 5 1 reviews Downloaded 13 times Keywords plants, world war, case study, gap, bridging the gap 0 0Like 0Tweet This case study is based on the situation that prevailed in a company during the II world war. It was the period when America entered the war. The Dashman Company was one of the major suppliers of equipments to the US. Armed Forces. As a result of forecast in the purchase made by the20 units which worked as an autonomous body, Mr. Post was appointed to coordinate the purchasing activity by Mr. Mason, the president of...

Words: 1167 - Pages: 5

Premium Essay

System for Pizza Ingredients

...Effective Management of Inventory System for Pizza Ingredients Feb 21, 2014 Abstract It used to be a problem for companies to handle their inventory. Thanks to technology, it saved thousands of hours of labor work. Inventory system is very imperative for organization because most of their strategic decisions are rooted here. Marketing gets sales information to generate sales forecast. On the other hand, Manufacturers are able to accurately define their stock and prevent unpleasant events such as stock-out and overstock. In order to expound more on the capability of this system, this study will provide sufficient information regarding its use, weaknesses and maintenance. By the use of local and foreign text, the study was able to relate its objective to the actual prototype.The proponents will demonstrate actual working system that will cater the products of the imaginary pizza shop. It is only limited for employee usage and will not cover the point of sale system. However, it will provide critical stocks that will determine products that need to be delivered. Moreover, it will show how to exactly manage and navigate a warehouse information system by providing a simple management of inventory. It used MySQL database and Microsoft studio’s c-sharp language to fulfill the objective and purpose of the paper. The main purpose of the study is to create a simple inventory system so that future researchers may get resources from this and improve the results. Chapter 1 Introduction ...

Words: 4707 - Pages: 19