Free Essay

Essay on Business Operations Management

In: People

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

Operations and Material Management in Business

...Week 8 Developing Good Business Sense Assignment 67/75 92% A- | Operations and Material Management in Business | | Heidi Belieu | BUS/210 | Robert Shereda | 11/4/2012 | Developing Good Business Sense- Why Do Operating Systems Differ? Many people take the way goods and services are provided to them for granted. They do not think about the nature of the operating system that produces the goods and services they receive. To improve your understanding of how OMM processes work, complete the following assignment. 1. Choose three companies and observe how employees do their tasks. These can be three different fast-food restaurants or three entirely different types of companies, such as a fast-food restaurant, department store, or the emergency room of a hospital. 2. Think about the differences in the operations involved in the input, operations, and output stages of these companies. Try to identify the nature of their operating systems. Are employees organized in different ways? If so, why? If possible, talk to the managers and employees in these operations to further your analysis. 3. What are the main kinds of OMM costs companies have? How does this affect their OMM operations? 4. How do companies design their operating systems to give them a competitive advantage? Operations and Material Management in Business | I will establish the differences in the operations involved in the input, operations, and output stages of three local businesses that I access......

Words: 2278 - Pages: 10

Premium Essay

Operations Management

...Managing Operations Introduction The report will start with definition of operations management concept. This will be followed by identifying some of the global factors affecting operations management in organisations and the impact such factors have on operations management in organisations and to assess how operations management can contribute to sustainable business activities . The second part of the report will describe how project management techniques contribute to the development of operations management and how project management techniques can be used to improvements the management of business operation in a multinational organisation. The effectiveness of business operations to organisational goal of Shell Petroleum will be discussed As operation management entails risk, the risk management techniques that can be applied to the management of a business operations (Shell Petroleum) and how to evaluate the risk to business operations in global markets will be discussed. How risk to Shell Petroleum operations be minimised for a business functioning in a global market will be discussed The technological infrastructure that supports operations management of Shell Petroleum will be identified and the contribution of information technology to it operations management will be analysed. The benefits to operational management of implementing technical solutions will also be analysed . The contribution of information technology to operations management......

Words: 2887 - Pages: 12

Premium Essay

Ups Management and Operations Essay

...Running head: UPS 1 United Parcel Services Aaron Carter Mount Vernon Nazarene University IBS 3013 GLOBAL PERSPECTIVES IN BUSINESS BBA017MV June 17, 2013 David Skinner UPS 2 United Parcel Service Abstract United Parcel Service is the world’s number 1 provider of commercial and civilian shipments. The company ships to all parts of the US, Asia, Europe and most all of the Continents on the planet. The company seemingly has the world market cornered when it comes to the shipment of packages and documents. Except for a couple of competitors, UPS controls the market. The challenge for this writer is to make recommendations and suggestions of how this company can grow even stronger and expand its already enormous global appeal amongst consumers. This essay will reveal the history of the company, evaluate the business model that UPS currently works under and will give recommendations on how the model can be expounded upon to ultimately make UPS not only the world leader in packaging and shipping, but also a competitor in the technological world market. UPS 3 United Parcel Service UPS began its operations in 1907 in Seattle, Washington and since then has continued to grow and expand its operations throughout the United States and eventually the world. The company is a shipping and delivery operation that services commercial companies, small businesses as well as residential customers. UPS which stands for United Parcel Service employs 397,100 people within its......

Words: 1074 - Pages: 5

Premium Essay

Operations Management Case Study - Mandexor Memory Essay

...Running head: ANALYSIS OF MANDEXOR MEMORY CASE STUDY 1 Analysis of Mandexor Memory Case Study-Capacity Planning and Control Alfred Asuah Adongo (13025813) Ghana Institute of Management and Public Administration Professor: Dr. Chris Tabi Amponsah EMBA 665 - Operations and Project Management 6th April 2014 Analysis of Mandexor Memory Case Study-Capacity Planning and Control   2   Abstract This paper explains capacity planning and control in the case of Mandexor Memory. Mandexor Memory with its parent company in the US is currently experiencing a poor record of meeting production targets at its European Disk Drives Division and has therefore appointed a new Operations Manager in Mat Frankel to turn things around and to see to the reorganization of the sales and marketing functions into one division. The core objectives of this paper will thus be to analyze the current capacity and output levels vis-à-vis the demand as per the forecasts and then determine how Mandexor can balance optimal output with demand using the right capacity planning and control strategies to achieve its production targets in the European Disk Drive Division. The methods to be employed in this paper include review of the current production data (Actual Vs. Forecast) in relation to the capacity of the plant, calculation of necessary variances between output and demand in relation to capacity and a coherent analysis based on sound assumptions that will help Mandexor to adopt the......

Words: 7152 - Pages: 29

Premium Essay

Business and Management Essay

...in the current global markets without hiring flexible knowledge workers or applying latest information technology to management. Recently, with blindly investing in innovation, efficiency seems to be neglected by many organizations. Efficiency, not only refer to lower cost, but also how to use the existing knowledge, expertise and resource effectively. Without efficiency, organizations cannot plan all the working processes properly. Therefore, in order to survive, even gain profits, a firm cannot ignore either innovation or efficiency (Tushman & O’Reilly 1996). Nevertheless, it is not easy to achieve balance between the two aspects. In the following session, this paper will illustrate from four aspects to present the reasons why some organizations can do well in terms of innovation while having a low efficiency. Since knowledge workers are the fundamental element of knowledge-based organizations, management style of people and teams seems to influence the overall efficiency to some extent. Besides, choosing what kind of ways to encourage information flows among the employees is another issue that is worthy to discuss. In addition, with the appearance of new organizational forms, such as project-based organizations, it is significant to deal with the knowledge-sharing process among project teams. Finally, with the increase awareness of Knowledge Management, the balance between knowledge exploration and exploitation is the last point to discuss. In Session 3, it will......

Words: 584 - Pages: 3

Premium Essay

Operations Management in Charcoal Business

...PYRSOS CHARCOAL BUSINESS By George P Athinis Table of Contents Introduction 2 Transformation Process 2 2.1 Inputs 3 2.2 Process 3 2.3 Outputs 4 Quality Management 5 3.1 Total Quality Management 6 3.1.1 Meets the needs and customers expectations 7 3.1.2 Covers all parts of the organization 7 3.1.3 Every person in the organization contributes to quality7 3.1.4 All cost of quality are considered 7 Conclusion 8 References 10 ------------------------------------------------- Summary ------------------------------------------------- This paper will examine the quality management of PYRSOS ltd, Charcoal operation company. Following a brief overview of the company’s objectives and the transformation process taking place between the inputs and outputs, the quality management of the company will be analyzed regarding the constraints involved, equipment effectiveness, forecasting techniques and quality management plans by applying relevant academic theory. 1.0 Introduction “KRONOS PRESS DISTRIBUTION AGENCY” and PYRSOS LTD Kronos Press Agency PLC LTD, is the market leader in Cyprus in press distribution. The company was established since 1986 as a private enterprise. The mission of the company was to distribute the press to every spot in the island of Cyprus, in the most cost and time efficient way, with respect to the publisher, the kiosk and the readers. Kiosks had always......

Words: 2443 - Pages: 10

Premium Essay

Operation Business Studies Essay

...Assess strategies that management may use to respond to influences on operations 1. Executive summary: Operations management is the planning, organising, coordinating and controlling the transformation of inputs to outputs to maximize profitability, while meeting the requirement of customers and maximising quality of the good and service. Operating since 1983, Bob and Pete’s 100% Yum is a family owned, authentic bakery wholesaler. Operating for 25 years, Simon Johnson is a wholesaler of luxury and high end foods, valuing the experience and quality of foods. Both in the food industry, the businesses respond to these influences through the variety of similar and different strategies. The operations process is influenced by technology, quality expectations and globalisation. Similarly, B&P and SJ respond to these influences by the strategies of using leading edge and established technology, inventory management quality management outsourcing and the design and development of new products. 2. Technology Technology is the design, construction and application of innovative devices, methods and machinery upon the operations process. If technology is responded to efficiently, businesses applying efficient strategies to improve efficiency and quality, as machines make manufacturing more accurate. SJ strategically use leading edge technology, which is the most advanced or innovative technology at any point in time. For example, SJ use new technologies of temperature......

Words: 1075 - Pages: 5

Premium Essay

Business Management Essays

...Top of Form Bottom of Form Homework Help "Management is both an art and a science." Please explain this quote. Topic: Business deepak85 | Student, Undergraduate | eNotes Newbie Posted September 21, 2008 at 4:09 AM via web dislike2like "Management is both an art and a science." Please explain this quote. ------------------------------------------------- 10 Answers | Add Yours gbeatty | College Teacher | (Level 1) Educator Emeritus Posted September 21, 2008 at 10:13 AM (Answer #2) dislike1like The idea that management is both art and science is a truism and a kind of short hand. That is to say, a lot of people say it, and it is commonly held to be true, and it serves as a way of indicating a rather complex reality involving management. A science has known laws. It works with facts and reason and produces—when it gets to application via technology—dependable results. By contrast, art is highly personal and subjective. It works with emotions and the interplay between individuals and communities. Managers must do both: produce reliable results and deal with emotional humans. sruthi19 | Student, Undergraduate | eNotes Newbie Posted July 29, 2011 at 9:05 PM (Answer #6) dislike1like since art is concerned with personal application of knowledge some kind of ingenuity and creativity is required to practise the basic principles. it is said to be art because: 1) A successful manager practise the art of management in the day-to-day  job of managing an......

Words: 1979 - Pages: 8

Premium Essay

Essay on Business Management

...30pm, my fellow employees are young and my shifts include Wednesday nights and Friday nights and my young team members are usually planning to head out on the town after work so an extra half an hour to an hour is a threat to their social life. This usually creates an urgency to get the work done on time and therefore compliance from the team is established and there is an increase in productivity. 2. What are the characteristics of the “communications” in this organization? The structure of the communication is a hierarchical framework with communication moving downward. The regional manager usually communicates to the store manager problems with stock, budget and profits/losses. This is then filtered down through the ranks from management to supervisors and finally to us- the workers. The store manager usually communicates problems in regards to the uniform, safety regulations, and also any problems in regards to customer complaints or local residential complaints. This communication is usually small group based where the store manager holds a quick five minute meeting at the start of the shifts and delivers the problem and suggests how we fix it. Communication related directly to my work is hierarchical and contains formal interpersonal contact between the manager and the supervisor and then a small group based communication between the supervisor and the team. The media used to send and receive the messages between the manager and the supervisor is both verbal......

Words: 1040 - Pages: 5

Premium Essay

Internaational Business Management Essay

...HCBA 3221: International Business Management Group 1 Topic 2: International Business Research Peter Chege HD 333-1080/2015 Peninah Nyutu HD 333-1088/2015 Submitted to Dr. Oloko October 2015 INTERNATIONAL BUSINESS RESEARCH What is international Business? * Is a business where transactions occur across the borders What is research? * Research - is a process of inquiring. It is a systematic search for information. It also means carrying out a diligent enquiry or critical examination of a given phenomena * Research remains the most efficient and reliable source of knowledge. What is International business research? * International business research has been described as the objective, systematic, testable process for obtaining knowledge about our world. * International market research is a particular discipline of Market research that focuses on marketing across the borders. It is mainly concerned with consumer goods, resources or services within a business value, which is commercially utilized and further processed. * International market research covers cross-country issues. * International business has existed as a distinct field and a unique discipline. * Research in international business shows a clear dichotomy between focus on activities that cross open national boundaries and activities that are aimed at surmounting the barriers imposed by Governments. Why conduct international business research? (a)......

Words: 1138 - Pages: 5

Free Essay

Small Business Management Essay

...Robert Ambrose Small Business Management October 9, 2015 Professor S. Turner Final Paper The Dilemma The gentlemen of “Three Guys Garage” all have the best interest of the organization in mind. However, they have differing outlooks on the best approach to expand “Three Guys Garage” and reach the level of success they all aspire for. Karl is very interested in turning the company into a national chain, but the other members of the team have some concerns. For an example, Ben is concerned about control losing control of the brand. Rick on the other hand has voiced that he is worried about losing his profits. The Strategy After evaluating the different Growth strategies the best strategy for the team is to continue on as a privately owned company. As a privately owned company while growth may be slower than the other options it is still possible. On the other hand, if the gentleman where to try and franchise the organization there is a very good chance they would lose control of the day to day operations of some units, which is an issue for Ben. While it is required for franchise owners to follow company-operating procedure developed by the parent company, ultimately the unit is owned by the franchisee and he or she going to make decisions for his or her shop that best fits their goals (Joseph, 2015). If the team decide to take the offer of the investor and start a joint venture, they will have to further split their profits which does not go over well with Rick.......

Words: 679 - Pages: 3

Premium Essay

Operations Management

...Operation Management Operation Management Assignment 1 [Document subtitle] Assignment 1 [Document subtitle] Toh Yin Sheng CT0196844/14208417 FT UCD BBS 22 C Dr Dan Maher & Dr Mogan Swamy Toh Yin Sheng CT0196844/14208417 FT UCD BBS 22 C Dr Dan Maher & Dr Mogan Swamy Assignment 1 Assignment 1 Content Company Introduction 2 Operation Management Results Competitive Advantages 3-4 Conclusion 4 References 5 Company Introduction PTS Marketing group of companies, which founded in 1999, act as a service provider of automotive aftermarket supplies mainly active in Malaysia and Singapore. With the mission of “Professionally Targeting Success”, PTS Marketing Group aims to provide quality products and superior services to the customers. As a service provider, in order to deliver the commitment, PTS Marketing Group states a combination of operations management that allows and drives the company towards the mission. The company currently carrying several brands as sole, exclusive distributors, such as Federal Tyres, Lassa Tyres, Core Racing Wheels, HKS, Vitech Lubricant, Toyo Tyres and more brands to extensively fulfil the customers and market needs. Operation Management Results Competitive Advantages Every firms or organizations have their own unique operation systems and styles generate from the characteristics and internal cultural. This is essential to figure out, develop and design the operational......

Words: 1245 - Pages: 5

Premium Essay

Singapore Airlines Business Operations Management

...having the most recent and youngest fleets in the world. It has evolved from being a regional airline to one of the top ranked airlines in the world at present. As on March 1999, it carried 525 passenger flights a week out of Singapore. It operates in four segments namely airlines operations (which includes passenger and cargo air transportation), engineering services (airframe maintenance, line maintenance, fleet management programs etc.), training of pilots and tour wholesaling, Cargo operations (includes cargo transportation and related activities). It has a worldwide coverage including 110 cities in over 42 countries. It is dedicated to providing air travel services of the highest quality to its customers and also providing maximum benefits to its employees and shareholders. It has a first mover advantage in providing various additional services which are as follows: - Free headsets, choice of meals and drinks during 1970’s. - Introduction of satellite-based telephones - Involving one of the best panel of chefs for in-flight meals - First to operate world longest flight (Singapore to Los Angeles) - On demand inflight audio and video services In this report, four significant operations aspects of Singapore Airlines will be discussed. These cover economic environment and 4Vs, five performance objectives, lean and agile, and, lastly, corporate social responsibility. 2 2.0 Singapore Airlines: Economic Environment and 4Vs 2.1 Analysis of the Economic......

Words: 6562 - Pages: 27

Premium Essay

Operation Management Essay 2

...Running head: Operation management Essay 2 Header: Business Name: University: Course: Tutor: Date: Personal computer manufacturers in UK Introduction This essay puts focus on two UK personal computer companies by comparing and contrasting their market in terms of market objectives, their key transformation processes used in their operations and their operations management theories/ concepts/ techniques underpinning their transformation processes. The two UK personal computer companies to be discussed are the Gateway-UK and the Hewlett- Parkered (HP) Company. To start with, Gateway-UK is a UK computer manufacturer company which started in 1980s where by it operated for sometime but following a dot-com slump, the company pulled its operations from the UK being an adverse effect of past events. This was after it tried several strategies to return to profitability, including withdrawal from international markets, reduction in the number of retail stores and most significantly, entering the consumer electronics business. However, amid widespread complaints about its reputedly poor customer service, none of these efforts was......

Words: 2409 - Pages: 10

Premium Essay

Business Operations

...Date Business operations Introduction Businesses can expand and originate from various entity types. Limited or general partnerships, corporation, sole proprietorship, nonprofit organizations, Limited Liability Company (LLC), and Limited Liability Partnership (LLP) may be a few examples of the styles available for business shareholders and owners to choose from in order to carry out their business operations. Each and every style may have its own gains and setbacks as regards taxation, liability and government regulations and laws. In a bid to answer your question, I might have to make use of two different business examples which comprise of different operation styles and guidelines. The two businesses include a bar business and professional practice and may be detailed on the basis of basic requirements necessary for successful business formation. I would also be keen at outlining the entity choice for each of these businesses as a way of providing advantages over the other. A detailed explanation of how each of the two scenarios controls the taxation, liability and business issues would also be in order. To add on that, the regulations, laws and potential risks that may be involved in every business style may be identified. Bar business The best business entity choice for Miriam, Lou and Jose in their business operation could be forming a Limited Partnership. Jose and Lou would then perform the role of general partners hence manage the operations of the business on......

Words: 1897 - Pages: 8