milleusi wrote:i need to use exec(), what to do?
Are you searching for a file on a unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$list = findFile('*.mp3', '/home/username/');
I still think glob() makes more sense though.th.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$list = findFile('*.mp3', '/home/username/');
I still think glob() makes more sense though.746cd64e]
Are you searching for a file on a unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$list = findFile('*.mp3', '/home/username/');
I still think glob() makes more sense though.1]
function findFile($file, $path) {
exec('find '.$path.'* -name "e;'.$file.'"e; -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in 'quote]
Are you searching for a file on a unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$list = findFile('*."milleusi"]i need to use exec(), what to do?[/quote]
Are you searching for a file on a unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$list = findFile('*.mp3', '/home/username/');
I still think glob() makes more sense though.]
Are you searching for a file on a unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "e;'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = fse exec(), what to do?[/quote]
Are you searching for a file on a unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$list = findFile('*.mp3', '/home/username/');
I still think glob() makes more sense though."milleusi"]i need to use exec(), what to do?[/quote]
Are you searching for a file on a unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$list = findFile('*.mp3', '/home/username/');
I still think glob() makes more sensnt', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home exec(), what to do?[/quote]
Are you searching for a file on a unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$list = findFile('*.mp3', '/home/username/');
I still think glob() makes more sense thougsearching for a file on a unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$list = findFile('*.mp3', '/home/username/');
[/e]
function findFile($file, $path) {
exec('find '.$path.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$list = findFile('*.mp3', '/home/username/');
Are you searching for a file on a unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$list = findFile('*.mp3', '/home/username/');
I still think glob() "milleusi"]i need to use exec(), what to do?[/quote]
Are you searching for a file on a unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "e;'.$file.'"e; -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$ching for a file on a unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "e;'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root dir"milleusi"]i need to use exec(), what to do?[/quote]
Are you searching for a file on a unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filena unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "e;'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$list = findFile('*.mp3', '/home/username/');
I still think glob() makes more sense though.ote]
Are you searching for a file on a unix system?
Code: Select all
function findFile($file, $path) {
exec('find '.$path.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$list = findFile('*.mp3', '/home/username/');
I still think glob() makes more sense though.dFile($file, $path) {
exec('find '.$path.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from y
function findFile($file, $path) {
exec('find '.$path.'* -name "'.$file.'" -print', $list);
return $list;
}
/*
E.g.
Find any filename containing 'foo' from the
-- root directory down.
*/
$list = findFile('*foo*', '/');
/*
Find any filename ending in '.mp3' from your
-- home directory down.
*/
$list = findFile('*.mp3', '/home/username/');
I still think glob() makes more sense though.