#Test credit card numbers to use when developing with Stripe
4242424242424242 Visa
4012888888881881 Visa
4000056655665556 Visa (debit)
#Test credit card numbers to use when developing with Stripe
4242424242424242 Visa
4012888888881881 Visa
4000056655665556 Visa (debit)
https://aws.amazon.com/premiumsupport/knowledge-center/redirect-http-https-elb/#
Command to restart apache httpd:
sudo service httpd restart
First thing you have to connect to ssh using macos or putty for windows by added the downloaded key file. Run the following command:
sudo yum update -y
The above command ensure that all of your software packages are up to date.
Anyone who knows a little bit about the Linux and UNIX platforms, he/she must be heard about the LAMP Stack. LAMP Stack is the group of services that work together in order to serve the dynamic websites and web apps. The LAMP stack can be installed and configured on almost all Linux variants such as Amazon Linux, Ubuntu, Red Hat, and Fedora. In this tutorials, we will explain how to install LAMP on Ubuntu 16.04 EC2 instance. Generally, LAMP stack consists of the following components:
## To remove the /index.php/ part from all URLs, add two lines after the RewriteEngine statement: | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} ^/index\.php/ | |
RewriteRule ^index.php/(.*) /$1 [R,L] | |
## You can also add two lines to remove the .html suffix if it has been turned on before: | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} \.html$ | |
RewriteRule (.*)\.html$ /$1 [R,L] |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
<title>Textbox Value to Switch Selectbox</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script> | |
</head> | |
<body> | |
<input id="textvalue" type="text" value="Boy"> | |
<select id="mySelect"> |
<?php | |
define( '_JEXEC', 1 ); | |
// JPATH_BASE should point to Joomla!'s root directory | |
define( 'JPATH_BASE', realpath(dirname(__FILE__) .'/' ) ); | |
define( 'DS', DIRECTORY_SEPARATOR ); | |
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' ); | |
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' ); | |
$mainframe =& JFactory::getApplication('site'); | |
$mainframe->initialise(); | |
$user =& JFactory::getUser(); |
/* @param mixed $time1 a time (string or timestamp) | |
* @param mixed $time2 a time (string or timestamp) | |
* @param integer $precision Optional precision | |
* @return string time difference | |
*/ | |
function get_date_diff( $time1, $time2, $precision = 2 ) { | |
// If not numeric then convert timestamps | |
if( !is_int( $time1 ) ) { |
// encode(decode) html text into html entity | |
var decodeHtmlEntity = function(str) { | |
return str.replace(/&#(\d+);/g, function(match, dec) { | |
return String.fromCharCode(dec); | |
}); | |
}; | |
var encodeHtmlEntity = function(str) { | |
var buf = []; | |
for (var i=str.length-1;i>=0;i--) { |