PHP Warning: Unexpected character in input: '' (ASCII=16) state=0 in
該当のエラーを消したい。
実行コード
<?php require_once './aws.phar'; date_default_timezone_set('Asia/Tokyo'); mb_internal_encoding("UTF-8"); use Aws\Ses\SesClient; use Aws\Common\Aws; use Aws\DynamoDbException\DynamoDbException; $aws = Aws::factory('./config.php'); try { $client = $aws->get('dynamodb'); for ($i=$argv[1]+1 ; $i <= 100 + $argv[1] ; $i++) { $result = $client->putItem(array( 'TableName' => 'range', 'Item' => $client->formatAttributes(array( 'hash' => 'Hash', 'range' => $i, 'StringAttribute' => 'String', 'NumberAttribute' => 100, 'CreateDate' => date("Y-m-d H:i:s"), )), )); } } catch (DynamoDbException $e) { echo $e->getMessage(); }
実行結果
[Desktop] php sample-dynamo.php 0 13:00:00 PHP Warning: Unexpected character in input: '' (ASCII=16) state=0 in sample-dynamo.php on line 20 PHP Warning: Unexpected character in input: '' (ASCII=16) state=0 in sample-dynamo.php on line 21

回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2015/06/12 05:27