其实ignore_user_abort的问题并不复杂,但是又很多的朋友都不太了解ntoskrnl蓝屏如何修复,因此呢,今天小编就来为大家分享ignore_user_abort的一些知识,希望可以帮助到大家,下面我们一起来看看这个问题的分析吧!
在PHP编程中,我们经常会遇到各种各样的问题,其中之一就是如何让脚本在用户中断的情况下继续执行。今天,我们就来深入解析一下PHP中的ignore_user_abort函数,帮助大家告别用户中断,守护你的脚本。
一、什么是ignore_user_abort?
在PHP中,ignore_user_abort函数用于设置脚本在执行过程中是否可以响应用户的中断信号。当脚本设置为响应中断信号时,如果用户中断了脚本(例如关闭浏览器),脚本将立即停止执行。而当脚本设置为忽略中断信号时,即使用户中断了脚本,脚本也会继续执行,直到完成或遇到错误。
二、ignore_user_abort函数的使用方法
1. 基本用法
“`php
ignore_user_abort(true); // 设置脚本忽略用户中断
“`
2. 检查脚本是否被中断
“`php
if (!ignore_user_abort()) {
echo “
MessageBox函式的参数说明
hWnd:
指定该对话框的所有者窗口。如果该参数为空(0),则该对话框不属于任何窗口(?)。
lpText:
显示在对话框中的消息。
lpCaption:
在对话框标题栏中显示的字符串表达式。如果该参数为空(vbNullString),则使用默认的“错误”作为对话框的标题。
wType:
指定显示按钮的数目及形式,使用的图标样式,缺省按钮是什么以及消息框的强制回应等。可以为下列常数之一或某几个数值相加的和。
指定按钮样式:
MB_ABORTRETRYIGNORE
显示 Abort、Retry及 Ignore按钮。
MB_OK
只显示 OK按钮。(默认)
MB_OKCANCEL
显示 OK及 Cancel按钮。
MB_RETRYCANCEL
显示 Retry及 Cancel按钮。
MB_YESNO
显示 Yes及 No按钮。
MB_YESNOCANCEL
显示 Yes、No及 Cancel按钮。
指定图标样式:
MB_ICONEXCLAMATION, MB_ICONWARNING
显示 Warning Message图标。
MB_ICONINFORMATION, MB_ICONASTERISK
显示 Information Message图标。
MB_ICONQUESTION
显示 Warning Query图标。
MB_ICONSTOP, MB_ICONERROR, MB_ICONHAND
显示 Critical Message图标。
指定默认按钮:
MB_DEFBUTTON1
第一个按钮是缺省值。(默认)
MB_DEFBUTTON2
第二个按钮是缺省值。
MB_DEFBUTTON3
第三个按钮是缺省值。
MB_DEFBUTTON4
第四个按钮是缺省值。
指定对话框模式等:
MB_APPLMODAL
应用程序强制返回;应用程序一直被挂起,直到用户对消息框作出响应才继续工作。
MB_SYSTEMMODAL
系统强制返回;全部应用程序都被挂起,直到用户对消息框作出响应才继续工作。
MB_TASKMODAL
MB_DEFAULT_DESKTOP_ONLY
MB_HELP
将Help按钮添加到消息框。
MB_RIGHT
文本为右对齐。
MB_RTLREADING
指定文本应为在希伯来和阿拉伯语系统中的从右到左显示。
MB_SETFOREGROUND
指定消息框窗口作为前景窗口。
MB_TOPMOST
MB_SERVICE_NOTIFICATION
MB_SERVICE_NOTIFICATION_NT3X
MB_SERVICE_NOTIFICATION
返回值:
如果没有足够内存创建消息对话框,则返回0。
如果函数成功运行,则返回下列数值之一:
IDABORT
用户点击了 Abort按钮。
IDCANCEL
用户点击了 Cancel按钮。
IDIGNORE
用户点击了 Ignore按钮。
IDNO
用户点击了 No按钮。
IDOK
用户点击了 OK按钮。
IDRETRY
用户点击了 Retry按钮。
IDYES
用户点击了 Yes按钮。
如果对话框显示 Cancel按钮,则按下 ESC键与单击 Cancel按钮的效果相同。
原文:
The MessageBox function creates, displays, and operates a message box. The message box contains an application-defined message and title, plus any combination of predefined icons and push buttons.
Declaration:
Declare Function MessageBox Lib user32 Alias MessageBoxA(ByVal hwnd As Long, ByVal lpText As String, ByVal lpCaption As String, ByVal wType As Long) As Long
Parameters:
?hWnd
Identifies the owner window of the message box to be created. If this parameter is NULL, the message box has no owner window.
?lpText
Points to a null-terminated string containing the message to be displayed.
?lpCaption
Points to a null-terminated string used for the dialog box title. If this parameter is NULL, the default title Error is used.
?uType
Specifies a set of bit flags that determine the contents and behavior of the dialog box. This parameter can be a combination of flags from the following groups of flags.
Specify one of the following flags to indicate the buttons contained in the message box:
MB_ABORTRETRYIGNORE
The message box contains three push buttons: Abort, Retry, and Ignore.
MB_OK
The message box contains one push button: OK. This is the default.
MB_OKCANCEL
The message box contains two push buttons: OK and Cancel.
MB_RETRYCANCEL
The message box contains two push buttons: Retry and Cancel.
MB_YESNO
The message box contains two push buttons: Yes and No.
MB_YESNOCANCEL
The message box contains three push buttons: Yes, No, and Cancel.
Specify one of the following flags to display an icon in the message box:
MB_ICONEXCLAMATION,
MB_ICONWARNING
An exclamation-point icon appears in the message box.
MB_ICONINFORMATION, MB_ICONASTERISK
An icon consisting of a lowercase letter i in a circle appears in the message box.
MB_ICONQUESTION
A question-mark icon appears in the message box.
MB_ICONSTOP,
MB_ICONERROR,
MB_ICONHAND
A stop-sign icon appears in the message box.
Specify one of the following flags to indicate the default button:
MB_DEFBUTTON1
The first button is the default button.
MB_DEFBUTTON1 is the default unless MB_DEFBUTTON2, MB_DEFBUTTON3, or MB_DEFBUTTON4 is specified.
MB_DEFBUTTON2
The second button is the default button.
MB_DEFBUTTON3
The third button is the default button.
MB_DEFBUTTON4
The fourth button is the default button.
Specify one of the following flags to indicate the modality of the dialog box:
MB_APPLMODAL
The user must respond to the message box before continuing work in the window identified by the hWnd parameter. However, the user can move to the windows of other applications and work in those windows.
Depending on the hierarchy of windows in the application, the user may be able to move to other windows within the application. All child windows of the parent of the message box are automatically disabled, but popup windows are not.
MB_APPLMODAL is the default if neither MB_SYSTEMMODAL nor MB_TASKMODAL is specified.
MB_SYSTEMMODAL
Same as MB_APPLMODAL except that the message box has the WS_EX_TOPMOST style. Use system-modal message boxes to notify the user of serious, potentially damaging errors that require immediate attention(for example, running out of memory). This flag has no effect on the user's ability to interact with windows other than those associated with hWnd.
MB_TASKMODAL
Same as MB_APPLMODAL except that all the top-level windows belonging to the current task are disabled if the hWnd parameter is NULL. Use this flag when the calling application or library does not have a window handle available but still needs to prevent input to other windows in the current application without suspending other applications.
In addition, you can specify the following flags:
MB_DEFAULT_DESKTOP_ONLY
The desktop currently receiving input must be a default desktop; otherwise, the function fails. A default desktop is one an application runs on after the user has logged on.
MB_HELP
Adds a Help button to the message box. Choosing the Help button or pressing F1 generates a Help event.
MB_RIGHT
The text is right-justified.
MB_RTLREADING
Displays message and caption text using right-to-left reading order on Hebrew and Arabic systems.
MB_SETFOREGROUND
The message box becomes the foreground window. Internally, Windows calls the SetForegroundWindow function for the message box.
MB_TOPMOST
The message box is created with the WS_EX_TOPMOST window style.
MB_SERVICE_NOTIFICATION
Windows NT only: The caller is a service notifying the user of an event. The function displays a message box on the current active desktop, even if there is no user logged on to the computer.
If this flag is set, the hWnd parameter must be NULL. This is so the message box can appear on a desktop other than the desktop corresponding to the hWnd.
For Windows NT version 4.0, the value of MB_SERVICE_NOTIFICATION has changed. See WINUSER.H for the old and new values. Windows NT 4.0 provides backward compatibility for pre-existing services by mapping the old value to the new value in the implementation of MessageBox and MessageBoxEx. This mapping is only done for executables that have a version number, as set by the linker, less than 4.0.
To build a service that uses MB_SERVICE_NOTIFICATION, and can run on both Windows NT 3.x and Windows NT 4.0, you have two choices. 1. At link-time, specify a version number less than 4.0; or
2. At link-time, specify version 4.0. At run-time, use the GetVersionEx function to check the system version. Then when running on Windows NT 3.x, use MB_SERVICE_NOTIFICATION_NT3X; and on Windows NT 4.0, use MB_SERVICE_NOTIFICATION.
MB_SERVICE_NOTIFICATION_NT3X
Windows NT only: This value corresponds to the value defined for MB_SERVICE_NOTIFICATION for Windows NT version 3.51.
Return values:
The return value is zero if there is not enough memory to create the message box.
If the function succeeds, the return value is one of the following menu-item values returned by the dialog box:
IDABORT
Abort button was selected.
IDCANCEL
Cancel button was selected.
IDIGNORE
Ignore button was selected.
IDNO
No button was selected.
IDOK
OK button was selected.
IDRETRY
Retry button was selected.
IDYES
Yes button was selected.
If a message box has a Cancel button, the function returns the IDCANCEL value if either the ESC key is pressed or the Cancel button is selected. If the message box has no Cancel button, pressing ESC has no effect.
cisco12406密码恢复
(1)将路由器的口和计算机串口相连,启动计算机超级终端,开启路由器电源,在开机60s内按ctrl+backspace使路由器进入状态,提示符:rommon1>
若无法进入rommon,说明是路由器禁掉了“backspace”,则:通过循环开机的方法进入rom状态,方法是:路由器开机后,将电源关闭,间隔5 s后重新开机,一般会进入rom状态。此方法适用于7500、12000等路由器。
将超级终端通信波特率设置为1200,数据位8,停止位1,无奇偶位。开启路由器电源,启动后关机,5s后重新开机,同时一直按住空格键12s后放开,等路由器启动完成后,重新更改超级终端为默认值,通信波特率设置为9600,数据位8,无奇偶位,停止位1。重新连接后,从终端上可以看到已经进入rom状态。注意:在波特率为1200时,终端上没有内容显示。此方法适用于1700、2500、2600、4500等系列路由器。
(2)在Rommon中输入:conf reg 0x2142,如下所示:
Rommon 1>conf reg 0x2142
(3)输入reset,命令如下:
Rommon 2>reset
(4)当提示是否进入对话配置时回答“no”
(5)键入enable命令进入exec状态
键入router#show config查看原路由器配置和未加密码口令
(6)修改配置更改相关口令:
Router# configuration memory
(7)更改完毕一定要写入NVRAM中,否则路由器原配置会丢失以及改写口令无效:
Router# write memory
(8)将第3步查到的登记码还原,一般为0x2102(即从闪存正常启动,并屏蔽中断),并激活所有端口(系统会将所有端口自动shutdown):
Router#config
register 0x2102
(9)重新启动路由器:Router# reload。
oracle 空间
ORACLE创建表空间步骤,用户授权,操作空间;
说明:在创建数据库时输入的密码,是修改系统默认的密码,以system和sysman等系统默认身份登录时要输入的密码就是修改后的密码(创建数据库时输入的密码)
如果要创建新的用户就必须以system或者sysman(这二者的权限最大)的身份登录后才可创建
创建用户格式:create user用户名 identified by密码(例如:create user cht identified by cht;)
创建完成后,必须分配权限,否则连不上数据库和sqlplus。
因此要做:grant connect,resource,dba to cht;这样数据库就可以通过cht/cht连上了。那些select,update,delete,insert的权限就不必分配了,因为每个用户默认都有这些基本权限。
命令行方式连接数据库的方法:
开始==》运行==》cmd
方式一:
输入sqlplus,回车
输入用户名: system,回车
输入密码: orcl,回车
方式二:
输入sqlplus system/orcl@orcl,回车(system是用户名,orcl是密码,@后面的orcl是库的名字)
(数据库安装完成后,有两个系统级的用户:
1) system默认密码为:manager
2) sys默认密码为:change_on_install)
创建用户前必须要先建好临时表空间和数据表空间两个表空间,否则用系统默认的表空间不好。
//创建临时表空间
create temporary tablespace zfmi_temp tempfile'D:oracleoradatazfmizfmi_temp.dbf' size 100m autoextend on next 32m maxsize 2048m extent management local;
说明:
1、zfmi_temp表空间的名字
2、D:oracleoradatazfmi存放数据库文件的地方,一般是安装数据库后有控制文件,数据文件和日志文件的文件夹,再加上要创建表空间的名字+dbf(数据文件)
3、100M表空间的初始大小
4、32M表空间自动增长的大小
5、2048M表空间最大的大小
//创建数据表空间
create tablespace zfmi logging datafile'D:oracleoradatazfmizfmi.dbf' size 100m autoextend on next 32m maxsize 2048m extent management local;
//创建用户并指定表空间
create user zfmi identified by zfmi default tablespace zfmi temporary tablespace zfmi_temp;
//给用户授予权限
grant connect,resource dba to zfmi;(dba:指定所有权限)
到这一步新建一个用户的工作就完成了。
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//删除用户以及用户所有的对象
drop user zfmi cascade;
//cascade参数是级联删除该用户所有对象,经常遇到如用户有对象而未加此参数则用户删不了的问题,所以习惯性的加此参数
//删除表空间
前提:删除表空间之前要确认该表空间没有被其他用户使用之后再做删除
drop tablespace zfmi including contents and datafiles cascade onstraints;
//including contents删除表空间中的内容,如果删除表空间之前表空间中有内容,而未加此参数,表空间删不掉,所以习惯性的加此参数
//including datafiles删除表空间中的数据文件
//cascade constraints同时删除tablespace中表的外键参照
如果删除表空间之前删除了表空间文件,解决办法:
如果在清除表空间之前,先删除了表空间对应的数据文件,会造成数据库无法正常启动和关闭。
可使用如下方法恢复(此方法已经在oracle9i中验证通过):
下面的过程中,filename是已经被删除的数据文件,如果有多个,则需要多次执行;tablespace_name是相应的表空间的名称。
$ sqlplus/nolog
SQL> conn/ as sysdba;
如果数据库已经启动,则需要先执行下面这行:
SQL> shutdown abort
SQL> startup mount
SQL> alter database datafile'filename' offline drop;
SQL> alter database open;
SQL> drop tablespace tablespace_name including contents;
导入导出命令:
Oracle数据导入导出imp/exp就相当于oracle数据还原与备份。exp命令可以把数据从远程数据库服务器导出到本地的dmp文件, imp命令可以把dmp文件从本地导入到远处的数据库服务器中。利用这个功能可以构建两个相同的数据库,一个用来测试,一个用来正式使用。
下面介绍的是导入导出的实例。(注意:不用连接到SQL/plus,直接在DOS下就可以导出。)
数据导出:
1将数据库TEST完全导出,用户名system密码manager导出到D:daochu.dmp中
exp system/manager@TEST file=d:daochu.dmp full=y
2将数据库中system用户与sys用户的表导出
exp system/manager@TEST file=d:daochu.dmp owner=(system,sys)
3将数据库中的表inner_notify、notify_staff_relat导出
exp aichannel/aichannel@TESTDB2 file= d:datanewsmgnt.dmp tables=(inner_notify,notify_staff_relat)
4将数据库中的表table1中的字段filed1以”00″打头的数据导出
exp system/manager@TEST file=d:daochu.dmp tables=(table1) query=” where filed1 like'00%'”
上面是常用的导出,对于压缩,既用winzip把dmp文件可以很好的压缩。
也可以在上面命令后面加上 compress=y来实现。
数据的导入
1将D:daochu.dmp中的数据导入 TEST数据库中。
imp system/manager@TEST file=d:daochu.dmp
imp aichannel/aichannel@HUST full=y file=d:datanewsmgnt.dmp ignore=y
上面可能有点问题,因为有的表已经存在,然后它就报错,对该表就不进行导入。
在后面加上 ignore=y就可以了。
2将d:daochu.dmp中的表table1导入
imp system/manager@TEST file=d:daochu.dmp tables=(table1)
基本上上面的导入导出够用了。不少情况要先是将表彻底删除,然后导入。
注意:
操作者要有足够的权限,权限不够它会提示。
数据库时可以连上的。可以用tnsping TEST来获得数据库TEST能否连上。
附录一:
给用户增加导入数据权限的操作
第一,启动sql*puls
第二,以system/manager登陆
第三,create user用户名 IDENTIFIED BY密码(如果已经创建过用户,这步可以省略)
第四,GRANT CREATE USER,DROP USER,ALTER USER,CREATE ANY VIEW,
DROP ANY VIEW,EXP_FULL_DATABASE,IMP_FULL_DATABASE,
DBA,CONNECT,RESOURCE,CREATE SESSION TO用户名字
第五,运行-cmd-进入dmp文件所在的目录,
imp userid=system/manager full=y file=*.dmp
或者 imp userid=system/manager full=y file=filename.dmp
执行示例:
F:WorkOracle_Databackup>imp userid=test/test full=y file=inner_notify.dmp
屏幕显示
Import: Release 8.1.7.0.0- Production on星期四 2月 16 16:50:05 2006
(c) Copyright 2000 Oracle Corporation. All rights reserved.
连接到: Oracle8i Enterprise Edition Release 8.1.7.0.0- Production
With the Partitioning option
JServer Release 8.1.7.0.0- Production
经由常规路径导出由EXPORT:V08.01.07创建的文件
已经完成ZHS16GBK字符集和ZHS16GBK NCHAR字符集中的导入
导出服务器使用UTF8 NCHAR字符集(可能的ncharset转换)
.正在将AICHANNEL的对象导入到 AICHANNEL
..正在导入表”INNER_NOTIFY”4行被导入
准备启用约束条件…
成功终止导入,但出现警告。
附录二:
Oracle不允许直接改变表的拥有者,利用Export/Import可以达到这一目的.
先建立import9.par,
然后,使用时命令如下:imp parfile=/filepath/import9.par
例 import9.par内容如下:
FROMUSER=TGPMS
TOUSER=TGPMS2(注:把表的拥有者由FROMUSER改为TOUSER,FROMUSER和TOUSER的用户可以不同)
ROWS=Y
INDEXES=Y
GRANTS=Y
CONSTRAINTS=Y
BUFFER=409600
file==/backup/ctgpc_20030623.dmp
log==/backup/import_20030623.log
创建用户
— Create the user
create user JXTELE_HOMS
identified by”123456″
default tablespace HOMS
temporary tablespace TEMP
profile DEFAULT;
— Grant/Revoke role privileges
grant connect to JXTELE_HOMS with admin option;
grant dba to JXTELE_HOMS with admin option;
grant resource to JXTELE_HOMS with admin option;
— Grant/Revoke system privileges
grant unlimited tablespace to JXTELE_HOMS with admin option;
创建视图
create or replace view inpass_encape_byid as
select p.*,e.ESCAPECODE,e.ESCAPE_NAME,e.ESCAPE_SEX,e.ESCAPE_BIRTHDAY,e.ESCAPE_IDCARD,e.ESCAPE_AREA,
e.ESCAPE_ADDRESS,e.REASON,e.WATCHTIME,
e.WATCHUNIT,e.SIGN,e.AGE,e.CALLPHONE,e.CALLTELEPHONE,e.WATCHUNITCODE,h.hotelname
from in_passenger p join escape e on p.cardcode=e.escape_idcard join hotel h on p.hotelcode=h.hotelcode;
create or replace view in_out_passstatic as
select code,name,count(pcode) cnt,intime,decode(a.roomcount,null,'0',a.roomcount) roomcount
from(select h.hotelcode code,h.hotelname name,substr(i.in_datetime,0,8) intime,i.in_passengercode pcode,h.roomcount roomcount
from IN_Passenger i right join Hotel h on i.hotelcode=h.hotelcode
group by h.HotelCode,substr(i.in_datetime,0,8),h.hotelname,i.in_passengercode,h.roomcount
union select t.hotelcode code,t.hotelname name,substr(p.in_datetime,0,8) intime,p.out_passengercode pcode,t.roomcount roomcount
from Out_Passenger p right join Hotel t on p.hotelcode=t.hotelcode
group by t.HotelCode,substr(p.in_datetime,0,8),t.hotelname,p.out_passengercode,t.roomcount) a
group by a.code,a.intime,a.name,a.roomcount order by a.code;
create or replace view in_passstatic as
select code,name,count(pcode) cnt,intime,decode(a.roomcount,null,'0',a.roomcount) roomcount
from(select h.hotelcode code,h.hotelname name,substr(i.in_datetime,0,8) intime,i.in_passengercode pcode,h.roomcount
from IN_Passenger i right join Hotel h on i.hotelcode=h.hotelcode
group by h.HotelCode,substr(i.in_datetime,0,8),h.hotelname,i.in_passengercode,h.roomcount) a
group by a.code,a.intime,a.name,a.roomcount order by a.code;
create or replace view out_passstatic as
select code,name,count(pcode) cnt,intime,decode(a.roomcount,null,'0',a.roomcount) roomcount
from(select t.hotelcode code,t.hotelname name,substr(p.in_datetime,0,8) intime,p.out_passengercode pcode,t.roomcount
from Out_Passenger p right join Hotel t on p.hotelcode=t.hotelcode
group by t.HotelCode,substr(p.in_datetime,0,8),t.hotelname,p.out_passengercode,t.roomcount) a
group by a.code,a.intime,a.name,a.roomcount order by a.code;
文章分享结束,ignore_user_abort和ntoskrnl蓝屏如何修复的答案你都知道了吗?欢迎再次光临本站哦!




