uniqid
// with prefix
echo uniqid(‘foo_’);
/* prints
foo_4bd67d6cd8b8f
*/
// with more entropy
echo uniqid(”,true);
/* prints
4bd67d6cd8b926.12135106
*/
// both
echo uniqid(‘bar_’,true);
/* prints
bar_4bd67da367b650.43684647
*/
// with prefix
echo uniqid(‘foo_’);
/* prints
foo_4bd67d6cd8b8f
*/
// with more entropy
echo uniqid(”,true);
/* prints
4bd67d6cd8b926.12135106
*/
// both
echo uniqid(‘bar_’,true);
/* prints
bar_4bd67da367b650.43684647
*/
// get all php files
$files = glob(‘*.php’);
print_r($files);
/* output looks like:
Array
(
[0] => phptest.php
[1] => pi.php
[2] => post_output.php
[3] => test.php
)
*/
<!–[if lt IE 7]><script src=”http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE7.js”></script><![endif]–>
<!–[if lt IE 8]><script src=”http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js”></script><![endif]–>
<!–[if lt IE 9]><script src=”http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js”></script><![endif]–>
http://code.google.com/p/ie7-js/
// yes, the argument list can be empty
function foo() {
// returns an array of all passed arguments
$args = func_get_args();
foreach ($args as $k => $v) {
echo “arg”.($k+1).”: $v\n”;
}
}
foo();
/* prints nothing */
foo(‘hello’);
/* prints
arg1: hello
*/
foo(‘hello’, ‘world’, ‘again’);
/* prints
arg1: hello
arg2: world
arg3: again
*/
BUFFER |
A parameter comparable to BUFFER is not needed. |
CHARSET |
A parameter comparable to CHARSET is not needed. |
COMMIT |
A parameter comparable to COMMIT is not supported. |
COMPILE |
A parameter comparable to COMPILE is not supported. |
CONSTRAINTS |
EXCLUDE=CONSTRAINT |
DATAFILES |
TRANSPORT_DATAFILES |
DESTROY |
REUSE_DATAFILES |
FEEDBACK |
STATUS |
FILE |
DUMPFILE |
FILESIZE |
Not necessary. It is included in the dump file set. |
FROMUSER |
SCHEMAS |
FULL |
FULL |
GRANTS |
EXCLUDE=GRANT |
HELP |
HELP |
IGNORE |
TABLE_EXISTS_ACTION |
INDEXES |
EXCLUDE=INDEX |
INDEXFILE |
SQLFILE with INCLUDE INDEX |
LOG |
LOGFILE |
PARFILE |
PARFILE |
RECORDLENGTH |
A parameter comparable toRECORDLENGTH is not needed. |
RESUMABLE |
A parameter comparable to RESUMABLE is not needed. It is automatically defaulted for privileged users. |
RESUMABLE_NAME |
A parameter comparable toRESUMABLE_NAME is not needed. It is automatically defaulted for privileged users. |
RESUMABLE_TIMEOUT |
A parameter comparable toRESUMABLE_TIMEOUT is not needed. It is automatically defaulted for privileged users. |
ROWS=N |
CONTENT =METADATA_ONLY |
ROWS=Y |
CONTENT =ALL |
SHOW |
SQLFILE |
SKIP_UNUSABLE_INDEXES |
SKIP_UNUSABLE_INDEXES |
STATISTICS |
A parameter comparable to STATISTICS is not needed. If the source table has statistics, they are imported. |
STREAMS_CONFIGURATION |
STREAMS_CONFIGURATION |
STREAMS_INSTANTIATION |
A parameter comparable toSTREAMS_INSTANTIATION is not needed. |
TABLES |
TABLES |
TABLESPACES |
This parameter still exists, but some of its functionality is now performed using theTRANSPORT_TABLESPACES parameter. |
TOID_NOVALIDATE |
A command comparable toTOID_NOVALIDATE is not needed. OIDs are no longer used for type validation. |
TOUSER |
REMAP_SCHEMA |
TRANSPORT_TABLESPACE |
TRANSPORT_TABLESPACES (see command description) |
TTS_OWNERS |
A parameter comparable to TTS_OWNERS is not needed because the information is stored in the dump file set. |
USERID |
A parameter comparable to USERID is not needed. This information is supplied as theusername /password when you invoke Import. |
VOLSIZE |
A parameter comparable to VOLSIZE is not needed because tapes are not supported. |