MYSQLND_MS_MATCH_WILD(3) 1 MYSQLND_MS_MATCH_WILD(3)mysqlnd_ms_match_wild - Finds whether a table name matches a wildcard pattern or notSYNOPSIS
bool mysqlnd_ms_match_wild (string $table_name, string $wildcard)
DESCRIPTION
Finds whether a table name matches a wildcard pattern or not.
This function is not of much practical relevance with PECL mysqlnd_ms 1.1.0 because the plugin does not support MySQL replication table
filtering yet.
PARAMETERS
o $table_name
- The table name to check if it is matched by the wildcard.
o $wildcard
- The wildcard pattern to check against the table name. The wildcard pattern supports the same placeholders as MySQL replication
filters do. MySQL replication filters can be configured by using the MySQL Server configuration options --replicate-wild-do-table
and --replicate-wild-do-db. Please, consult the MySQL Reference Manual to learn more about this MySQL Server feature. The sup-
ported placeholders are:
o % - zero or more literals
o _ - one literal
Placeholders can be escaped using .
RETURN VALUES
Returns TRUE table_name is matched by wildcard. Otherwise, returns FALSE
EXAMPLES
Example #1
mysqlnd_ms_match_wild(3) example
<?php
var_dump(mysqlnd_ms_match_wild("schema_name.table_name", "schema%"));
var_dump(mysqlnd_ms_match_wild("abc", "_"));
var_dump(mysqlnd_ms_match_wild("table1", "table_"));
var_dump(mysqlnd_ms_match_wild("asia_customers", "%customers"));
var_dump(mysqlnd_ms_match_wild("funny%table","funny\%table"));
var_dump(mysqlnd_ms_match_wild("funnytable", "funny%table"));
?>
The above example will output:
bool(true)
bool(false)
bool(true)
bool(true)
bool(true)
bool(true)
PHP Documentation Group MYSQLND_MS_MATCH_WILD(3)
Check Out this Related Man Page
UOPZ_FLAGS(3) 1 UOPZ_FLAGS(3)uopz_flags - Get or set flags on function or classSYNOPSIS
int uopz_flags (string $class, string $function, int $flags)
DESCRIPTION
int uopz_flags (string $function, int $flags)
Get or set the flags on a class or function entry at runtime
PARAMETERS
o $class
- The name of a class
o $function
- The name of the function
o $flags
- A valid set of ZEND_ACC_ flags, ZEND_ACC_FETCH to read flags
RETURN VALUES
If setting, returns old flags, else returns flags
EXAMPLES
Example #1
uopz_flags(3) example
<?php
class Test {
public function method() {
return __CLASS__;
}
}
$flags = uopz_flags("Test", "method", ZEND_ACC_FETCH);
var_dump((bool) (uopz_flags("Test", "method", ZEND_ACC_FETCH) & ZEND_ACC_PRIVATE));
var_dump((bool) (uopz_flags("Test", "method", ZEND_ACC_FETCH) & ZEND_ACC_STATIC));
var_dump(uopz_flags("Test", "method", $flags|ZEND_ACC_STATIC|ZEND_ACC_PRIVATE));
var_dump((bool) (uopz_flags("Test", "method", ZEND_ACC_FETCH) & ZEND_ACC_PRIVATE));
var_dump((bool) (uopz_flags("Test", "method", ZEND_ACC_FETCH) & ZEND_ACC_STATIC));
?>
The above example will output something similar to:
bool(false)
bool(false)
int(1234567890)
bool(true)
bool(true)
PHP Documentation Group UOPZ_FLAGS(3)
I am writing a script that looks for files. I need to know if there is a placeholder character when doing this. I know that you can user a wildcard (*) character, but I would prefer to be a bit more specific. When I get files in a specific directory, I know part of the name, but not the rest and... (7 Replies)
hi..
i have this script called test.cfg that needs to accept parameters and contains this codings:
load data
input_text=$1
table_name=$2
INFILE '$input_text'
append into table $table_name
fields terminated by '|'
(
THS_M,
THS_D,
THS_H,
THS_HT
)
I have another script name... (6 Replies)
Could someone tell me the single character wildcard for SED?
I have the file below:
$ more input2
AAA /A/B/C BBB /D/E/F
CCC /G/H/I DDD
I want to remove all strings which contain forward slashs "/" to get the below:
AAA BBB
CCC
I tried to do it in SED by the command below but I... (8 Replies)
Hi,
I have got a little problem where some of the files I created had some funny characters e.g space ,"^M" etc inserted in the full file name and which caused our backup script to skip those files.
Is it possible to find out if there are any funny charaters in a string ?
Thanks, (4 Replies)
When I'm running a few statements through mysql console, they are working just fine but when I'm trying to write some logic in php and trying to execute it, its awfully slow.. Its perhaps performing, 10 queries in 20 seconds... :( Why is this happening?
My table structures are:
Name:... (23 Replies)
Hi,
I have a directory with possibly around 800,000 files in it.
What is the fastest way to list file(s) in this directory with a wildcard.
for example would
ls -1 *.abcdefg.Z
or
find . -name "*.abcdefg.Z"
be the fastest way to find all of the files that end with .abcdefg.Z... (6 Replies)
Many of us used to or work now with customers. So it naturally happens that something really funny or weird comes across - stories that need to be told.
What is it for you ?
I used to work as a technical consultant for a Software Company and part of my job was to maintain and troubleshoot... (5 Replies)
Anyone have a clue about this?
I have checked the MySQL documentation and it does not seem possible to exclude a row of a table from replication between Master and Slave. It seems that replication in MySQL can only be managed at the table level, not at the row level.
Does anyone know a work... (5 Replies)
Hi,
how can we search for a pattren between two words? below are the examples
input
1)select from table_name c1,c2,c3,c4,fn(),fn2(),c5;-->false
2)select from table_name c1,c2,c3,c4;--True
3)select from table
c1,
c2,
c3,
fn(),
c4;-->true
4)select from table_name
c1,
c2,
c3;-->true... (11 Replies)
Hi all ,
am using unix aix ..
Actually i have a table called table 1
in that table
year period startdate enddate
2013 1 26/03/2012 29/04/2012
2013 2 30/04/2012 27/05/2012
2013 3 28/05/2012 28/06/2012
2013 4 25/06/2012 ... (10 Replies)
Hi All,
can you help me with "*" wildcard character in sed, i am a bit confused. I am going through a reference and found that below code
sed -n '/a*c/' file
will also return a line that contain the string
output :
close the window properly
how is that possible when there is no "a"... (11 Replies)
I have lines like:
table10 table_name_10 table10 table_name_10
table20 table_name_20 table20 table_name_20
table30 table_name_30 table30 table_name_30
I want to change the second "table_names" in all lines to test_table_name. Required output would be:
table10 table_name_10 table10... (19 Replies)
I think I must be missing something obvious but I have a file containing a list of files and paths, some with wildcard, others with spaces. e.g.
/this/is/a/file
/this/is/a/directory/
/this/is/a/collection/*
/this/has spaces/in/it
/this/had spaces/and/list/of/files*... (6 Replies)
Hi,
This has been pestering me for quite a while, any help will be highly appreciated
The current directory has a file with below name
npidata_20050523-20171210.csv
The below wildcard matched the above file
ls -ltr npidata_????????-201712??.csv
But when the part '201712' is put... (6 Replies)