/ Forside / Teknologi / Udvikling / PHP / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
PHP
#NavnPoint
rfh 3959
natmaden 3372
poul_from 3310
funbreak 2700
stone47 2230
Jin2k 1960
Angband 1743
Bjerner 1249
refi 1185
10  Interkril.. 1146
Fejl meddelelser
Fra : RHO


Dato : 07-06-03 11:36

Hej
Jeg ønsker at lave tilpassede fejl-meddelelser vha. mysql_errno() . Kan
nogen hjælpe mig med at finde en fortegnelse over fejl-numrene?.

Rene



 
 
Peter Theill (07-06-2003)
Kommentar
Fra : Peter Theill


Dato : 07-06-03 12:41

> Jeg ønsker at lave tilpassede fejl-meddelelser vha. mysql_errno() . Kan
> nogen hjælpe mig med at finde en fortegnelse over fejl-numrene?.

Jeg ved ikke hvor der findes en fuldstaendig liste, men vha 'perror' kan du
liste beskrivelsen for en given fejl-kode. Fx:

[pt@filebasket pt]$ perror `seq 0 200`
Error code 0: Success
Error code 1: Operation not permitted
Error code 2: No such file or directory
Error code 3: No such process
Error code 4: Interrupted system call
Error code 5: Input/output error
Error code 6: No such device or address
Error code 7: Argument list too long
Error code 8: Exec format error
Error code 9: Bad file descriptor
Error code 10: No child processes
Error code 11: Resource temporarily unavailable
Error code 12: Cannot allocate memory
Error code 13: Permission denied
Error code 14: Bad address
Error code 15: Block device required
Error code 16: Device or resource busy
Error code 17: File exists
Error code 18: Invalid cross-device link
Error code 19: No such device
Error code 20: Not a directory
Error code 21: Is a directory
Error code 22: Invalid argument
Error code 23: Too many open files in system
Error code 24: Too many open files
Error code 25: Inappropriate ioctl for device
Error code 26: Text file busy
Error code 27: File too large
Error code 28: No space left on device
Error code 29: Illegal seek
Error code 30: Read-only file system
Error code 31: Too many links
Error code 32: Broken pipe
Error code 33: Numerical argument out of domain
Error code 34: Numerical result out of range
Error code 35: Resource deadlock avoided
Error code 36: File name too long
Error code 37: No locks available
Error code 38: Function not implemented
Error code 39: Directory not empty
Error code 40: Too many levels of symbolic links
Error code 41: Unknown error 41
Error code 42: No message of desired type
Error code 43: Identifier removed
Error code 44: Channel number out of range
Error code 45: Level 2 not synchronized
Error code 46: Level 3 halted
Error code 47: Level 3 reset
Error code 48: Link number out of range
Error code 49: Protocol driver not attached
Error code 50: No CSI structure available
Error code 51: Level 2 halted
Error code 52: Invalid exchange
Error code 53: Invalid request descriptor
Error code 54: Exchange full
Error code 55: No anode
Error code 56: Invalid request code
Error code 57: Invalid slot
Error code 58: Unknown error 58
Error code 59: Bad font file format
Error code 60: Device not a stream
Error code 61: No data available
Error code 62: Timer expired
Error code 63: Out of streams resources
Error code 64: Machine is not on the network
Error code 65: Package not installed
Error code 66: Object is remote
Error code 67: Link has been severed
Error code 68: Advertise error
Error code 69: Srmount error
Error code 70: Communication error on send
Error code 71: Protocol error
Error code 72: Multihop attempted
Error code 73: RFS specific error
Error code 74: Bad message
Error code 75: Value too large for defined data type
Error code 76: Name not unique on network
Error code 77: File descriptor in bad state
Error code 78: Remote address changed
Error code 79: Can not access a needed shared library
Error code 80: Accessing a corrupted shared library
Error code 81: .lib section in a.out corrupted
Error code 82: Attempting to link in too many shared libraries
Error code 83: Cannot exec a shared library directly
Error code 84: Invalid or incomplete multibyte or wide character
Error code 85: Interrupted system call should be restarted
Error code 86: Streams pipe error
Error code 87: Too many users
Error code 88: Socket operation on non-socket
Error code 89: Destination address required
Error code 90: Message too long
Error code 91: Protocol wrong type for socket
Error code 92: Protocol not available
Error code 93: Protocol not supported
Error code 94: Socket type not supported
Error code 95: Operation not supported
Error code 96: Protocol family not supported
Error code 97: Address family not supported by protocol
Error code 98: Address already in use
Error code 99: Cannot assign requested address
Error code 100: Network is down
Error code 101: Network is unreachable
Error code 102: Network dropped connection on reset
Error code 103: Software caused connection abort
Error code 104: Connection reset by peer
Error code 105: No buffer space available
Error code 106: Transport endpoint is already connected
Error code 107: Transport endpoint is not connected
Error code 108: Cannot send after transport endpoint shutdown
Error code 109: Too many references: cannot splice
Error code 110: Connection timed out
Error code 111: Connection refused
Error code 112: Host is down
Error code 113: No route to host
Error code 114: Operation already in progress
Error code 115: Operation now in progress
Error code 116: Stale NFS file handle
Error code 117: Structure needs cleaning
Error code 118: Not a XENIX named type file
Error code 119: No XENIX semaphores available
Error code 120: Is a named type file
120 = Didn't find key on read or update
Error code 121: Remote I/O error
121 = Duplicate key on write or update
Error code 122: Disk quota exceeded
Error code 123: No medium found
123 = Someone has changed the row since it was read; Update with is
recoverable
Error code 124: Wrong medium type
124 = Wrong index given to function
Error code 125: Operation canceled
Error code 126: Unknown error 126
126 = Index file is crashed / Wrong file format
Error code 127: Unknown error 127
127 = Record-file is crashed
Error code 128: Unknown error 128
Error code 129: Unknown error 129
Error code 130: Unknown error 130
Error code 131: Unknown error 131
131 = Command not supported by database
Error code 132: Unknown error 132
132 = Old database file
Error code 133: Unknown error 133
133 = No record read before update
Error code 134: Unknown error 134
134 = Record was already deleted (or record file crashed)
Error code 135: Unknown error 135
135 = No more room in record file
Error code 136: Unknown error 136
136 = No more room in index file
Error code 137: Unknown error 137
137 = No more records (read after end of file)
Error code 138: Unknown error 138
138 = Unsupported extension used for table
Error code 139: Unknown error 139
139 = Too big row (>= 16 M)
Error code 140: Unknown error 140
140 = Wrong create options
Error code 141: Unknown error 141
141 = Duplicate unique key or constraint on write or update
Error code 142: Unknown error 142
142 = Unknown character set used
Error code 143: Unknown error 143
143 = Conflicting table definition between MERGE and mapped table
Error code 144: Unknown error 144
144 = Table is crashed and last repair failed
Error code 145: Unknown error 145
145 = Table was marked as crashed and should be repaired
Error code 146: Unknown error 146
146 = Lock timed out; Retry transaction
Error code 147: Unknown error 147
147 = Lock table is full; Restart program with a larger locktable
Error code 148: Unknown error 148
148 = Updates are not allowed under a read only transactions
Error code 149: Unknown error 149
149 = Lock deadlock; Retry transaction

Der findes sikkert en bedre maade, men ovenstaaende liste kan maaske hjaelpe
dig et stykke af vejen.

--
Peter Theill - http://www.theill.com/



RHO (07-06-2003)
Kommentar
Fra : RHO


Dato : 07-06-03 14:30

Tak peter,

Det hjalp et godt stykke på vejen. Jeg har forsøgt at gendanne din sql
sætning i phpMyAdmin men uden held. Hvad betyder den første del:
[pt@filebasket pt]

RHO

"Peter Theill" <user@example.net> skrev i en meddelelse
news:3ee1cf4e$0$48899$edfadb0f@dtext02.news.tele.dk...
> > Jeg ønsker at lave tilpassede fejl-meddelelser vha. mysql_errno() . Kan
> > nogen hjælpe mig med at finde en fortegnelse over fejl-numrene?.
>
> Jeg ved ikke hvor der findes en fuldstaendig liste, men vha 'perror' kan
du
> liste beskrivelsen for en given fejl-kode. Fx:
>
> [pt@filebasket pt]$ perror `seq 0 200`
> Error code 0: Success
> Error code 1: Operation not permitted
> Error code 2: No such file or directory
> Error code 3: No such process
> Error code 4: Interrupted system call
> Error code 5: Input/output error
> Error code 6: No such device or address
> Error code 7: Argument list too long
> Error code 8: Exec format error
> Error code 9: Bad file descriptor
> Error code 10: No child processes
> Error code 11: Resource temporarily unavailable
> Error code 12: Cannot allocate memory
> Error code 13: Permission denied
> Error code 14: Bad address
> Error code 15: Block device required
> Error code 16: Device or resource busy
> Error code 17: File exists
> Error code 18: Invalid cross-device link
> Error code 19: No such device
> Error code 20: Not a directory
> Error code 21: Is a directory
> Error code 22: Invalid argument
> Error code 23: Too many open files in system
> Error code 24: Too many open files
> Error code 25: Inappropriate ioctl for device
> Error code 26: Text file busy
> Error code 27: File too large
> Error code 28: No space left on device
> Error code 29: Illegal seek
> Error code 30: Read-only file system
> Error code 31: Too many links
> Error code 32: Broken pipe
> Error code 33: Numerical argument out of domain
> Error code 34: Numerical result out of range
> Error code 35: Resource deadlock avoided
> Error code 36: File name too long
> Error code 37: No locks available
> Error code 38: Function not implemented
> Error code 39: Directory not empty
> Error code 40: Too many levels of symbolic links
> Error code 41: Unknown error 41
> Error code 42: No message of desired type
> Error code 43: Identifier removed
> Error code 44: Channel number out of range
> Error code 45: Level 2 not synchronized
> Error code 46: Level 3 halted
> Error code 47: Level 3 reset
> Error code 48: Link number out of range
> Error code 49: Protocol driver not attached
> Error code 50: No CSI structure available
> Error code 51: Level 2 halted
> Error code 52: Invalid exchange
> Error code 53: Invalid request descriptor
> Error code 54: Exchange full
> Error code 55: No anode
> Error code 56: Invalid request code
> Error code 57: Invalid slot
> Error code 58: Unknown error 58
> Error code 59: Bad font file format
> Error code 60: Device not a stream
> Error code 61: No data available
> Error code 62: Timer expired
> Error code 63: Out of streams resources
> Error code 64: Machine is not on the network
> Error code 65: Package not installed
> Error code 66: Object is remote
> Error code 67: Link has been severed
> Error code 68: Advertise error
> Error code 69: Srmount error
> Error code 70: Communication error on send
> Error code 71: Protocol error
> Error code 72: Multihop attempted
> Error code 73: RFS specific error
> Error code 74: Bad message
> Error code 75: Value too large for defined data type
> Error code 76: Name not unique on network
> Error code 77: File descriptor in bad state
> Error code 78: Remote address changed
> Error code 79: Can not access a needed shared library
> Error code 80: Accessing a corrupted shared library
> Error code 81: .lib section in a.out corrupted
> Error code 82: Attempting to link in too many shared libraries
> Error code 83: Cannot exec a shared library directly
> Error code 84: Invalid or incomplete multibyte or wide character
> Error code 85: Interrupted system call should be restarted
> Error code 86: Streams pipe error
> Error code 87: Too many users
> Error code 88: Socket operation on non-socket
> Error code 89: Destination address required
> Error code 90: Message too long
> Error code 91: Protocol wrong type for socket
> Error code 92: Protocol not available
> Error code 93: Protocol not supported
> Error code 94: Socket type not supported
> Error code 95: Operation not supported
> Error code 96: Protocol family not supported
> Error code 97: Address family not supported by protocol
> Error code 98: Address already in use
> Error code 99: Cannot assign requested address
> Error code 100: Network is down
> Error code 101: Network is unreachable
> Error code 102: Network dropped connection on reset
> Error code 103: Software caused connection abort
> Error code 104: Connection reset by peer
> Error code 105: No buffer space available
> Error code 106: Transport endpoint is already connected
> Error code 107: Transport endpoint is not connected
> Error code 108: Cannot send after transport endpoint shutdown
> Error code 109: Too many references: cannot splice
> Error code 110: Connection timed out
> Error code 111: Connection refused
> Error code 112: Host is down
> Error code 113: No route to host
> Error code 114: Operation already in progress
> Error code 115: Operation now in progress
> Error code 116: Stale NFS file handle
> Error code 117: Structure needs cleaning
> Error code 118: Not a XENIX named type file
> Error code 119: No XENIX semaphores available
> Error code 120: Is a named type file
> 120 = Didn't find key on read or update
> Error code 121: Remote I/O error
> 121 = Duplicate key on write or update
> Error code 122: Disk quota exceeded
> Error code 123: No medium found
> 123 = Someone has changed the row since it was read; Update with is
> recoverable
> Error code 124: Wrong medium type
> 124 = Wrong index given to function
> Error code 125: Operation canceled
> Error code 126: Unknown error 126
> 126 = Index file is crashed / Wrong file format
> Error code 127: Unknown error 127
> 127 = Record-file is crashed
> Error code 128: Unknown error 128
> Error code 129: Unknown error 129
> Error code 130: Unknown error 130
> Error code 131: Unknown error 131
> 131 = Command not supported by database
> Error code 132: Unknown error 132
> 132 = Old database file
> Error code 133: Unknown error 133
> 133 = No record read before update
> Error code 134: Unknown error 134
> 134 = Record was already deleted (or record file crashed)
> Error code 135: Unknown error 135
> 135 = No more room in record file
> Error code 136: Unknown error 136
> 136 = No more room in index file
> Error code 137: Unknown error 137
> 137 = No more records (read after end of file)
> Error code 138: Unknown error 138
> 138 = Unsupported extension used for table
> Error code 139: Unknown error 139
> 139 = Too big row (>= 16 M)
> Error code 140: Unknown error 140
> 140 = Wrong create options
> Error code 141: Unknown error 141
> 141 = Duplicate unique key or constraint on write or update
> Error code 142: Unknown error 142
> 142 = Unknown character set used
> Error code 143: Unknown error 143
> 143 = Conflicting table definition between MERGE and mapped table
> Error code 144: Unknown error 144
> 144 = Table is crashed and last repair failed
> Error code 145: Unknown error 145
> 145 = Table was marked as crashed and should be repaired
> Error code 146: Unknown error 146
> 146 = Lock timed out; Retry transaction
> Error code 147: Unknown error 147
> 147 = Lock table is full; Restart program with a larger locktable
> Error code 148: Unknown error 148
> 148 = Updates are not allowed under a read only transactions
> Error code 149: Unknown error 149
> 149 = Lock deadlock; Retry transaction
>
> Der findes sikkert en bedre maade, men ovenstaaende liste kan maaske
hjaelpe
> dig et stykke af vejen.
>
> --
> Peter Theill - http://www.theill.com/
>
>



Jacob Atzen (07-06-2003)
Kommentar
Fra : Jacob Atzen


Dato : 07-06-03 15:04

"RHO" <dsl8955@vip.cybercity.dk> writes:

> Det hjalp et godt stykke på vejen. Jeg har forsøgt at gendanne din sql
> sætning i phpMyAdmin men uden held. Hvad betyder den første del:
> [pt@filebasket pt]

Det ligner mistænkelig en shell. Det første pt er username, filebasket
er hostname og det sidste pt er current dir. Så altså ikke noget
direkte relateret til PHP.

--
Med venlig hilsen
- Jacob Atzen

Peter Theill (08-06-2003)
Kommentar
Fra : Peter Theill


Dato : 08-06-03 01:17

> Det ligner mistænkelig en shell. Det første pt er username, filebasket
> er hostname og det sidste pt er current dir. Så altså ikke noget
> direkte relateret til PHP.

Korrekt - det er en eksekvering af kommandoen "perror" med et variabelt
argument fra 0 til 200. Det samme som at skrive:

bash$ perror 0
bash$ perror 1
bash$ perror 2
...
bash$ perror 200



--
Peter Theill - http://www.theill.com/



Søg
Reklame
Statistik
Spørgsmål : 177559
Tips : 31968
Nyheder : 719565
Indlæg : 6408936
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste