Showing posts with label example. Show all posts
Showing posts with label example. Show all posts
Thursday, January 30, 2014
7:44 PM
PHP - HTML to PDF
In this post , I will cover as how you convert an HTML page into PDF file on a fly.
Just that simple.You just need to include html2fpdf.php.Here I have passed sample.html page,the pdf generated will have same content of sample.html page,however in the pdf format.7:22 PM
PHP - How to Login with Facebook
Login with Facebook
In this tutorial , I will take you through as how can you make an application wherein you login with Facebook.
We will be using Facebook Graph API for this purpose.
You need to follow the below steps to get started.
- Visit https://developers.facebook.com/apps and click Create New App.
- You will then get an App ID & Secret to be used for your current application.
- Download the zip file from here.Then extract it and copy to your root directory.
- Edit config.php and change App ID & Secret to these values.
- Also change callback url to have your site path.
- Access index.php via your browser.
You will also have to add a logout button on your web page.However I have written the code in the file to logout.
Subscribe to:
Posts (Atom)
