Programmer Desk
10 FOLLOWERS
Best learning place for beginner and expert level programmer. Programmer Desk helps to make developer life easy. There is wide range of tutorials including PHP, WP, CodeIgniter, Laravel and Many more..
Programmer Desk
1y ago
This tutorial we going to implement Multiple image upload without page refresh. we use base 64 to convert into image and store. upload multiple image and store all image in single submit button click.
Here are the steps to follow.
Create index.php file
Add Progress bar on submit button click
Create JS file for image upload and progress bar
Store image in server
Let’s start with creating form and we use bootstrap as design.
Create index.php file
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css ..read more
Programmer Desk
1y ago
This tutorial we are going send mail using Swiftmailer. We are going to create SMTP user to send mail here are the steps.
Create SMTP user.
Install SwiftMailer using composer.
Create File for sending mail.
Install SwiftMailer using Composer.
composer require swiftmailer/swiftmailer
When installation completed, create new file for sending mail and include autoload.php file.
Create sendmail.php file
<?php
require_once './vendor/autoload.php';
$transport = (new Swift_SmtpTransport(SMTP_SERVER, SMTP_Port))
->setUsername(SMTP_Username)
->setPassword(SMTP_Password)
;
// Create the ..read more
Programmer Desk
1y ago
This tutorial extract domain name from email account. you can use many way to achieve this below is simple step to get extract domain name.
$email='domainextract@gmail.com';
$domain = substr(strrchr($email, "@"), 1);
Other way
$domain = array_pop(explode('@', $email));
The post How to Extract domain name from email first appeared on Programmer Desk ..read more
Programmer Desk
1y ago
google recaptcha integratein PHP, here are steps to follow:
Go to https://www.google.com/recaptcha/admin/create
Enter domain name and select reCaptcha type.
Generate site and secret key.
Create file and add google script
<script src=’https://www.google.com/recaptcha/api.js’ async defer ></script>
Create index.php file
<html>
<head>
<script src='https://www.google.com/recaptcha/api.js' async defer ></script>
</head>
<body>
<form action="verify.php" method="post">
<div data-sitekey="ENTER_SITE_ ..read more
Programmer Desk
1y ago
This tutorial we are going to Generate PDF file using DOMPdf. Dompdf is powerful library for generating PDF files. So let’s get started with simple example.
Download composer and install it.
Use below command to get it from github.
composer require dompdf/dompdf
include autoload file make sure it’s loaded or not.
require('./vendor/autoload.php');
Let’s create index.php file and run it .
<?php
require('./vendor/autoload.php');
// reference the Dompdf namespace
use Dompdf\Dompdf;
// instantiate and use the dompdf class
$dompdf = new Dompdf(array('enable_remote' => true));
$html ..read more
Programmer Desk
1y ago
This tutorial we going to implement Multiple image upload without page refresh. we use base 64 to convert into image and store. upload multiple image and store all image in single submit button click.
Here are the steps to follow.
Create index.php file
Add Progress bar on submit button click
Create JS file for image upload and progress bar
Store image in server
Let’s start with creating form and we use bootstrap as design.
Create index.php file
<!DOCTYPE html>
<html lang="en">
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css ..read more
Programmer Desk
1y ago
This tutorial we are going send mail using Swiftmailer. We are going to create SMTP user to send mail here are the steps.
Create SMTP user.
Install SwiftMailer using composer.
Create File for sending mail.
Install SwiftMailer using Composer.
composer require swiftmailer/swiftmailer
When installation completed, create new file for sending mail and include autoload.php file.
Create sendmail.php file
<?php
require_once './vendor/autoload.php';
$transport = (new Swift_SmtpTransport(SMTP_SERVER, SMTP_Port))
->setUsername(SMTP_Username)
->setPassword(SMTP_Password)
;
// Create the ..read more
Programmer Desk
1y ago
This tutorial extract domain name from email account. you can use many way to achieve this below is simple step to get extract domain name.
$email='domainextract@gmail.com';
$domain = substr(strrchr($email, "@"), 1);
Other way
$domain = array_pop(explode('@', $email));
The post How to Extract domain name from email first appeared on Programmer Desk ..read more
Programmer Desk
1y ago
This tutorial we are going send mail using Swiftmailer. We are going to create SMTP user to send mail here are the steps.
Create SMTP user.
Install SwiftMailer using composer.
Create File for sending mail.
Install SwiftMailer using Composer.
composer require swiftmailer/swiftmailer
When installation completed, create new file for sending mail and include autoload.php file.
Create sendmail.php file
<?php
require_once './vendor/autoload.php';
$transport = (new Swift_SmtpTransport(SMTP_SERVER, SMTP_Port))
->setUsername(SMTP_Username)
->setPassword(SMTP_Password)
;
// Create the ..read more
Programmer Desk
1y ago
google recaptcha integratein PHP, here are steps to follow:
Go to https://www.google.com/recaptcha/admin/create
Enter domain name and select reCaptcha type.
Generate site and secret key.
Create file and add google script
<script src=’https://www.google.com/recaptcha/api.js’ async defer ></script>
Create index.php file
<html>
<head>
<script src='https://www.google.com/recaptcha/api.js' async defer ></script>
</head>
<body>
<form action="verify.php" method="post">
<div data-sitekey="ENTER_SITE_ ..read more