Hướng dẫn force stop php script - buộc dừng tập lệnh php
Tôi đã viết mã PHP như thế này:
Tôi đã lưu nó trong thư mục webserver. Tôi bắt đầu nó thông qua trình duyệt của tôi. Làm thế nào tôi có thể dừng tập lệnh trong khi thực hiện?during execution? Trân trọng ;)
Potashin 43.6K11 Huy hiệu vàng81 Huy hiệu bạc105 Huy hiệu Đồng11 gold badges81 silver badges105 bronze badges Hỏi ngày 8 tháng 1 năm 2015 lúc 6:55Jan 8, 2015 at 6:55
3 Nếu bạn đang ở trên hệ thống Unix, hãy làm điều này:
Bây giờ bạn có thể giết nó bằng lệnh Nếu bạn đang chạy trên Windows, bạn không thể (trừ khi bạn có thể kéo lên trình quản lý tác vụ theo cách thủ công) và nếu bạn chỉ có truy cập trình duyệt web vào máy chủ và bạn đang chạy tập lệnh qua máy chủ web một lần nữa, bạn không thể giết quá trình. Dù bằng cách nào chạy một tập lệnh vòng lặp vô hạn mà không có khả năng giết nó trên lệnh là một ý tưởng tồi. Tham khảo cách phát hiện dừng hoặc chạy tập lệnh PHP từ ngoài và nền
Đã trả lời ngày 8 tháng 1 năm 2015 lúc 7:08Jan 8, 2015 at 7:08
1
?>
Đã trả lời ngày 8 tháng 1 năm 2015 lúc 7:06Jan 8, 2015 at 7:06
PriyankpriyankPriyank 3.6403 huy hiệu vàng28 Huy hiệu bạc47 Huy hiệu đồng3 gold badges28 silver badges47 bronze badges Bạn hoặc sử dụng Đã trả lời ngày 8 tháng 1 năm 2015 lúc 6:59Jan 8, 2015 at 6:59
RealitätsverlustrealitätsverlustRealitätsverlust 3.9132 Huy hiệu vàng21 Huy hiệu bạc46 Huy hiệu đồng2 gold badges21 silver badges46 bronze badges 1 sunfundev tại gmail dot com 5 năm trước — Output a message and terminate the current script Alexyam tại Live Dot Com ¶10 năm trước(string Devinemke tại Devinemke dot com(int 20 năm trước Powtac tại GMX de ¶4 năm trướcShaun tại Noshatspam Dot Net Chris at Ocproducts Dot Com ¶int, that value will be used as the exit status and not printed. Exit statuses should be in the range 0 to 254, the exit status 255 is reserved by PHP and shall not be used. The status 0 is used to terminate the program successfully. Matt tại serverboy dot net ¶Kehaovista tại qq dot com ¶ 6 năm trướcAlexander Behling ¶ 7 8 91 năm trước 1(Php 4, Php 5, Php 7, Php 8) 2 3 4Thoát - xuất một tin nhắn và chấm dứt tập lệnh hiện tại Shutdown: shutdown() Destruct: Foo::__destruct() Sự mô tả ¶ 11 năm trước
5 6 7 8 9Albert tại Removeethis Dot Peschar Dot Net ¶ 13 năm trước Shutdown: shutdown() Destruct: Foo::__destruct()0 Shutdown: shutdown() Destruct: Foo::__destruct()1 Shutdown: shutdown() Destruct: Foo::__destruct()2 Shutdown: shutdown() Destruct: Foo::__destruct()3 theonenkl tại gmail dot com ¶ ¶ 7 năm trước Shutdown: shutdown() Destruct: Foo::__destruct()4 Shutdown: shutdown() Destruct: Foo::__destruct()5 Shutdown: shutdown() Destruct: Foo::__destruct()6 Shutdown: shutdown() Destruct: Foo::__destruct()7 Shutdown: shutdown() Destruct: Foo::__destruct()8 Vincent dot laag tại gmail dot com ¶ ¶ 12 năm trước Shutdown: shutdown() Destruct: Foo::__destruct()9 vô hiệu hóa một thông tin t t thông tin ¶ ¶ 13 năm trước
Shutdown: shutdown() Destruct: Foo::__destruct()3 Emils tại TVNet Dot LV ¶ ¶ 19 năm trước
m dot ressergolis tại gmail dot com ¶ ¶ 7 năm trước
Shutdown: shutdown() Destruct: Foo::__destruct()3 Vincent dot laag tại gmail dot com ¶ ¶ 12 năm trước
kill -9 PID 8vô hiệu hóa một thông tin t t thông tin ¶ ¶ Emils tại TVNet Dot LV ¶
Shutdown: shutdown() Destruct: Foo::__destruct()3 19 năm trước ¶ m dot ressergolis tại gmail dot com ¶
Shutdown: shutdown() Destruct: Foo::__destruct()3 sunfundev tại gmail dot com ¶ 5 năm trước
Alexyam tại Live Dot Com ¶ ¶ m dot ressergolis tại gmail dot com ¶
Shutdown: shutdown() Destruct: Foo::__destruct()3 sunfundev tại gmail dot com ¶ 5 năm trước
Shutdown: shutdown() Destruct: Foo::__destruct()3 Alexyam tại Live Dot Com ¶ ¶ 12 năm trước
Shutdown: shutdown() Destruct: Foo::__destruct()3 vô hiệu hóa một thông tin t t thông tin ¶ ¶ Emils tại TVNet Dot LV ¶
$status 319 năm trước ¶ m dot ressergolis tại gmail dot com ¶
Shutdown: shutdown() Destruct: Foo::__destruct()3 |