How many ways we can we find the current date using MySQL?
ANSWER:SELECT CURDATE();
SELECT CURRENT_DATE();
SELECT CURTIME();
SELECT CURRENT_TIME();
ANSWER:SELECT CURDATE();
mysql_fetch_array() -> Fetch a result row as a combination of associative array and regular array.
copy() function copy images for temp folder on server to
session_register($session_var);
require_once() and include_once() are both the functions to include and evaluate the specified file only once. If the specified file is included previous to the present call occurrence, it will not be done again.
REPAIR TABLE tablename
PEAR is the next revolution in PHP. This repository is bringing higher level programming to PHP. PEAR is a framework and distribution system for reusable PHP components. It eases installation by bringing an automated wizard, and packing the strength and experience of PHP users into a nicely organised OOP library. PEAR also provides a command-line interface that can be used to automatically install
The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web based software applications
Released in 1985, C++ is an object-oriented programming language created by Bjarne Stroustrup. C++ maintains almost all aspects of the C language, while simplifying memory management and adding several features - including a new datatype known as a class (you will learn more about these later) - to allow object-oriented programming. C++ maintains the features of C which allowed for low-level memory access but also gives the programmer new tools to simplify memory management.
by default it is database.php.default, you can find it in /app/config/database.php.default
list some of the features in Cake php
ANSWER:
model view controller, it is a software architecture, used to isolates business logic from presentation logic. cakephp is
* Security
Components are packages of logic that are shared between controllers. They are useful when a common logic or code is required between different controllers.
A controller is used to manage the logic for a part of your application. Most commonly, controllers are used to manage the logic for a single model. Controllers can include any number of methods which are usually referred to as actions. Actions are controller methods used to display views. An action is a single method of a controller.
by default it is database.php.default, you can find it in /app/config/database.php.default
Compatible with versions 4 and 5 of PHP
1 The Model represents the application data
A component is an independent piece of code written for specific task that can be used by calling in controllers (example : email component), helper is used for helping cakephp in rendering the data to be shown to user with views, these only adds to modularity in code otherwise same coding can be implemented in conrollers.