
트랙사스 써밋
수캥이꺼.
아마존 S3 PHP 주요코드
$response = $s3->list_objects('bucket', array( 'prefix' => 'FD/', 'max-keys' => 1000000 )); var_dump($response->isOK()); print_r($response->body);
$response = $s3->delete_all_objects('bucket','/FD\/000000000000/');
$response = $s3->delete_object('bucket', 'FD/1.jpg');
$response = $s3->copy_object(array('bucket' => 'bucket','filename' =>'1.jpg'),array('bucket' => 'bucket','filename' => 'FD/2.jpg'));
$s3->batch()->create_object('bucket','FD/2.jpg', array( 'fileUpload' => './3.jpg', 'acl' => AmazonS3::ACL_PUBLIC, )); $file_upload_response = $s3->batch()->send();
ssh 관련 명령 실행시 but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT! 이 화면에 떠도 사용에 문제가 있는건 아니니 걱정마삼
언어 | 식별자 |
ActionScript3 | as3, actionscript3 |
Bash/shell | bash, shell |
ColdFusion | cf, coldfusion |
C# | c-sharp, csharp |
C++ | cpp, c |
CSS | css |
Delphi | delphi, pas, pascal |
Diff | diff, patch |
Erlang | erl, erlang |
Groovy | groovy |
JavaScript | js, jscript, javascript |
Java | java |
JavaFX | jfx, javafx |
Perl | perl, pl |
PHP | php |
Plain Text | plain, text |
PowerShell | ps, powershell |
Python | py, python |
Ruby | rails, ror, ruby |
Scala | scala |
SQL | sql |
Visual Basic | vb, vbnet |
XML | xml, xhtml, xslt, html, xhtml |
yum clean all
살짝쿵 때려준다
function _deg2rad($deg) { $radians = 0.0; $radians = $deg * M_PI/180.0; return($radians); } function geoDistance($lat1, $lon1, $lat2, $lon2, $unit="k") { $theta = $lon1 - $lon2; $dist = sin(_deg2rad($lat1)) * sin(_deg2rad($lat2)) + cos(_deg2rad($lat1)) * cos(_deg2rad($lat2)) * cos(_deg2rad($theta)); $dist = acos($dist); $dist = rad2deg($dist); $miles = $dist * 60 * 1.1515; $unit = strtolower($unit); if ($unit == "k") { return ($miles * 1.609344); } else { return $miles; } }
텍스트큐브에서 제공한 샘플 설정 자체 버그임 (//rewrite.php 호출)
set $rewrite_base '/'; 에서 set $rewrite_base ''; 으로 / 만 빼면 정상 작동함
set $rewrite_base '';
if (!-f $request_filename) {
rewrite ^(thumbnail)/([0-9]+/.+)$ cache/$1/$2;
}
if ($request_filename ~* ^(cache)+/+(.+[^/])\.(cache|xml|txt|log)$) {
return 403;
}
if (-d $request_filename) {
rewrite ^(.+[^/])$ $1/;
}
rewrite ^(.*)$ $rewrite_base/rewrite.php last;
worker_processes 2;
gzip on; gzip_http_version 1.0; gzip_comp_level 2; gzip_proxied any; gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
client_max_body_size 100M;