Remote Procedure Call (RPC) is an inter-process communication that allows a computer program to cause a subroutine or procedure to execute in another address space (commonly on another computer on a shared network) without the programmer explicitly coding the details for this remote interaction. That is, the programmer writes essentially the same code whether the subroutine is local to the executing program, or remote. When the software in question uses object-oriented principles, RPC is called remote invocation or remote method invocation.
All posts by Pramod T P
JSON Object Notation
- A JSON object is an unordered set of name/value pairs
- A JSON object begins with { (left brace) and ends with } (right brace)
- Each name is followed by : (colon) and the name/value pairs are separated by , (comma)
Why Use JSON over XML
- Lighter and faster than XML as on-the-wire data format
- JSON objects are typed while XML data is typeless
- Native data form for JavaScript code
JSON
Generate Random Number
<?php echo rand(1, 10) ?>
How to get article title
<?php
$id= JRequest::getVar(‘id’);
$objTitle = $article->load($id);
echo $objTitle->get(‘title’);
?>
How to get article id
<?php echo JRequest::getVar(‘id’); ?>
Magento
Magento is an e-commerce platform created on open source technology, which provides online merchants with an exceptional flexibility and control over the content, look and functionality of their e-commerce store.
Magento is an open-source content management system for e-commerce web sites. The software was originally developed by Varien Inc., a US private company headquartered in Culver City, California, with assistance from volunteers.
Varien published the first general-availability release of the software on March 31, 2008, under the name Bento. Roy Rubin, former CEO of Varien, later sold a substantial share of the company to eBay, which is now the sole owner.
According to research conducted by aheadWorks in October 2014, Magento’s market share among the 30 most popular e-commerce platforms is about 30%.
Magento employs the MySQL relational database management system, the PHP programming language, and elements of the Zend Framework. It applies the conventions of object-oriented programming and model-view-controller architecture. Magento also uses the entity–attribute–value model to store data.
Find the position of a character in a string
We can find out the position using the function strpos() that will return the position of a character
Example
<?php
$string=”phpcodez.com”;
echo strpos($string,”.”) // 8
?>
register_long_arrays
Its a flag and if its value is set to one we must use the longer version of the variable
| Array Name | Longer version of the name |
| $_POST | $HTTP_POST_VARS |
| $_FILES | $HTTP_POST_FILES |
| $_GET | $HTTP_GET_VARS |
| $_COOKIE | $HTTP_COOKIE_VARS |
| $_ENV | $HTTP_ENV_VARS |
| $_SERVER | $HTTP_SERVER_VARS |
| $_SESSION | $HTTP_SESSION_VARS |
Its not at all a convenient option , so its always better to have the value set to off