Tech Solutions

Generate PDF in PHP using TCPDF (TCPDF HTML to PDF)

TCPDF is an open-source PHP library for generating PDF documents on-the-fly (TCPDF HTML to PDF). After downloading  TCPDF library, you can invoke all the basic functions of this class to generate your PDF. TCPDF Supports UTF-8, Unicode, RTL languages, XHTML, Javascript, digital signatures, barcodes and much more. Let’s see step by step how you can use the …

Generate PDF in PHP using TCPDF (TCPDF HTML to PDF) Read More »

How to install a LAMP web server on Amazon Linux 2?

The following procedures help you set up an Apache web server with support from PHP and MariaDB (a branch of MySQL developed by the community) on your Amazon Linux2 Instance. Source : AWS Documents Steps 1: Prepare LAMP server 1. If you have not launched any Linux instance till now, please click on below link. 2. Connect your instance using below link. 3. To make sure all your software packages …

How to install a LAMP web server on Amazon Linux 2? Read More »

How to connect to AWS EC2 instance via SSH/Putty from windows using a key-pair?

In this article, you will see how we can connect AWS EC2 instance via SSH/Putty from windows using a key-pair. In previous article, we already learn how to launch an instance. Please click the below link. Let’s start the process of connecting EC2 instance via SSH/Putty. Step 1: Sign In to AWS Management Console and …

How to connect to AWS EC2 instance via SSH/Putty from windows using a key-pair? Read More »

How can I prevent SQL injection in PHP?

Avoiding SQL injection attacks can be done through complete separation of data and commands. Though it’s easy to mix these two up, they should remain separate when working with SQL statements – one dictates what needs to happen while the other provides its content. When using uncalculated statements or those without properly programmed parameters, there …

How can I prevent SQL injection in PHP? Read More »

How to set time zone of America in PHP?

Default time zone of America/Los_Angeles in PHP Time Zone of America/Los_Angeles date_default_timezone_set(‘America/Los_Angeles’); How to write in PHP and print/echo? <?php date_default_timezone_set(“America/Los_Angeles”); $time_stamp_America = date(“Y-m-d H:i:s”); echo $time_stamp_America ; echo ‘<br />’; echo date_default_timezone_get() . ‘ => ‘ . date(‘e’) . ‘ => ‘ . date(‘T’); ?> Output : 2022-07-10 10:57:20America/Los_Angeles => America/Los_Angeles => PST

 - 
Afrikaans
 - 
af
Albanian
 - 
sq
Amharic
 - 
am
Arabic
 - 
ar
Armenian
 - 
hy
Azerbaijani
 - 
az
Basque
 - 
eu
Belarusian
 - 
be
Bengali
 - 
bn
Bosnian
 - 
bs
Bulgarian
 - 
bg
Catalan
 - 
ca
Cebuano
 - 
ceb
Chichewa
 - 
ny
Chinese (Simplified)
 - 
zh-CN
Chinese (Traditional)
 - 
zh-TW
Corsican
 - 
co
Croatian
 - 
hr
Czech
 - 
cs
Danish
 - 
da
Dutch
 - 
nl
English
 - 
en
Esperanto
 - 
eo
Estonian
 - 
et
Filipino
 - 
tl
Finnish
 - 
fi
French
 - 
fr
Frisian
 - 
fy
Galician
 - 
gl
Georgian
 - 
ka
German
 - 
de
Greek
 - 
el
Gujarati
 - 
gu
Haitian Creole
 - 
ht
Hausa
 - 
ha
Hawaiian
 - 
haw
Hebrew
 - 
iw
Hindi
 - 
hi
Hmong
 - 
hmn
Hungarian
 - 
hu
Icelandic
 - 
is
Igbo
 - 
ig
Indonesian
 - 
id
Irish
 - 
ga
Italian
 - 
it
Japanese
 - 
ja
Javanese
 - 
jw
Kannada
 - 
kn
Kazakh
 - 
kk
Khmer
 - 
km
Korean
 - 
ko
Kurdish (Kurmanji)
 - 
ku
Kyrgyz
 - 
ky
Lao
 - 
lo
Latin
 - 
la
Latvian
 - 
lv
Lithuanian
 - 
lt
Luxembourgish
 - 
lb
Macedonian
 - 
mk
Malagasy
 - 
mg
Malay
 - 
ms
Malayalam
 - 
ml
Maltese
 - 
mt
Maori
 - 
mi
Marathi
 - 
mr
Mongolian
 - 
mn
Myanmar (Burmese)
 - 
my
Nepali
 - 
ne
Norwegian
 - 
no
Pashto
 - 
ps
Persian
 - 
fa
Polish
 - 
pl
Portuguese
 - 
pt
Punjabi
 - 
pa
Romanian
 - 
ro
Russian
 - 
ru
Samoan
 - 
sm
Scots Gaelic
 - 
gd
Serbian
 - 
sr
Sesotho
 - 
st
Shona
 - 
sn
Sindhi
 - 
sd
Sinhala
 - 
si
Slovak
 - 
sk
Slovenian
 - 
sl
Somali
 - 
so
Spanish
 - 
es
Sundanese
 - 
su
Swahili
 - 
sw
Swedish
 - 
sv
Tajik
 - 
tg
Tamil
 - 
ta
Telugu
 - 
te
Thai
 - 
th
Turkish
 - 
tr
Ukrainian
 - 
uk
Urdu
 - 
ur
Uzbek
 - 
uz
Vietnamese
 - 
vi
Welsh
 - 
cy
Xhosa
 - 
xh
Yiddish
 - 
yi
Yoruba
 - 
yo
Zulu
 - 
zu