use realpath is better that i think
2009/8/26 Steve :
> Ashley Sheridan wrote:
>>
>> On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote:
>>
>>>
>>> 2009/8/26 Ashley Sheridan :
>>>
On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote:
>
> I've been playing about more and now I
Ashley Sheridan wrote:
On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote:
2009/8/26 Ashley Sheridan :
On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote:
I've been playing about more and now I have the following code:
$folder ){
echo "\n"; //Don't need folders as they're s
some code copy from my old codes for truncatedir function,it for
backend compatibility.
see this
PHP_EOL (string)
Available since PHP 4.3.10 and PHP 5.0.2
http://cn.php.net/manual/en/reserved.constants.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.ne
On Wed, Aug 26, 2009 at 9:45 AM, hack988 hack988 wrote:
> I'm write a php file for you
> =
> define('Line_End', (PHP_OS == 'WINNT')?"\r\n":"\n");
> clearstatcache();
>
> $mylist=array();
> listdir("F:\\Programming\\Web\\php",$mylist);
> function listdir($dir,
I'm write a php file for you
=
define('Line_End', (PHP_OS == 'WINNT')?"\r\n":"\n");
clearstatcache();
$mylist=array();
listdir("F:\\Programming\\Web\\php",$mylist);
function listdir($dir,&$list){
if ($handle = opendir( $dir )){
while ( false !== ( $item
2009/8/26 hack988 hack988 :
> your means "Health and Safety Questionnaire"is directory?
> so you want it display like this
> full dir path <> filename<>date
>
Yes.
I did try using if(is_dir($file)) { insert tab } but couldn't get it to work.
Also tried counting the length of the $file value and an
your means "Health and Safety Questionnaire"is directory?
so you want it display like this
full dir path <> filename<>date
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/8/26 Ashley Sheridan :
> On Wed, 2009-08-26 at 18:21 +0800, hack988 hack988 wrote:
>> "have a tab inserted in the middle of the path" ??? What it mean,I
>> can't find any diffrent between last one with other rows.
>>
> It might be because of the way that the mailing list software converts
> th
2009/8/26 hack988 hack988 :
> "have a tab inserted in the middle of the path" ??? What it mean,I
> can't find any diffrent between last one with other rows.
>
To clarify - this is what I was getting:
/<<>>9216_100_REV_V1.0_bound.dwg<<>>05/08/2009
/Tender Docs/<<>>BAA Works Terms v1.1 (22.05.08).p
On Wed, 2009-08-26 at 18:21 +0800, hack988 hack988 wrote:
> "have a tab inserted in the middle of the path" ??? What it mean,I
> can't find any diffrent between last one with other rows.
>
It might be because of the way that the mailing list software converts
the content?
I tend to always make CS
"have a tab inserted in the middle of the path" ??? What it mean,I
can't find any diffrent between last one with other rows.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
2009/8/26 Ashley Sheridan :
> On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote:
>> 2009/8/26 Ashley Sheridan :
>> > On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote:
>> >> I've been playing about more and now I have the following code:
>> >>
>> >> > >> error_reporting(E_ALL);
>> >> ini_set('dis
On Wed, 2009-08-26 at 09:50 +0100, Tom Chubb wrote:
> 2009/8/26 Ashley Sheridan :
> > On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote:
> >> I've been playing about more and now I have the following code:
> >>
> >> >> error_reporting(E_ALL);
> >> ini_set('display_errors', true);
> >>
> >> functi
2009/8/26 Ashley Sheridan :
> On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote:
>> I've been playing about more and now I have the following code:
>>
>> > error_reporting(E_ALL);
>> ini_set('display_errors', true);
>>
>> function getDirectory($path = '.', $ignore = '') {
>> $dirTree = array (
On Tue, 2009-08-25 at 17:08 +0100, Tom Chubb wrote:
> I've been playing about more and now I have the following code:
>
> error_reporting(E_ALL);
> ini_set('display_errors', true);
>
> function getDirectory($path = '.', $ignore = '') {
> $dirTree = array ();
> $dirTreeTemp = array ();
>
I've been playing about more and now I have the following code:
$folder ){
echo "\n"; //Don't need folders as they're shown with the files
foreach( $folder as $file){
echo str_replace("./", "", $key) . "\t" . $file . "\t\n"; //Pad
out with a tab for easy import into excel
}
}
pri
2009/8/25 Ralph Deffke :
> I would say
> foreach( $dirTree as $key => $value ){
> echo $key ."";
> foreach( $value as $v){
> echo $v .";
> }
> }
>
> something like that
>
> ralph_def...@yahoo.de
> "Tom Chubb" wrote in message
> news:4577934f0908250241i195dc691x3f8c552e72791...@mail
2009/8/25 Ashley Sheridan :
> On Tue, 2009-08-25 at 12:06 +0200, Ralph Deffke wrote:
>> I would say
>> foreach( $dirTree as $key => $value ){
>> echo $key ."";
>> foreach( $value as $v){
>> echo $v .";
>> }
>> }
>>
>> something like that
>>
>> ralph_def...@yahoo.de
>> "Tom Chubb
On Tue, 2009-08-25 at 12:06 +0200, Ralph Deffke wrote:
> I would say
> foreach( $dirTree as $key => $value ){
> echo $key ."";
> foreach( $value as $v){
> echo $v .";
> }
> }
>
> something like that
>
> ralph_def...@yahoo.de
> "Tom Chubb" wrote in message
> news:4577934f09082
I would say
foreach( $dirTree as $key => $value ){
echo $key ."";
foreach( $value as $v){
echo $v .";
}
}
something like that
ralph_def...@yahoo.de
"Tom Chubb" wrote in message
news:4577934f0908250241i195dc691x3f8c552e72791...@mail.gmail.com...
Hi gang,
I'm trying to create a
> I'm recursivley reading and editing every .htm and .html file in a 500
page
> website and upgrading it to contain linked CSS, Javascript includes and
PHP
> includes. i can't use a pre_pend file as there's more than one website on
> the server, and the changes are embedded in the document rather
don't know what apache does but this will give you everything below the
pathn you pass in.
function sitemap($ddPath)
{ $dhandle = opendir($ddPath);
echo("");
while ($ddFile = readdir($dhandle))
{ if ($ddFile == "." or $ddFile == "..") continue; // trap .
and ..
22 matches
Mail list logo