- Create a folder at the root of your user home folder
(Example:
C:/Users/uname/
) called.ssh
. - Create the following files if they do not already exist (paths begin from the root of your user home folder):
.ssh/config
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Upload your files</title> | |
</head> | |
<body> | |
<form enctype="multipart/form-data" action="upload.php" method="POST"> | |
<p>Upload your file</p> | |
<input type="file" name="uploaded_file"></input><br /> | |
<input type="submit" value="Upload"></input> |
<?php | |
header('Content-Type: text/html; charset=utf-8'); | |
mb_internal_encoding('utf-8'); | |
function wordWrapAnnotation(&$image, &$draw, $text, $maxWidth) | |
{ | |
// separate the text by chinese characters or words or spaces | |
preg_match_all('/([\w]+)|(.)/u', $text, $matches); | |
// $words is array of Chinese characters, English Words or spaces |
<?php | |
// Installed the need packages with Composer by running: | |
// $ composer require aws/aws-sdk-php | |
$filePath = "https://example.com/test.png"; | |
require 'vendor/autoload.php'; | |
$bucketName = 'YOUR_BUCKET_NAME'; | |
$filePath = './YOUR_FILE_NAME.png'; |