On 19 April 2010 17:18, Al wrote:
>
>
> On 4/19/2010 11:11 AM, Adam Richardson wrote:
>>
>> On Mon, Apr 19, 2010 at 10:59 AM, Al wrote:
>>
>>> I'm working on a hosted website that was hacked and found something I
>>> don't
>>> fully understand. Thought someone here may know the answer.
>>>
>>> Th
Apache 2.0.63
php 5.2.8
I know both are obsolete and need updating. I told my client to request
same from their ISP.
Al
On 4/19/2010 12:01 PM, Jim Lucas wrote:
Al wrote:
I'm working on a hosted website that was hacked and found something I
don't fully understand. Thought someone here ma
Al wrote:
> I'm working on a hosted website that was hacked and found something I
> don't fully understand. Thought someone here may know the answer.
>
> The site has 4 php malicious files in directories owned by "system" [php
> created dirs on the site are named "nobody"] and permissions 755.
>
On 4/19/2010 11:11 AM, Adam Richardson wrote:
On Mon, Apr 19, 2010 at 10:59 AM, Al wrote:
I'm working on a hosted website that was hacked and found something I don't
fully understand. Thought someone here may know the answer.
The site has 4 php malicious files in directories owned by "syste
On Mon, Apr 19, 2010 at 10:59 AM, Al wrote:
> I'm working on a hosted website that was hacked and found something I don't
> fully understand. Thought someone here may know the answer.
>
> The site has 4 php malicious files in directories owned by "system" [php
> created dirs on the site are named
I'm working on a hosted website that was hacked and found something I don't
fully understand. Thought someone here may know the answer.
The site has 4 php malicious files in directories owned by "system" [php created
dirs on the site are named "nobody"] and permissions 755.
Is there any way t
Hi gang,
I'm trying to create a script to read the files in a folder (approx
2000) and get the filename, path and last modified date in a tabulated
format to copy into excel. (We have been issued a CD and need to get
all files documented and assigned to an owner.)
I've tried loads of different scr
On Thu, February 7, 2008 12:30 pm, Steve Marquez wrote:
> Greetings,
>
> Could someone please point me in the right direction? I am trying to
> have
> PHP find out if a directory has files in it and then if it does,
> display and
> include, if it does not, then not display the include.
>
> I have
Steve Marquez wrote:
Greetings,
Could someone please point me in the right direction?
Turn left at the next light...
I am trying to have
PHP find out if a directory has files in it and then if it does, display
Display what? The directory name, or the list of files?
and include,
What
On Thu, 2008-02-07 at 12:30 -0600, Steve Marquez wrote:
> Could someone please point me in the right direction? I am trying to have
> PHP find out if a directory has files in it and then if it does, display and
> include, if it does not, then not display the include.
oooh, goodie! You get to play
Greetings,
Could someone please point me in the right direction? I am trying to have
PHP find out if a directory has files in it and then if it does, display and
include, if it does not, then not display the include.
I have looked at the Manual and did not really know where to look.
Thanks,
--
On Sat, 2007-10-20 at 01:36 +0300, Marek wrote:
> I have a simple directory listing script - you can move up and down
> directories and it shows the files/dirs inside. Now I have to figure out
> a way to display the latest modification time for each directory.
>
> The problem is that filemtime() w
I have a simple directory listing script - you can move up and down
directories and it shows the files/dirs inside. Now I have to figure out
a way to display the latest modification time for each directory.
The problem is that filemtime() works only if the modifications are done
on the first level
I made a few changes to the script using system calls and changed the
datatype to be a string on the sprintf portion of the script
I doubt it is the most intelligent method of resolving the issue, but
it got the job done.
I do not run this on an Internet site, just a local intranet website
that I
On Wed, April 11, 2007 3:36 pm, Robert M wrote:
> Does anyone else have any other ideas how to resolve this, I have
> tried
> multiple different methods all failed.
>
> Does the 2 GB limitation using filesize have an alternate method of
> producing the output. ?
>
> Thank you Logan for trying.
The
Well it looks like I am forced to use a different approach do to the
limitations of PHP
http://bugs.php.net/bug.php?id=27792
This Bug has been around now for HOW long now.
Seems to me that it would have been addressed in the past few years,
Gigabyte files have been around a long time. Maybe not
Robert M wrote:
Does anyone else have any other ideas how to resolve this, I have tried
multiple different methods all failed.
Does the 2 GB limitation using filesize have an alternate method of
producing the output. ?
Thank you Logan for trying.
I think you'd better file a bug report to PH
Does anyone else have any other ideas how to resolve this, I have tried
multiple different methods all failed.
Does the 2 GB limitation using filesize have an alternate method of
producing the output. ?
Thank you Logan for trying.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
ogan
-Original Message-
From: Robert M [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 10, 2007 3:59 PM
To: php-general@lists.php.net
Subject: [PHP] PHP Directory List Script Files over 2 GB
Hello everyone
My OS information is
PHP Version 5.1.6
Apache/2.2.2 (Fedora)
Fedora Core 5 Kerne
Hello everyone
My OS information is
PHP Version 5.1.6
Apache/2.2.2 (Fedora)
Fedora Core 5 Kernel 2.6.20-1.2307.fc5
I am having some trouble with a script that displays files within a
directory.
the script does not appear to be displaying large files and the date thaty
is displayed on these larg
I don't think web browsers are going to send you the name of the
directory the file comes from.
On Nov 1, 2006, at 10:50 AM, Sugrue, Sean wrote:
I'm trying retrieve a directory name and a filename with a form. I
want
to use input type file so the user can browse for the file but keep
the
On Wed, November 1, 2006 12:50 pm, Sugrue, Sean wrote:
> I'm trying retrieve a directory name and a filename with a form. I
> want
> to use input type file so the user can browse for the file but keep
> the
> whole directory name.
I don't think you *can* get a directory name out of standard HTML i
I'm trying retrieve a directory name and a filename with a form. I want
to use input type file so the user can browse for the file but keep the
whole directory name.
Any help
Sean
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think that these kind of questions are very annoying - it is almost
rude to post this to a list.
Why don't you
a) show that you have done some thinking
b) have at least scanned the manual
c) have asked Google.
/frank
8 sep 2006 kl. 07.12 skrev Manoj Singh:
Hello all,
I am developing a s
On Fri, 2006-09-08 at 10:42 +0530, Manoj Singh wrote:
> Hello all,
>
> I am developing a site in which i have to show the directory structure of
> any server i.e the admin will enter any site name and i have to show the dir
> structure of that site name.
Crawl baby, crawl! You need to load a page
On Friday 08 September 2006 00:12, Manoj Singh wrote:
> Hello all,
>
> I am developing a site in which i have to show the directory structure of
> any server i.e the admin will enter any site name and i have to show the
> dir structure of that site name.
>
> Please help me to fix this.
The followi
Hello all,
I am developing a site in which i have to show the directory structure of
any server i.e the admin will enter any site name and i have to show the dir
structure of that site name.
Please help me to fix this.
Thanks & Regards
Manoj
On Thursday 26 January 2006 03:48 pm, The Doctor wrote:
> How can one do this ?? CLient wants to isolate away so
> development code so that only he can upload it and no one in the world can
> see it.
>
> --
> Member - Liberal International
> This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED]
> Go
How can one do this ?? CLient wants to isolate away so
development code so that only he can upload it and no one in the world can
see it.
--
Member - Liberal International
This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED]
God Queen and country! Beware Anti-Christ rising!
Born 29 Jan 1969
Does anyone know if there is a way to change permission on a directory
on a Solaris OS through php? And if there is a way authenticate the
owner of
the directory through an rlogin or su.
Sean
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
What I know about Windows mapped drives could fit in a matchbook with room
for every Playmate's phone number...
But the answer I always hear when people are trying to do what you are
trying to do is "Samba"
HTH
On Wed, May 18, 2005 7:37 am, dreiph said:
> Thank you Chris,
>
> but this is not I n
Thank you Chris,
but this is not I needed.
Let me explain my situation.
I have a big server with a lot of audio files, working within LAN, with
Windows 2000 Pro on it. Let's call it as "FileServer". Also I have another
server with Apache2 and PHP installed, windows 2000 PRO too, let's say it is
Dreiph,
If you're familiar with PEAR, take a look at this:
http://pear.php.net/package/HTML_TreeMenu
regards
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
I have a plain text file with the following direcory listing:
\first
\second
\third
\third\first
\third\first\first
\third\first\second
\third\second
\third\second\first
\third\second\second
\fourth
How can I get directory tree from this and using Javascript or DHTML display
such view:
On Thursday 14 April 2005 22:25, Reynier Perez Mira wrote:
> How I can obtain directory perms and how I know if they are RW on Win32
> plattforms? I find into PHP Manual but I only obtain function fileperms
> wich have only for files and not for directories
fileperms() works on files AND directori
How I can obtain directory perms and how I know if they are RW on Win32
plattforms? I find into PHP Manual but I only obtain function fileperms wich
have only for files and not for directories
Regards
Reynier Pérez Mira
3ero. Ing. Informática
Entre más inteligente me siento, más me doy cue
> Would some please provide me some simple rules for dealing with php
> scripts to
> fopen(), copy() and move_uploaded_file().
>
> Environment is Linux, Apache on a virtual host
>
> I've spent a lot of time goggling, etc. and can find lot's of explanations
> for
> owner, group and world. They soun
Would some please provide me some simple rules for dealing with php scripts to
fopen(), copy() and move_uploaded_file().
Environment is Linux, Apache on a virtual host
I've spent a lot of time goggling, etc. and can find lot's of explanations for
owner, group and world. They sound great; but do
On Tuesday 09 November 2004 17:09, Dave Lampron wrote:
> Hello I'm having problems with the following code:
>
> if (! ($dp = opendir($imagesdir))) die ("cannot open $imagesdir.");
> while($file = readdir($dp))
> {
> if ($file != '.' && $file != '..')
> {
>
> ///Second test doesn't seem
Hello I'm having problems with the following code:
if (! ($dp = opendir($imagesdir))) die ("cannot open $imagesdir.");
while($file = readdir($dp))
{
if ($file != '.' && $file != '..')
{
///Second test doesn't seem to catch sub-directories under $imagesdir
if(is_dir($file)) / Thi
I'm beginning to learn PHP to rebuild my web site in such a way that I
can update it more easily (...and add some other dynamic features ...and
utilize a database). I like the idea of a simple directory structure and
it's a sensible way to organize my various projects and topics. So what
I want
Hi!!
I have writen a php_module.so but i havent access right to move my
module to the php-directory!!
Is the any other way to load php_module!!!
BR
Wrong place, look at directory functions ;)
Matthias Wulkow wrote:
Hi php-general,
I'm reading through the filesystem function of php and I can't find
any function which will list me all the files which are in a certain
directory. Am I blind or do I have to "create" myself one?
Thanks for help
Hi php-general,
I'm reading through the filesystem function of php and I can't find
any function which will list me all the files which are in a certain
directory. Am I blind or do I have to "create" myself one?
Thanks for help
M. W.
--
Who is the ennemy?
--
PHP General Mailing List (http:/
On Fri, 2003-08-15 at 12:36, Marek Kilimajer wrote:
> Are you sure it hangs? It might take a long time to get occupied size.
> This also depends on the filesystem used, I heard reserfs is best at this.
>
Well, I thought it was hanging cuz 15 mins went past without any
return...then I figured it h
Are you sure it hangs? It might take a long time to get occupied size.
This also depends on the filesystem used, I heard reserfs is best at this.
Chris Blake wrote:
Greetings learned PHP(eople);
Is there a way to calculate the size of directory in PHP ?
I searched php.net and only found ways of
Greetings learned PHP(eople);
Is there a way to calculate the size of directory in PHP ?
I searched php.net and only found ways of opening directories and
reading file sizes
One suggestion on there was to do the following :
$mstrng = shell_exec('du -sc /backup/');
echo '' . $mstrng . '';
W
Hi there,
I'm trying to ristrict access to a directory in my public root. /members/
should only be access able to people who have access .. and access rights
are stored in a mysql databace. Should I be using .htaccess?
Can anyone open a discussion about this ... because i would like to lean
more
At 00:40 04.04.2003, Mantas Kriauciunas said:
[snip]
>Hey
>I looked up in the manual but found only
>Disk_total_space
>Disk_free_space
>
>Is there anything like total_space for directory?
>Or I will have to think of something else?
>Like counting every file
Hey
I looked up in the manual but found only
Disk_total_space
Disk_free_space
Is there anything like total_space for directory?
Or I will have to think of something else?
Like counting every file size and adding it to total.
But if there is like 1000 files with directories in the main directory.
At 17:58 08.03.2003, news.php.net said:
[snip]
>I want to have the /php directory
>one directory above the /web root
>so it is not accessible from browser command line execution but
>will execute from a click on an
>html page. CGI-PHP is i
Greetings,
I am using php on a Sun Cobalt Linux
server with many virtual hosts.
I want to have the /php directory
one directory above the /web root
so it is not accessible from browser command line execution but
will execute from a click on an
html page. CGI-PHP is installed
but I need to know
--- Jay Paulson <[EMAIL PROTECTED]> wrote:
> I was running fileperms() function to find out what a directory is
> chmod'ed to.
Just so you know, chmod is "change mode". I understand what you mean, though;
you are wanting to know the permissions of a directory.
> However, this doesn't return anyth
I was running fileperms() function to find out what a directory is chmod'ed
to. However, this doesn't return anything because it has to check a file.
My question is there a function that will return what a directory is
chmod'ed to?
Thanks!
Jay
--
PHP General Mailing List (http://www.php.net/)
Jeff
- Original Message -
From: "Marek Kilimajer" <[EMAIL PROTECTED]>
To: "Antti" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 4:37 AM
Subject: Re: [PHP] Directory size
> there is no php function for this, you can us
there is no php function for this, you can use unix command du or do it
in a loop
Antti wrote:
How do I get the directory size? Suppose there is a function for this.
antti
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How do I get the directory size? Suppose there is a function for this.
antti
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thursday 09 January 2003 16:29, Aleš Lončar wrote:
> Hi!
>
> I have one question.
> How can I get sorted listing of a direcorty with readdir function? Is this
> possible
No, not with readdir() on its own.
> or I have to write custom function using array function sort?
Yes, that is what you w
Hi!
I have one question.
How can I get sorted listing of a direcorty with readdir function? Is this possible or
I have to write custom function using array function sort?
TNX
LP, AlesL
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Here is where I'm running into some problems. I need the file listing to be
> sorted as if I were performing an 'ls -lt' listing on the server itself.
I do not think opendir() or readdir() quarantees any sort. You where
lucky rather you got dirs in the time order. You should use
filemtime() or
I have 3 SunOS boxes, all running the same version of OS, apache and php. I
have a page on all three servers that will allow a user to select a
directory from a drop down box and upon selecting the directory, be able to
select a file to view from a drop down box. When the user selects the
directo
I have 3 SunOS boxes, all running the same version of OS, apache and php. I
have a page on all three servers that will allow a user to select a
directory from a drop down box and upon selecting the directory, be able to
select a file to view from a drop down box. When the user selects the
directo
I have 3 SunOS boxes, all running the same version of OS, apache and php. I
have a page on all three servers that will allow a user to select a
directory from a drop down box and upon selecting the directory, be able to
select a file to view from a drop down box. When the user selects the
directo
o of course !!
mine won't work in !UNIX ;-)
On Fri, 27 Dec 2002, Johannes Schlueter wrote:
> On Friday 27 December 2002 21:46, Maciek Ruckgaber Bielecki wrote:
> > depending on what you need, sometimes this does the trick for me :-)
> >
> >exec("ls path/",$files);
> >
> >
depending on what you need, sometimes this does the trick for me :-)
exec("ls path/",$files);
foreach($files as $value)
{
$elem .= $value."\n";
}
echo $elem;
--
There is no builtin function to do this in one step but it's not in anyway
difficult..
http://www.php.net/manual/en/function.opendir.php
-Kevin
- Original Message -
From: "Dade Register" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 27,
A question for you all. Is there a php function that
could count the number of files in a dir? Using
FreeBSD and php4.2.2 and Apache. Thanx.
-Dade
__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--
On Thursday 22 August 2002 10:12, Randy Johnson wrote:
> I need some help,
>
> I need to go through a number of directories and rename each of the files
> like this
>
> img001
> img002
> img003
>
> do dir 1 would have
>
> img001
> img002
> img003
>
> directory 2 might have
> img004
> img005
>
> an
I need some help,
I need to go through a number of directories and rename each of the files
like this
img001
img002
img003
do dir 1 would have
img001
img002
img003
directory 2 might have
img004
img005
and directory 3 would have
img006
img007
img008
Thanks
Randy
--
PHP General Mailin
Hi!
I wan't to make directory browsing like yahoo or google over
categories.
For example look on
http://www.google.com/dirhp
I have made myself 2 diferent ways. One is quicker but more
complex and oher is slower but easy to read and understand.
In my table i have this colums
id_cat, name, id_
search zend.com for breadcrumbs
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 27, 2002 2:01 PM
Subject: Re: [PHP] Directory System Splitter
> On Saturday 27 April 2002 20:34, Randum Ian wrote:
>
On Saturday 27 April 2002 20:34, Randum Ian wrote:
[snip]
> For example:
>
> http://www.danceportal.co.uk/diary/2002/may/
>
> has this in the panel:
>
> Home / Diary / 2002 / May / <-- These are links back down the system of
> directories.
>
> http://www.danceportal.co.uk/charts/randumian/mon-
Hi guys, trying to get my head around possible code for this problem.
My website has various sections which have their own directory like below:
HOME - Main part of the website
CHARTS - Various DJ charts
MUSIC - Review, News and other things
and so on..
At the top of each page I have a link pa
Use the dir class
-Original Message-
From: Jeroen Timmers [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 16, 2002 4:57 AM
To: [General]
Subject: [PHP] Directory
Hello,
can i read a directory for files and other directory's with a php
function
for exameple
d:\localhost\
ha
Hello,
can i read a directory for files and other directory's with a php function
for exameple
d:\localhost\
had the follow dirs and files
test.php
test2.php
\test\
\test2\
now i want that in my browser with a php function
Jeroen
--
PHP General Mailing List (http://www.php.net/)
To unsub
On Monday 08 April 2002 22:15, Hiroshi Ayukawa wrote:
> Does anyone know how to check a directory exiasts?
>
> Thanks in advance,
> Hiroshi Ayukawa
> http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top
Manual > Filesystem functions
--
Jason Wong -> Gremlins Associates -> www.gremlins
Le lundi 8 avril 2002, à 04:15 PM, Hiroshi Ayukawa a écrit :
> Does anyone know how to check a directory exiasts?
RTFM !!
try this :
if (file_exists($dir) && is_dir($dir)) {
echo $dir.' is a directory !';
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Does anyone know how to check a directory exiasts?
Thanks in advance,
Hiroshi Ayukawa
http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Fri, 5 Apr 2002, Jas wrote:
> So adding a hidden field would definately pass the contents of the select
> box to the other script so I am not doing anything wrong with this portion,
> but what if I wanted to append the path of the file name? Any tips?
This isn't an answer to your question, but
When ad_done.php3 is called, it will receive a variable named $files.
Change:
$file_name";
to:
";
$files will contain the value of the file selected
-Original Message-
From: Jas [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 10:36 AM
To: [EMAIL PROTECTED]
Subject
Sorry, here is what I have thus far... everything is working except I am
just not sure how to pass the result of the users selection to another
script, I have added the hidden input type to try and solve it but I think I
am doing something wrong, maybe I need to put the hidden input type on the
se
, April 05, 2002 10:22 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Directory to array to select box...
So adding a hidden field would definately pass the contents of the select
box to the other script so I am not doing anything wrong with this portion,
but what if I wanted to append the path of the
So adding a hidden field would definately pass the contents of the select
box to the other script so I am not doing anything wrong with this portion,
but what if I wanted to append the path of the file name? Any tips?
Thanks,
jas
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
I must be missing something.
Just add a HIDDEN type in your form. It will be sent with all your form
data.
-Original Message-
From: Jas [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 10:14 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Directory to array to select box...
Hey
Hey Rick, thanks a ton... you have helped me out alot on this list. I got
the code working probably about the same time you and another gentleman
posted the same fixes I made, however I now have another question about
adding a hidden field to take the results of the users selection and passing
it
$dir);
print $form;
?>
outputs the following:
.
..
activities.txt
addwbs.php3
classWBS.php
funcs.inc
link.php
snoopy.inc
wbs.sql
wbsconv.php
wbsform.php3
wbsload.sql
wbspkg.php3
wbsproject.csv
wbsproject.mpp
xx.php
-Original Message-
From: Jas [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05,
Ok here is my problem, for one I am new to php and would like a new pair of
eyes for this piece of code, and second what I would like to accomplish is
putting the contents of a directory into an array and then pulling the
contents of that array into a select box for further processing... If
someon
Tried this earlier but have had no takersis it a no go? Please read on.
Hello!
I hope someone can help me with this...it's doin' my head in!
Below I have a class I found for finding out directory sizes. What I have
done is to get the username of each user and their create a directory pat
Hello!
I hope someone can help me with this...it's doin' my head in!
Below I have a class I found for finding out directory sizes. What I have
done is to get the username of each user and their create a directory path
(based on their username - these directories do exist with subdirs).
This w
mkdir()
http://www.php.net/manual/en/function.mkdir.php
> -Original Message-
> From: Roman Duriancik [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 9:45 AM
> To: PHP-General
> Subject: [PHP] Directory
>
>
> Help me, I want create directory on
Help me, I want create directory on local disc in php script, do you know
how ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Anyone who wants to see the directory and filesystem fiunctions in action
together can go to http://www.invertedmind.com/baby/ (pardon the images,
they're of my nephew, I originally wrote the script because directory
listings are turned off on the server). If you want a copy of the script
you can
Hmm... I'm not familiar with the directory functions yet.
But perhaps you can use `ls -F` somehow -- this prints the name of each
file in the directory with a special character to denote its type. For
directories, this is a forwardslash. I.e:
localhost:~/Documents/Media Lab$ ls -F
(admin)ind
Sorry for the posting, I hadn't looked hard enough. If any of you need something
along the same lines go:
http://www.php.net/manual/en/class.dir.php
Sean
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
Hello,
I need to print out a list of directories, which is a piece of cake, just do something
out of the manual:
$file\n";
}
closedir($handle);
?>
The thing is, I need the sub-directories, and the sub-directories under them... ad
infinitum in a list format.
i.e.
*Dir1
*SubDir1of1
*SubDir2
u can use the function
function GetDirArray($sPath)
{
//Load Directory Into Array
$handle=opendir($sPath);
while ($file = readdir($handle)) if(($file!=".")&($file!=".."))
$retVal[(isset($retVal))?count($retVal):0] = $file;
//Clean up and sort
closedir($handle);
sort($retVal);
return $retVal;
}
//
Just a suggestion: use exec("ls -1 root/articles/??_head.xml",$article_files) to
find out the files -- then walk $article_files, parse the file and echo whatever
you please. :-)
Bogdan
Martin Hughes wrote:
> Heya,
>
> Can PHP count the number of a certain ftile in a directory and then print
> t
Heya,
Can PHP count the number of a certain ftile in a directory and then print
the result to the screen? I have articles on my site that are in XML/XSL
format like:
root/articles/00_head.xml
00_body.xml
01_head.xml
01_body.xml
ialchars($v)."\n";
}
}
}
?>
Enjoy
Andrey Hristov
- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 1:38 PM
Subject: RE: [PHP] Directory Contents Listing
> Here's an exa
entryName != ".." && $entryName !=
"index.php"){
print("$entryName \n");
}
}
?>
Hope it helps!
-Original Message-
From: Steve Werby [mailto:[EMAIL PROTECTED]]
Sent: 28 November 2001 05:39
To:
1 - 100 of 125 matches
Mail list logo