Skip to content

Posts from the ‘PHP’ Category

26
Oct

How to install and configure Joomla ? Part 2

01

02

03

04

05

06

07

26
Oct

How to install and configure Joomla ? Part 1

Slide1

Slide2

Slide3

Slide4

Slide5

Slide6

Slide7

Slide8

Slide9

Slide10

Slide11

20
Oct

Sample Code for Send sms via Bulk SMS API Using PHP

Signup from a bulk sms provider.and modify the code according to that http api link.

<?php
$domain     =     "mydomain.co.in";
$uname      =     "myusername";
$pwd          =     "mypassword";
$to             =     "9999000000";//reciever 10 digit number (use
comma (,) for multiple users. eg: 9999999999,8888888888,7777777777)
$sms         =     "test sms";//sms content
$sender     =     "TESTDEMO";// sender id. this may be a number
$route       =     "A";// sending route
$sms = urlencode($sms);
$sender = urlencode($sender);
// set parameters the API for sending sms
$parameters="uname=$uname&pwd=$pwd&senderid=$sender&to=$to&msg=$sms&route=$route";
// call the Api
$fp = fopen("http://$domain/sendsms?$parameters", "r");
$response = stream_get_contents($fp); // get response of API call
echo "Success : ".$response; exit; // if response is a number...........
// this was the message id returned. save it for delivery report..........
// you can use your own logic and functions for
// your requirement...
?>
27
Jul

How to Backup/Restore your WordPress blog using Google Drive ?

Just install the UpdraftPlus Backup/Restore from plugins Directory (wordpress.org )

How to Install plugins.(login to admin panel of your blog.Go to Plugins->Add New ,Then Search “UpdraftPlus Backup” click on  Install Now link

After Installation go to Settings->UpdraftPlus Backup/Restore

Scroll down and find “Copying Your Backup To Remote Storage”

Choose your remote storage as Google Drive 

 

Go to  Google API Console  login using your Gmail id and password.

Go to API Access and click on “Create another client ID…” button

select Application type as “Web application” select “http” and add your blog url there ,then click on “(more options)”

You need to provide “Authorized Redirect URIs” For getting the Redirect URIs go to your worpress admin panel (Settings->UpdraftPlus Backup/Restore)

Scroll down you will find like this

http://myblogdomainname.com/wp-admin/options-general.php?page=updraftplus&action=updraftmethod-googledrive-auth

Copy and past to “Authorized Redirect URIs” in Api console  then click on “Create client ID” button

Then you will get

Client ID for web applications

Client ID:
*******************.apps.googleusercontent.com
Email address:
********************@developer.gserviceaccount.com
Client secret:
********************
Redirect URIs: http://myblogdomainname.com/wp-admin/options-general.php?page=updraftplus&action=updraftmethod-googledrive-auth
JavaScript origins: http://myblogdomainname.com

 Then come back to blog admin panel (Settings->UpdraftPlus Backup/Restore)

Provide “Google Drive Client ID:“,”Google Drive Client Secret:” form your  Google API console

Then click on Save Changes button

Now All settings are ok, now you can take back up by click” Backup Now” button   located at admin panel (Settings->UpdraftPlus Backup/Restore).

For restoring click “Restore” button   located at admin panel (Settings->UpdraftPlus Backup/Restore).

23
Jul

Php

check this