Technology Powered Knowledge Base
Click Here To Make FREE Audio & Video Call From Web Browser!

Image Optimization & Compression Using PHP and ImageMagic

VN:F [1.9.22_1171]
Rating: +19 (from 19 votes)
VN:F [1.9.22_1171]
Rating: 10.0/10 (20 votes cast)

Now a days image compression very much required for website and web applications. In today’s world bigger images and many css and js are creating rich web apps but without compression it’s very difficult to serve websites quicker to user’s browser. So compression and optimization are used to server lots of data with compression. We can compress full webpage using Gzip compression technology. In that case we can use .htaccess or PHP to do that, Example:
 
Continue reading

Paypal One Time and Recurring Payment using Web Form and IPN

VN:F [1.9.22_1171]
Rating: +45 (from 45 votes)
VN:F [1.9.22_1171]
Rating: 9.7/10 (50 votes cast)

Paypal have various type of payment integration methods. They support Simple Button, HTML Form, API as payment integration methods. Merchant can chose how buyer can pay from Merchant site or via Paypal Site. NVP, SOAP etc supported protocols for Paypal API.
 
Here we will understand how can build a payment system with HTML Form, Fields and IPN. This method categorized under Paypal Website Payments Standard. After selection of product/quantity/amount buyer will be redirected to Paypal page and they can pay with Credit Card or via Paypal account, after successful payment they will again back to merchant site and can see Thank You Page. Here we will understand One Time and Recurring both type of payment methods. Continue reading

Extract Text Content from Rich Documents using Simple PHP

VN:F [1.9.22_1171]
Rating: +29 (from 33 votes)
VN:F [1.9.22_1171]
Rating: 9.8/10 (36 votes cast)

It’s much easier to extract text from reach documents using exec() for linux/windows or COM() for windows with PHP script. If we don’t have dedicated/VPS server or don’t have support applications(MS Word, AntiDOC, Adobe PDF etc) then its not possible to do with exec() or COM().
 
This is technical document to understand how we can extract text from DOC, PDF, ODT, HTML, DOCX, XLSX, PPTX etc with block of general PHP code. We know that Microsoft follows Open XML Format for there reach documents for MS Office 2007 and higher. That’s why we have some known solution to extract raw text from DOCX, XLSX, PPTX files but its very much painful for DOC(MS Office 2003 and below) files. We have a working solution for DOC but accuracy for extraction of text is 70% – 95%. Continue reading

CURL and Real Time Implementations with PHP Applications

VN:F [1.9.22_1171]
Rating: +29 (from 29 votes)
VN:F [1.9.22_1171]
Rating: 10.0/10 (32 votes cast)

Modern PHP applications mostly depended on CURL, as we can do lots of thing with CURL. Mostly use of CURL is, creating communication gateway between different domains. With CURL we can grab any Web Page, can upload file with remote call to other webpage, can access FTP server with credential, we can parse data from one URL to another URL and many other uses are associated with CURL. PHP supports libcurl as native library.
 
It allows connecting and communicating with many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. Current version also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading, HTTP form based upload, proxies, cookies, and user authentication. Continue reading

SignIn with Facebook Implementation using Facebook Connect

VN:F [1.9.22_1171]
Rating: +22 (from 22 votes)
VN:F [1.9.22_1171]
Rating: 9.7/10 (23 votes cast)

Right now Facebook is the most popular website in the world. As part of there social web service they already declared a service called Facebook Connect. With this service we can authenticate user with there FB account and can get some information of particular user, as a result we can authenticate a user with his/her FB account and sign into our websites. Other famous services of FB is build custom Facebook Page, Aplication, Games etc.
Continue reading