Our Blog

PHP 7 New Features and Tutorial

What is PHP 7? PHP 7 is a major release of PHP programming language and is touted to be a revolution in the way web applications can be developed and delivered for mobile to enterprises and the cloud. This release is considered to be the most important change for PHP after the release of PHP 5 in 2004. New Features There are dozens of features added to PHP 7, the most significant ones are mentioned below − Improved performance − Having PHPNG code merged in PHP7, it is twice as fast as PHP 5. Lower Memory Consumption − Optimized PHP 7 utilizes lesser resource. Scalar type declarations − Now parameter and return types can be enforced. Consistent 64-bit support − Consistent support for 64-bit architecture machines....


Read more

Currency Exchange Rate Using Google And Yahoo API

1) Google exchange rate query (parsed) Request: http://rate-exchange.appspot.com/currency?from=USD&to=EUR Response: {"to": "EUR", "rate": 0.76911244400000001, "from": "USD"} Here's another JSON(P) API based on the Google API : http://rate-exchange.appspot.com/currency?from=USD&to=EUR&q=1   2) Yahoo finance API Request: http://finance.yahoo.com/d/quotes.csv?e=.csv&f=sl1d1t1&s=USDINR=X This CSV is being used by a jQuery plugin called Curry. Might be useful if you need more than just a CSV. Yahoo Query Language lets you get a whole bunch of currencies at once in XML or JSON. The data updates by the second (whereas the European Central Bank has day old data), and stops in the weekend....


Read more

Protect website from Sql injunction and Hacking

1.Keep software up to date If you are using third-party software on your website such as a CMS or forum, you should ensure you are quick to apply any security patches. 2.SQL injection SQL injection attacks are when an attacker uses a web form field or URL parameter to gain access to or manipulate your database. When you use standard Transact SQL it is easy to unknowingly insert rogue code into your query that could be used to change tables, get information and delete data. You can easily prevent this by always using parameterised queries, most web languages have this feature and it is easy to implement. Consider this query: "SELECT * FROM table WHERE column = '" + parameter + "';" If an attacker changed the URL parameter to pass in ' or...


Read more

Sent E-mail read or un-read - PHP Code

We are using gmail, yahoo, hotmail etc to send emails to our friends, relatives etc. We dont know whether the email that we sent was read by the recipient or not. To get the read receipts, we need paid accounts from the Mail providers. Here i am going to show you a simple php program script to get read receipts of the emails that we sent. $user_id = $_GET['user_id']; If ( $user_id ) {     $FileName = $id.".txt";     $ourFileHandle = fopen($FileName, 'w') or die("can't open file");     fclose($ourFileHandle); } else {     $to = "jhon@gmail.com"; //to address     $subject ="Read Receipt Email";     $message =...


Read more

Popular Posts
Sent E-mail read or un-read - PHP

We are using gmail, yahoo, hotmail etc to send emails to our friends, relatives etc. We dont know whether the email that we sent was read by the recipient or not. To get the read receipts, we need...


Protect website from Sql injunction and

1.Keep software up to date If you are using third-party software on your website such as a CMS or forum, you should ensure you are quick to apply any security patches. 2.SQL injection SQL...