[thelist] Apache PHP CSV
Andrew Maynes
andrew at humanbehaviour.co.uk
Thu Aug 22 05:29:01 CDT 2002
jusdt found this from yesterday but it isn't kicking any errors out now!
[Wed Aug 21 21:27:06 2002] [error] PHP Warning: file("databases/") - Permission
denied in c:\program files\apache group\apache\htdocs\shop\admin\index.php on
line 238
line 238
is this
unset ($filearray, $no, $line, $s);
$filearray = file ("databases/$d");
while (list ($no, $line) = each ($filearray)) {
$s = split (";", $line);
if ($s[0] == "GROUP") {
if ($s[1] != "-" && ereg ($s[1], $all_groups_in_this_variable))
$temp[GROUP_VALID] = 1;
continue;
}
if ($s[0] == "NAME") {
$temp[$s[0]] = $s[2];
$temp[MD5NAME] = substr (md5 ($s[2]), 0, 10);
if ($s[1] == 1) $temp[NAME_VALID] = 1;
continue;
}
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Rich Gray
Sent: Thursday, August 22, 2002 11:16
To: thelist at lists.evolt.org
Subject: RE: [thelist] Apache PHP CSV
Well - I would definitely look elsewhere for the cause of your problem ...
Are you sure nothing is being logged in the PHP error log when you run the
problem script?
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Andrew Maynes
Sent: 22 August 2002 11:07
To: thelist at lists.evolt.org
Subject: RE: [thelist] Apache PHP CSV
I thought this was weird I am on win98!
Andrew
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Rich Gray
Sent: Thursday, August 22, 2002 10:56
To: thelist at lists.evolt.org
Subject: RE: [thelist] Apache PHP CSV
Right click on the file/folder and select properties and take it from
there - I'm surprised that on Win you are getting permissions problems with
reading files - check the folder permissions first. This is NT4/Win2K/XP
right? If you're on Win9x then FAT/FAT32 has no security worth speaking of
anyway...
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Andrew Maynes
Sent: 22 August 2002 10:35
To: thelist at lists.evolt.org
Subject: RE: [thelist] Apache PHP CSV
Hi Rich
I think this is a new problem I have now!
the problem is I need to change the file permissions for the csv files that
need
to be accessed by some code from another folder, on unix no problem I just
chmod
but I am on windoze
Andrew
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Rich Gray
Sent: Thursday, August 22, 2002 10:06
To: thelist at lists.evolt.org
Subject: RE: [thelist] Apache PHP CSV
Hi Andrew
Well you have 2 options 1) move your server_first.php to another directory
that is not 'deny all' or 2) remove the directive from httpd.conf and
restart Apache.
Rich
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Andrew Maynes
Sent: 21 August 2002 17:45
To: thelist at lists.evolt.org
Subject: RE: [thelist] Apache PHP CSV
only the server_first.php is in there, but your right it doesn't want to let
anythng link out of the htdocs directory linking within is fine... what do I
have to change the deny stuff?
andrew
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Rich Gray
Sent: Wednesday, August 21, 2002 05:24
To: thelist at lists.evolt.org
Subject: RE: [thelist] Apache PHP CSV
You deny all from the /apache/htdocs/shared directory - does your script try
to access anything from there?
Does the access denied /apache/htdocs message appear every time you run your
script?
Is there an .htaccess file in /apache/htdocs?
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Andrew Maynes
Sent: 21 August 2002 16:35
To: thelist at lists.evolt.org
Subject: RE: [thelist] Apache PHP CSV
what about this little lot?
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "c:/program files/apache group/apache/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
# we deny access in the shared folder because we don't need any files
# to be loaded through apache from here, everything in shared is included in
other scripts.
<Directory "c:/program files/apache group/apache/htdocs/shared">
Order deny,allow
Deny from all
</Directory>
DirectoryIndex index.php index.html
AccessFileName .htaccess
# disallow transmission of .ht files
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
---
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/02
More information about the thelist
mailing list