Re: [PHP] Directory permissions question

2010-04-19 Thread Peter Lind
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

Re: [PHP] Directory permissions question

2010-04-19 Thread Al Rider
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

Re: [PHP] Directory permissions question

2010-04-19 Thread Jim Lucas
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. >

Re: [PHP] Directory permissions question

2010-04-19 Thread Al
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

Re: [PHP] Directory permissions question

2010-04-19 Thread Adam Richardson
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

[PHP] Directory permissions question

2010-04-19 Thread Al
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

[PHP] Directory Listing

2009-08-25 Thread Tom Chubb
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

Re: [PHP] Directory

2008-02-08 Thread Richard Lynch
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

Re: [PHP] Directory

2008-02-07 Thread Jim Lucas
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

Re: [PHP] Directory

2008-02-07 Thread Paul Scott
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

[PHP] Directory

2008-02-07 Thread Steve Marquez
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, --

Re: [PHP] directory modification dates

2007-10-19 Thread Robert Cummings
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

[PHP] directory modification dates

2007-10-19 Thread Marek
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

Re: [PHP] Re: PHP Directory List Script Files over 2 GB

2007-04-12 Thread Robert M
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

Re: [PHP] Re: PHP Directory List Script Files over 2 GB

2007-04-11 Thread Richard Lynch
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

[PHP] Re: PHP Directory List Script Files over 2 GB

2007-04-11 Thread Robert M
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

Re: [PHP] Re: PHP Directory List Script Files over 2 GB

2007-04-11 Thread Seak, Teng-Fong
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

[PHP] Re: PHP Directory List Script Files over 2 GB

2007-04-11 Thread Robert M
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

RE: [PHP] PHP Directory List Script Files over 2 GB

2007-04-10 Thread Buesching, Logan J
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

[PHP] PHP Directory List Script Files over 2 GB

2007-04-10 Thread Robert M
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

Re: [PHP] Directory name

2006-11-01 Thread Ed Lazor
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

Re: [PHP] Directory name

2006-11-01 Thread Richard Lynch
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

[PHP] Directory name

2006-11-01 Thread Sugrue, Sean
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

Re: [PHP] Directory Structure

2006-09-08 Thread Frank Arensmeier
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

Re: [PHP] Directory Structure

2006-09-07 Thread Robert Cummings
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

Re: [PHP] Directory Structure

2006-09-07 Thread Larry Garfield
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

[PHP] Directory Structure

2006-09-07 Thread Manoj Singh
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

Re: [PHP] Isolating a php directory on a main server

2006-01-26 Thread Ray Hauge
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

[PHP] Isolating a php directory on a main server

2006-01-26 Thread The Doctor
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

[PHP] Directory permissions

2006-01-25 Thread Sugrue, Sean
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

Re: [PHP] directory listing from text file

2005-05-18 Thread Richard Lynch
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

Re: [PHP] directory listing from text file

2005-05-18 Thread dreiph
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

Re: [PHP] directory listing from text file

2005-05-18 Thread Chris Ramsay
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

[PHP] directory listing from text file

2005-05-18 Thread dreiph
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:

Re: [PHP] Directory perms

2005-04-14 Thread Jason Wong
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

[PHP] Directory perms

2005-04-14 Thread Reynier Perez Mira
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

Re: [PHP] Directory and file permissions on a virtual host

2005-03-14 Thread Richard Lynch
> 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

[PHP] Directory and file permissions on a virtual host

2005-03-14 Thread Al
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

Re: [PHP] Directory Entries

2004-11-09 Thread Jason Wong
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

[PHP] Directory Entries

2004-11-09 Thread Dave Lampron
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

[PHP] Directory Browse Concept

2004-02-01 Thread Paul Furman
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

[PHP] module.so and php-directory!!!

2003-09-06 Thread m n
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

Re: [PHP] directory listing

2003-08-19 Thread Marek Kilimajer
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

[PHP] directory listing

2003-08-19 Thread Matthias Wulkow
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:/

Re: [PHP] Directory Size

2003-08-15 Thread Chris Blake
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

Re: [PHP] Directory Size

2003-08-15 Thread Marek Kilimajer
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

[PHP] Directory Size

2003-08-15 Thread Chris Blake
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

[PHP] Directory Security and Managemrnt.

2003-06-11 Thread Jason Marks
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

Re: [PHP] directory size?

2003-04-03 Thread Ernest E Vogelsinger
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

[PHP] directory size?

2003-04-03 Thread Mantas Kriauciunas
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.

Re: [PHP] Really simple question - /php directory above /web tree .htaccess contents

2003-03-08 Thread Ernest E Vogelsinger
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

[PHP] Really simple question - /php directory above /web tree .htaccess contents

2003-03-08 Thread news.php.net
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

Re: [PHP] Directory Permissions?

2003-02-26 Thread Chris Shiflett
--- 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

[PHP] Directory Permissions?

2003-02-26 Thread Jay Paulson
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/)

Re: [PHP] Directory size

2003-02-11 Thread Jeff Pauls
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

Re: [PHP] Directory size

2003-02-03 Thread Marek Kilimajer
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

[PHP] Directory size

2003-02-02 Thread Antti
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

Re: [PHP] directory listing

2003-01-09 Thread Jason Wong
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

[PHP] directory listing

2003-01-09 Thread Aleš Lončar
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

Re: [PHP] Directory Listing with php on unix boxes

2003-01-08 Thread Krzysztof Dziekiewicz
> 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

[PHP] Directory Listing with php on unix boxes

2003-01-06 Thread Joe Jeffcoat
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

[PHP] Directory Listing with php on unix boxes

2003-01-06 Thread Joe Jeffcoat
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

[PHP] Directory Listing with php on unix boxes

2003-01-06 Thread Joe Jeffcoat
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

Re: [PHP] directory list function?

2002-12-27 Thread Maciek Ruckgaber Bielecki
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); > > > >

Re: [PHP] directory list function?

2002-12-27 Thread Maciek Ruckgaber Bielecki
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; --

Re: [PHP] directory list function?

2002-12-27 Thread Kevin Stone
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,

[PHP] directory list function?

2002-12-27 Thread Dade Register
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 --

Re: [PHP] directory help

2002-08-21 Thread Jason Wong
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

[PHP] directory help

2002-08-21 Thread Randy Johnson
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

[PHP] directory browsing

2002-05-01 Thread Uros Gruber
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_

Re: [PHP] Directory System Splitter

2002-04-27 Thread Paul Roberts
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: >

Re: [PHP] Directory System Splitter

2002-04-27 Thread Jason Wong
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-

[PHP] Directory System Splitter

2002-04-27 Thread Randum Ian
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

RE: [PHP] Directory

2002-04-18 Thread Demitrious S. Kelly
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

[PHP] Directory

2002-04-16 Thread Jeroen Timmers
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

Re: [PHP] Directory check

2002-04-08 Thread Jason Wong
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

Re: [PHP] Directory check

2002-04-08 Thread Rénald CASAGRAUDE
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

[PHP] Directory check

2002-04-08 Thread Hiroshi Ayukawa
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

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Miguel Cruz
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

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
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

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Jas
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

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
, 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

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Jas
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

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
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

Re: [PHP] Directory to array to select box...

2002-04-05 Thread Jas
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

RE: [PHP] Directory to array to select box...

2002-04-05 Thread Rick Emery
$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,

[PHP] Directory to array to select box...

2002-04-05 Thread Jas
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

[PHP] Directory Size Calculation...trying again!

2002-03-05 Thread Simon H
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

[PHP] Directory Size

2002-03-05 Thread Simon H
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

RE: [PHP] Directory

2002-03-05 Thread joakim . andersson
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

[PHP] Directory

2002-03-05 Thread Roman Duriancik
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

Re: [PHP] directory structure list

2002-01-24 Thread Mike Frazer
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

Re: [PHP] directory structure list

2002-01-24 Thread Erik Price
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

RE: [PHP] directory structure list

2002-01-24 Thread sean
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

[PHP] directory structure list

2002-01-24 Thread sean
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

Re: [PHP] Php & Directory structures

2001-12-22 Thread George Nicolae
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; } //

Re: [PHP] Php & Directory structures

2001-12-22 Thread Bogdan Stancescu
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

[PHP] Php & Directory structures

2001-12-22 Thread Martin Hughes
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

Re: [PHP] Directory Contents Listing

2001-11-28 Thread Andrey Hristov
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

RE: [PHP] Directory Contents Listing

2001-11-28 Thread Rea_David
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   2   >