Tag

php tutorials

Browsing

Share Your Website Post To Social Media using php

Share your website post to social media using php. Everyone want to share their post in social media regularly to get increase the page views and also website view. So the social media is the best way to promote our content to reach everyone. When ever we write our post we directly update this post into our social media using php

Here I am written sharing code, Just click social media icons it will share automatically to your social media timeline

Here I have get our website details description and content using php

Here we going to add Facebook and Google plus sharing

Add Javascript for sharing link
Het your facebook api id from the developers facebook page

Find how to get app id – Here

Here we added the javascript for post article. now you can used ur post to share in social media

Here we going to learn simple javascript calculator code. Generally for beginners, they think its difficult to writing code for calculator. But its not that much difficult in the codding.
We just know only simple things in function like add, sub, mutli and div functions in php. If you know that then the calci code is very simple, you may try it now
javascript calculator code

Step 1:
First create html file

Step 2: Add Css file for the page

Step 3: Add javascript for the calci function.

Here the Demo –

See the Pen KpvNZR by Rajaseka G (@SekarG) on CodePen.

PHP Introduction

Before learning php, you should have some knowledge in below topics:

  • HTML
  • CSS
  • JavaScript

Define php?

  • PHP is an acronym for “Hypertext Preprocessor”
  • PHP is a widely-used, open source scripting language
  • PHP scripts are executed on the server
  • PHP costs nothing, it is free to download and use

Php File

  • PHP files can contain text, HTML, CSS, JavaScript, and PHP code
  • PHP code are executed on the server, and the result is returned to the browser as plain HTML
  • PHP files have extension “.php”

Thats basic intro about PHP