directory listing failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello;

I have a project that is run on a FreeBSD server and I am running into
problems I can't figure out with code that is supposed to list directory
contents, along with user and wrx and octal file perms for each entry.

So, the problem is that a directory listing for a directory below the 'home'
directory will only successfully list the following:

.
..
index.php
any directory

all other files return errors for function code I have for getting wrx perms. The same is true for results of calls to stat() and other related function code
such as fileperms().

index.php IS a file, to why would the other 'files' fail to produce results?

Any ideas? Any similar experience and solutions?

Ownership issues? (why would index.php go through with the same ownership and perms?)
file corruption?
inadequate php ini settings?

Sample output follows:

Sample of home directory listing (default for the user interface display)
Owner	type and permissions	Octal value	Name
jekftp	d : dir | r w x r w x r w x	0777	.
jekftp	d : dir | r w x r - x r - x	0755	..
jekftp	- : file | r w x r w x r - -	0774	BTO.php
jekftp	- : file | r w - r - - r - -	0644	B_shebangInCShell.txt
jekftp	- : file | r w - r - - r - -	0644	adminUPLD.php
jekftp	- : file | r w - r - - r w -	0646	browserDev.txt
jekftp	- : file | r w - r - - r - -	0644	clear.php
server	- : file | r w - r - - r - -	0644	codeSamples.txt
jekftp	- : file | r w - r - - r - -	0644	console.php
jekftp	- : file | r w - r w - r w -	0666	consoleTestGrid.txt
server	- : file | r w - r - - r - -	0644	consoleTestGridCopy.txt
jekftp	- : file | r w - r - - r - -	0644	console_help.php
jekftp	d : dir | r w x r - x r - x	0755	css
server	- : file | r w - r w - r w -	0666	customSelector.php
jekftp	- : file | r w - r - - r - -	0644	dirIndex.php
jekftp	- : file | r w - r - - r - -	0644	dirLstDev.php
jekftp	d : dir | r w x r w x r w x	0777	dist
jekftp	- : file | r w - r - - r - -	0644	editorComments.txt
jekftp	- : file | r w - r - - r - -	0644	file_browser.php
jekftp	- : file | r w - r - - r - -	0644	file_browserEXP.php
jekftp	- : file | r w - r - - r - -	0644	file_browser_old.php
jekftp	- : file | r w - r - - r - -	0644	file_editor.php
jekftp	- : file | r w - r - - r - -	0644	file_editor_help.php
jekftp	- : file | r w - r - - r - -	0644	getServerName.php
jekftp	- : file | r w - r - - r w -	0646	goForIt.txt

====================================================

directory listing USING THE SAME CODE with errors:

Current Directory: dev_lab_current/lab_1

Owner	type and permissions	Octal value	Name
jekftp	d : dir | r w x r w x r w x	0777	.
jekftp	d : dir | r w x r - x r - x	0755	..
_CONSOLE -> getWRXPerms error: conf_lab_1.php was not found, or is not a file or directory 0 conf_lab_1.php
jekftp	d : dir | r w x r - x r - x	0755	css
jekftp	d : dir | r w x r - x r - x	0755	img
jekftp	- : file | r w - r - - r - -	0644	index.php
jekftp	d : dir | r w x r - x r w x	0757	js
_CONSOLE -> getWRXPerms error: lab_editor.php was not found, or is not a file or directory 0 lab_editor.php _CONSOLE -> getWRXPerms error: lab_interface.php was not found, or is not a file or directory 0 lab_interface.php _CONSOLE -> getWRXPerms error: lab_reader.php was not found, or is not a file or directory 0 lab_reader.php _CONSOLE -> getWRXPerms error: lab_sampler.php was not found, or is not a file or directory 0 lab_sampler.php
jekftp	d : dir | r w x r w x r w x	0777	php
_CONSOLE -> getWRXPerms error: text was not found, or is not a file or directory 0 text

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux