DecryptWeb Blog

Opensource Web Solutions

Author : Decrypt Web

Reading XML

I am listing here method for reading XML file or XML string with the help of PHP. The output on executing above code will be: I am listing here another example: The output on executing above code will be: For further reference click here

Get Product ID and Product Name in Magento

In Magento eCommerce while working with catalog model, There arise the need to fetch product details from product id. We can get all product details if we have product id. But sometimes we only have product name, so we need to get product id for getting product details. I am listing here both the method. […]

Develop,Package and Install Magento Module/Extension

This is very useful for those who are working in Magento eCommerce. After making an module (I will post the method to develop a module within few days). You can also refer this link for time being Develop Custom Magento Module for creating module. You have to package the module after developing which is explained […]

Mail in PHP

I am listing here the method for sending mail using PHP code. This will be useful in many ways, for example when you want to sent mail after say a form is submitted. Note: This may work in local , but I am suggesting you to execute on live server.

Extracting String

This is small but very useful script. I have shown example for extracting only ‘src’ value from the ‘img’ tag, but you can modify and use as per your requirement using ‘preg_match_all’ function. Output will be ‘http://www.somesite.com/abc.jpg’

Scroll to top