This is a list of the supported RTSP status codes and their meanings
100 – Continue
200 – OK
201 – Created
250 – Low on Storage Space
300 – Multiple Choices
301 – Moved Permanently
302 – Moved Temporarily
303 – See Other
304 – Not Modified
305 – Use Proxy
400 – Bad Request
401 – Unauthorized
402 – Payment Required
403 – Forbidden
404 – Not Found
405 – Method Not Allowed
406 – Not Acceptable
407 – Proxy Authentication Required
408 – Request Time-out
410 – Gone
411 – Length Required
412 – Precondition Failed
413 – Request Entity Too Large
414 – Request-URI Too Large
415 – Unsupported Media Type
451 – Parameter Not Understood
452 – Conference Not Found
453 – Not Enough Bandwidth
454 – Session Not Found
455 – Method Not Valid in This State
456 – Header Field Not Valid for Resource
457 – Invalid Range
458 – Parameter Is Read-Only
459 – Aggregate operation not allowed
460 – Only aggregate operation allowed
461 – Unsupported transport
462 – Destination unreachable
463 – Key management Failure
500 – Internal Server Error
501 – Not Implemented
502 – Bad Gateway
503 – Service Unavailable
504 – Gateway Time-out
505 – RTSP Version not supported
551 – Option not supported
User – URL [.htacess, mod_rewrite] – index.php [route] – path/script-will-be-exec.php [access DB] – data [template] – HTML
Chèn vào đầu file index.php:
if (file_exists(‘offline’)) {
echo ‘Offline!’;
exit(0);
}
// current code
Và thế là mỗi khi muốn làm gì đó (update/upload code, upgrade version, fix bug…), chỉ cần: touch offline
Cách này hay hơn so với:
- Offline nhờ thiết lập cấu hình trong db
- Offline bằng cách tạo index.html và cấu hình ưu tiên index.html lớn hơn index.php (user nhập hẳn index.php thì sao)
mysql -uroot -pRooTIsmE -h mysqlServer
create user special@’%’ identified by ‘password’;
grant all on *.* to special@’%’ identified by ‘password’;
revoke drop, delete on *.* from special@’%’ identified by ‘password’;
flush privileges;
show grants for special@’%';
exit;
mysql -uspecial -ppassword
create database huypv;
drop database huypv;
#ERROR 1044 (42000): Access denied for user ’special’@'%’ to database ‘huypv’
Create new text file: simple-plugin.php
Enter following content:
/*
Plugin Name: Modify Post Content
*/
function modifyPostContent($content) {
return $content . '
This entry is posted by XXX – Thank you for reading’;
}
add_filter(‘the_content’, ‘modifyPostContent’);
Zip it and upload to server to install new plugin. Access your single page and see at end of post.
If you want to use class, you change your code
class YourClassName {
function modifyPostContent($content) {
return $content . ‘
This entry is posted by XXX – Thank you for reading’;
}
}
add_filter(‘the_content’, array(‘YourClassName’, ‘modifyPostContent’));
Vừa nãy bị, vào cPanel thì vẫn okie. Thử /zzz.txt cũng thấy phun ra 500.
Xem qua access log thì thấy bị từ chiều.
Quái, có làm éo gì đâu, hỏi bác support server phát.
abc xyz
Xóa bố thằng .htaccess đi xem nào
F5, reload lại trang. Ơ, đúng thật, mình có thay đổi gì file .htaccess đâu nhỉ. Quái, biết thế đã.