Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





File Permissions In Win98


I just wanted to know if there was any way I could change my file permissions so I can use the fopen function in windows 98 using Apache and PHP 4.04???? I know how to do it for Linux but I need it for Win 98.




View Complete Forum Thread with Replies

Related Forum Messages:
File Permissions
Im in the process of creating a web based frontend for a program called ASK (Active Spam Killer - http://a-s-k.sourceforge.net) and am currently running into a problem. Currently there is a perl based web front end, but it lacks functionality, and is rather bland, although it does work, and it works without changing any file permissions.

The problem im running into is that PHP requires me to make changes to file permissions (ASK files are located OUTSIDE of the web tree) which might end up causing problems as far as security and privacy of email. Has anyone come to any reasonable answer for this type of problem as im sure its a issue for other programs people write.

View Replies !
File Permissions....
I've read the stuff concerning writing to a text file and the related file permission issues on this forum.I have a script that does just that, it takes user-entered data from a Web Form and dumps it to a text file on a server.

This works fine on my private server, but is giving me the error...."Could not open stream.Permission denied on Line..." on the company server...The Company machine uses Windows XP.

I've tried talking to the System Administrator regarding the Permissions,but he says that giving READ/WRITE/EXECUTE Permissions could create Security Issues.

I have been told that previously,a script written in ASP had been used that did exactly the same thing i.e writing to the text file, but there were no File Permissions needed to be set!

View Replies !
4.3 And File Permissions
I know that the PHP "chmod" command sets file permissions, but how do I
retrieve what the permissions are for a particular file using PHP 4.3?

View Replies !
Problem With File Permissions : PHP / FTP
My php-script makes directories and puts files in it.
But via FTP'ing, I can't delete those files anymore.

Also, I need to put a whole bunch of existing files into these,
'made-by-php' directories, and that seems impossible
by means of FTP. I get an 'access denied' error every time.

View Replies !
How Can I Have Permissions To Delete A File?
How can I have permissions to delete a file? example: I have to delete a file, but I don't to public users have permission to delete that file but, with a certain "login" they can.

View Replies !
File Permissions After Copy()
This function basically creates a new dir in a determined location and copies the files from an established dir to the new dir. It copies the files and creates the folder ok, bit it sets the file permissons to 755 for the new folder and file contents. I then get a 550 error if I try to delete or chmod them. Any suggestions? I get permission errors in the script if I use the chgrp and chmod functions also. PHP Code:

View Replies !
How Do You Create A File In PHP And Set Permissions To It?
How do you create a file in PHP and set permissions to it?

View Replies !
Change File Permissions
i'm trying to create a file management tool online using php. Everytime i copy or create files or folders though it assigns ownership of the new files or folders to the apache id. i tried using backticks, exec, shell_exec and the php shell commands. php safe mode is off.

i can create the files and folders using shell commands and have tried to change ownership using chown but that doesn't seem to do anything. any insight can help. the goal is to be able to create these files with the same admin user ownership as all the other files on the site.

View Replies !
CHMOD File Permissions
i have a few question about file permissions. which is the best way to set a permission to a mp3 tha ti can play on the website, but if anyone try to get it from the directory they wont be able to?

like if i am playing thissong.mp3 and someone went to the directory to try and get the file music/songs/thissong.mp3 they would get some kind of error. also for folders that don't have a index file. which permission would be the bes tinstead of creating a number of index for each, but not give a use permusic to see the context if the go to mydirectory/functions/ .

View Replies !
File/folder Permissions
I have an upload function that uploads images into a folder. The folder is set to 777. However when I upload an image file to the folder, the file uploaded is set to 600. Therefore it wont appear on web. I'm not sure why this is doing this for??  Im using the php function move_uploaded_file to upload the file.

View Replies !
File Write Permissions
I'm trying to get an open source PHP app working for my company.  It's giving me the following custom error:

FreeMED was unable to create a file to record the healthy status of the system.
The FreeMED directory should be owned by the user that the webserver is running as...
Usually this is 'apache'. You can also fix this by giving universal write access to the home directory of FreeMED.

But that is not advisable from a security standpoint.
I've narrowed it down to the line of PHP that's breaking it here:

$test = CreateObject('FreeMED.FreeMEDSelfTest');
As far as I can tell, I've made the directory it's using as open as possible and it's still giving me that error.  The owner is apache (user and group) and the permissions are (temporarily) set at 0777 (universal read/write).

Is there some PHP or Apache configuration that needs changed to allow PHP this kind of permission?

View Replies !
File Permissions Windows
i am using the LOAD DATA INFILE to load from a txt file. Although it works fine with the MySQL command it does NOT work with Script...does anybody know why?

View Replies !
Rsync And File Permissions
Im sort of new to using rsync to transfer my files. unfortunately it is messing up something with the permissions, and somehow i get a 403 from the server.

View Replies !
File Permissions On Upload
I am uploading picture. This is part of the code

if(!move_uploaded_file($_FILES['fullSizePic'.$propId.$i]['tmp_name'], '../images/properties/'.$imageName) ){
chmod('../images/properties/' . $imageName , 0777);
}

The file uploads and moves into the properties folder. That folder's chmod is 777, but the file's chmod is only 600 making it unreadable by the server. I try to chmod it with php (as you can see above) and it doesn't work.

View Replies !
Not Enough Permissions To Delete A File
I want to delete a file using unlink() function. I'm getting a warning that says that I have no permissions to do that.

I suppose that is because the file I'm trying to delete is under the root directory path. I searched the forum about deleting files but found nothing alike my problem...

View Replies !
Upload File Permissions Problem
I've moved an existing site (which I didn't write) from a apache/php/mysql
host under windows to a linux apache/php/mysql host.
I've sorted out most problems except one.

There is an upload function on the site, which uploads files via POST to
temp folder and then moves it into a folder on the host using php function
move_uploaded_file. Under windows this works fine but on the linux host the
uploaded file is created with 600 permissions so it cannot be accessed later
by site visitors. The folder it is uploaded into has 755 permissions. Is
there a way of setting the default file permissions so each uploaded file
can be set to say 644 or do I need to chmod each file after upload?

View Replies !
File Permissions Of PHP Session Files
I noticed that the file permissions (unix) of the PHP session files
have only read and write permissions for the Apache process (600 or rw-
--- ---).

Does anyone have any idea where this permission is set ? I can't find
any
umask or chmod settings for it in the php.ini file. Can't find
anything in
the httpd.conf either. Is it set in the PHP code that implements
session_start()?

View Replies !
Creating A File, Uploading, And Permissions
I'm using php4 and i want to check for a file, if it doesn't exist it
should be created. My problem is i have to create it with specific
permissions specifically 666 so that the script can then write to it. I
don't have ftp access. I'm also looking for any tutorials, recent ones,
using php4 for creating file upload areas, i'm trying to make one of those
as well.

View Replies !
File And Directory Permissions For PHP Application
I make the directory 0777 and then write the file then i make the file i tried a few but they keep from being read im sure the file is ok i think i can handdle file permissions but i think its directory permissions im having a prob with.

Its an image file i write it and then need to use it so make the directory 0777 and then write the file and then what to the file and what to the directory ?

i am using php ftp() but if anyone knows any differences with php chmod() then please tell me apart from that i do a 777 righth now and leave it at that.

what should i being to the directory and file after to make it secure because i dont whant people tampering with them ?

OH AND THIS PROBS ON TH MAC OSX 10.4 TIGER

my chmoding works fine on linux the way it is 0777 and then a 655

+ somtimes i play with the permissions of the directory throgh the os GUI or the shell and i got it to tell me i dont have permissions in the OS but in PHP its ok is this coz PHP got ownership of it when i messed with the addtional BIT.

View Replies !
Minimun File Writing Permissions
I believe the chmod command -w- is write only, the minimum file writing permission but what is this in terms of numeric - chmod 755? or 777 .

View Replies !
File Permissions Denied Error
i'm using the following code to create a file. PHP Code:

$fn = "file.php";
    $FileHandle = fopen($fn, 'w+') or die("can't open file");
    $stringData = "Something";
    fwrite($FileHandle, $stringData);
    fclose($FileHandle);

when i check the file properties i can see that the file's permission is set to 644 so when i use the following code to delete it i get a permission denied error. PHP Code:

$myFile = "file.php";
$fh = fopen($myFile, 'w') or die("can't open file");
fclose($fh);

$myFile = "$file.php";
unlink($myFile);

what shall i do to set the permission to 777 when creating the file?

View Replies !
Chmod Mkdir And File Permissions..
I'm trying to create directories and move files with the right permissions. When I make a dir using mkdir I'm setting the permission to 777 to my folder variable $t2 below,

but when I check the chmod it's 755? When I copy files over to this folder the file permission are set to 644 and I can't even get rid of them on the server because it won't allow me to delete them. Is there anyway to set permissions to a file as you're using the copy function? Code:

View Replies !
Change File Permissions On Uploaded Files?
I am trying to find a way to change the default file permissions for uploaded files using PHP. When I upload a file using my PHP script the default file permissions are 755. I would like the file to have 744.

View Replies !
What File Permissions To Keep Files Safe From Outside Users
My php source files should have what file permissions to keep them safe from outside users.I have chmod 711 but i want somefiles to be able to be downloaded eg txt,doc files.

View Replies !
Set Up The Permissions So That My Script Can Simply Fopen A File For Writing.
I am rather new to PHP and a relative newbie to Linux too.
I have a webserver at home (Apache 2.0.48 on SuSe 9.0, PHP4).
I have some scripts, one of them needs to be able to create logfiles
somewhere on my machine. It must also later be able to read from and write
to these files again.

Sofar I get a permission error. I tried chmodding 666 or 777 the directory
in which the files could reside, to no avail.
How do I set up the permissions so that my script can simply fopen a file
for writing. Or if that's not the issue, what am I doing wrong or
overlooking ?

The errors:
Warning: fopen(logfileslog1.txt): failed to open stream: Permission denied
in script1.php on line 142
Warning: fwrite(): supplied argument is not a valid stream resource in
script1.php on line 154
Warning: fclose(): supplied argument is not a valid stream resource in
script1.php on line 161
It's the first I am puzzled about, the 2nd and 3rd are a logical
consequence.

By the way, reading from and writing to a file I have previously created
myself with exactly the names I tried to get created by the script (echoed
the name, ok) is no problem at all.
So I don't think it has much to do with a safemode or open_basedir setting.
I also tried creating the scripts in the same dir the script itself resides.
Did not work either.

View Replies !
Linux File Permissions On Maildir, Apache User
i have the following problem. I am trying to create maildir
directories on the local filesystem then chmod, chown them to
courier:courier (for courier mail server). the courier mail server
reads and writes on these maildirs on the local filesystem and they
need to have courier:courier ownership. it does not work because the
directories are created with apache:apache ownership and apparently
only root can change ownership. My question is as follows. Is the
only solution to this problem to add the courier user to the apache
group?

View Replies !
Open A File To Store Some Date :: Permissions Dilemma
I want to open a file to store some data. However, when I use fopen('filename', w) I get permission denied. So, I've changed the permissions of the directory to get rid of the permission denied problem. Unfortunately, this seemed to require changing the directory to have permissions 777.

View Replies !
Win98 And PHP
I have windows 98 and I would like to run PHP, I have PWS to run ASP but I would like to work towards javascript. I would work with ASP and VBScript but the problem is that I only have VB2005 EX ED. I got no books for VB at my home, but I have books on C++, Java, C#, Javascript, and much more.

View Replies !
Stand Alone Win98?
how would i get php running with mysql on a windows 98 machine with out a server so that i could test my scripts after i create them.?

View Replies !
Apache 1.3.14, PHP 4.0, MYSQL And Win98
I have installed and working Apache and php 4.0. I would like to get mysql working too.
I ran the phpinfo file using PHP 4.0 and I did not get the MYSQL extensions in the resulting table. I subsequently - after changing my http.conf file - ran the phpinfo file using PHP 3.0.16 and got the MYSQL extension showing up in the table. Why isn't the mysql extensions showing up under PHP 4.0?

View Replies !
PHP4+Win98 And Sessions
I've tried PHP4build4, RC1, RC2 and 4.0.0 with Win98 but sessions doesn't work: I've got 2 pages: first_page.php3

<?
session_start();
$myvar="test";
session_register("myvar");?>

second_page.php3

<?
session_start();
echo $myvar; ?>

I've launched first_page.php3, then I've launched second_page.php3: the browser doesn't display anything (it should display the world "test").

View Replies !
PHP4 Installation Win98 + PWS
I can't get to work php4 on my windows machine,l i have tryed all the things that came in the documentation and it doesn't work.The error that I recieve trying to run a php is HTTP 500 Internal Server Error.

View Replies !
Win98 + Apache 1.3.up + PHP 4.3.up Something Wrong
I been first times setup. So Who have experience the Win98 + Apache + php
(not run PWS or IIS)

I begin download and installed the Apache. I test the run is working on
browser (http://localhost) show the apache page.

But Apache Console Running under the DOS Window say :-
=====================================
[Thu Nov 20 15:13:49 2003] [warn] (2)No such file or
directory: exec() may not be safe
Apache/1.3.29 (Win32) running...
=====================================

I expect that it.

So, I shall the php installer from download. I try changed the httpd.conf
under the Apache directory. Restart Apaches Console.

I testing the (http://localhost/test.php), show error page say "HTTP -
Error 400 Bad Request" also "HTTP - Error 404 Not found"

I have tried times.... But unknown....

Apaches Directory - c:apacheapaches*.*
PHP Directory - c:apacheapachesphpwin32*.*

httd.conf -: (was add the line)
ScriptAlias /php/ "C:/Apache/Apache/phpwin32/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php.exe"

I didn't change php.ini yet

I copy and paste the "php4ts.dll" under to C:windowsystem from PHP

What I have done that above ?

View Replies !
PHP5 With MySQL 4.1 On Apache 2 On Win98
I am in the process of learning php. I am particularly
interested in its uses with MySQL. I have Apache 2 and PHP5 both
installed and working fine. I pasted a MySQLi example for opening and
connecting to a MySQL DB into "hello.php"

<?php
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");

/* check connection */
if (mysqli_connect_errno()) {
printf("Connect failed: %s
", mysqli_connect_error());
exit();
}

printf("Host information: %s
", $mysqli->host_info);

/* close connection */
$mysqli->close();
?>


For some reason when I get:

Fatal error: Class 'mysqli' not found in D:Apache
groupApache2htdocshello.php on line 7

I installed PHP in "d:php" and added it to my path in my autoexec.bat.
in php.ini:
....
extension_dir = "d:phpext"
....
extension=php_mysqli.dll

I read all the posts at the bottom of the pages on PHP.net website where
someone says "I had a problem and I got...yada...yada and did everything
each of those posts said you had to do and it still won't work.

The only thing left is how PHP needs compiled with a "--with" statement
or something like that but I'm using the windows binary so that
shouldn't be a problem...

Is there some other problem it could be besides a problem with finding a
dll or ini?

View Replies !
Start Up / Shutdown Mysqld In Win98
I can start the mysqld fine by running the following command:
C:mysqlbinmysqld --standalone

and I can shut it down fine with the following command:
c:mysqlbinmysqladmin shutdown

But does anybody know how to set this up in win98 so that it will automatically startup mysqld on startup, and automatically shut it down on shutdown/restart?

View Replies !
Win98 Apache And Php Install Not Wokring.
I have installed the latest Apache and PHP binaries (the PHP CGI executable release - not the ISAPI). I then configured the httpd.conf sciprt using the install.txt file from the PHP install and 2 reference books as guides. This got me to the point where I BELIEVE the PHP interpretor is kicking in for .php scripts. But when I try and browse the following page : <? php_info() ?> I get the following error :

Fatal error: Call to undefined function: php_info() in e:/apache/htdocs/phptest.php on line 1 Code:

View Replies !
Cannot Load Imap Extension In Win98
I removed the ; before "extension=php_imap.dll" in php.ini, and when I
start Apache 1.3 I get the following error message:

Unknown():Unable to load dynamic library
'c:phpextensionsphp_imap.dll". Uno de los dispositivos vinculados
al sistema no funciona (Translation: one of the devices attached to
the system doesn't work).

I already checked the extension_dir directive, and copied php_imap.dll
to c:windows just in case.

I am using Windows98 SE with php 4.3.3 as module in Apache 1.3

View Replies !
Win98, Apache & Php4.3 Installation
I tried to install php as apache module.
Previously it has been cgi. WIn 98 is
not supported but cgi worked fine, anyway.

I tried to everything according to
instructions in php.net, but
still it didn't work.

- I put php4ts.dll to windows/system32 directory.
- I configured http.conf:
- I used the path where I had put
php download (PHP 4.3.3 zip package [6,180Kb]).
- I commented these three lines that were for the CGI-install:
# ScriptAlias /php/ "c:/php/"
# AddType application/x-httpd-php .php
# Action application/x-httpd-php "/php/php.exe"

But Apache didn't start. It died because of this line:
LoadModule php4_module "c:/HERE_WAS_MYPATH/sapi/php4apache2.dll"

http://fi2.php.net/manual/en/install.apache2.php
If you would like to use PHP as a module in Apache 2.0, be sure to move
php4ts.dll for PHP 4, or php5ts.dll for PHP 5, to winnt/system32 (for
Windows NT/2000) or windows/system32 (for Windows XP), overwriting any older
file. You need to insert these two lines to your Apache httpd.conf
configuration file to set up the PHP-Module for Apache 2.0: Example 3-8. PHP
and Apache 2.0 as Module

; For PHP 4 do something like this:
LoadModule php4_module "c:/php/sapi/php4apache2.dll"
AddType application/x-httpd-php .php

; For PHP 5 do something like this:
LoadModule php5_module "c:/php/sapi/php5apache2.dll"
AddType application/x-httpd-php .php

Note: Remember to substitute the c:/php/ for your actual path to PHP in the
above examples. Take care to use either php4apache2.dll or php5apache2.dll
in your LoadModule directive and notphp4apache.dll or php5apache.dll as the
latter ones are designed to run with Apache 1.3.x.

Warning
Don't mix up your installation with dll files from different PHP versions .
You have the only choice to use the dll's and extensions that ship with your
downloaded PHP version.

View Replies !
Installation Of Php/apache/mysql On Win98
I'm using an old computer - Win 98. I'd like to install php/apache/mySql on it but there are many versions and some do not recommend installing on Win98. If somebody could point me in the right directions about which versions of apache, mySql and PHp - or if there is a package suitable for Win98 that would be great.

View Replies !
I Can't Get Info.php Working On PWS Win98 The Page Cannot Be Displayed
Can someone help me?
I have tried php-4.3.4-installer
I have tried php-4.3.4-Win32
If someone has PWS running PHP4 on windows 98
I would appreciate any help. thank-you

View Replies !
.php Files - Permissions Are Set Public Readable - So Can Public Get To See Actual Raw File?
As a newbie to PHP is it in anyway possible for a casual web surfer to
actually get to see the PHP behind my .php file.

E.g.

if index.php contained PHP code to check if the page had been called with a
variable such as "password", is there anyway a public member can get to see
the raw php file and therefore see what the password is?

index.php might be:

if ($_REQUEST[password]="secret") {[color=blue]
>Then show one page[/color]
else[color=blue]
>show another page[/color]
}

So if a user visits with
index.php?password=secret

they get to see the secret page.
But as the index.php has to have file permission set so that anyone can read
it, I'm worried that the public can just somehow view the file and learn the
password.

View Replies !
Permissions - 644
I had a nice php application running on my server here at home, and I
uploaded it to a shared public type server and it started to break all
over the place. It turns out that some scripts required higher
permissions that others, but I can't figure out what the difference is.
They all read from the database. Some write to the database, but not
all the ones that require higher permissions do. I don't understand
what it is about some scripts that require execute permissions while
other do not. And I don't really understand who at the server is the
owner and who is the group and who is the world. And last why did all
these scripts work with 644 on my server here even for people accessing
it from outside the LAN and what's different about the server farm?

View Replies !
XML With PHP Permissions
I am playing around with the idea of writing a xml based cms, and would like
it to be able to be used on hostings where you do not have the ability to
password protect directories.

Would a simple permissions check at the top of the file be enough to enure
it is not read?

<?

if( ! authentication check){exit();}

?>

If I then call all my xml files say abc.xml.php they would not be able to be
viewed externally. Say I then read in the files, and replaced the
authentication with empty ''

Is that likely to work? If so should I put the <? xml version="1.0"> before
or after?

View Replies !
PHP And IIS Permissions
It's been a long time since I've asked any techie questions on Usenet but I
am under pressure to finish a project and the following issue has me
stumped. I appreciate that it's a bit long-winded but I'd be much obliged if
anyone could shed any light...

I am currently developing a PHP-based site for a client on IIS. It might be
worth pointing out here that, from a Linux background, I am no expert on IIS
or NTFS permissions.

The site includes an /admin/ folder that I wish to secure with a password.
The contents of this folder includes non-web files that I wish to protect,
so application-level password protection implemented in PHP is not suitable.
To secure the folder at the IIS/NTFS level, I enabled a "WWW Password" in a
web control panel (HCPanel) for the admin folder. Am I right in thinking
that this would probably create an IUSR account on the server, and modify
the admin folder's ACL to restrict access to this account only?

Anyway, this works great for static content and some PHP files, but I have
come across the following issue...

When a PHP file in the protected area (e.g. /admin/index.php) tries to
include() or require() a PHP file outside that protected area (e.g.
/include/config.php), an error occurs:

Warning: main(../include/config.php) [function.main]: failed to create
stream: No such file or directory in
c:websitesclientusernameclientdomain.comadmin index.php on line 3
Fatal error: main() [function.main]: Failed opening required
'../include/config.php' (include_path='.;c:php4pear') in
c:websitesclientusernameclientdomain.comadmin index.php on line 3

This occurs only when the admin area is protected; removing the protection
allows the script to run normally. Changing '../include/config.php' to an
absolute path changes the first error to a "Permission Denied" warning.

To me, it's logical that /include/config.php might not be able to include
/admin/index.php as it does not have permissions, but why does the
'priviledged' user /admin/index.php not have access to /include/config.php?

I recognise that there are ways to work around this e.g. creating a copy of
the included files under the admin folder, or resorting to application-level
password protection, but I'd hope that there is a more elegant resolution.

View Replies !
Permissions
I have created a system (replication of old project), that I am using as the base of something that needs to be done for a client.  There are projects, and there are clients.  Some clients have permissions to whatever projects they have permissions to, and can't use the one's they don't have permission to.  I created a table for permissions, which takes the project id and name, the clients id and name.  It inserts them into a "permissions table".  I had an idea, and when I sought to implement it, it did not work.  I have 2 areas to change permissions.

If you are a client, you have an area called project permissions.  The idea is to pull the name's, of ALL the projects, and show there names on the screen with check boxes beside them.  If they are allowed to use that project, it's checked, if not it's unchecked.  They can alter the check boxes as needed, then they submit, and it does all the necessary "alterations" to the permissions table.

If you are in the project view, you have an area called "Client Permissions".  The idea is the pull the name's, of ALL the clients, and show there names on the screen with check boxes beside them.  If they are allowed to view that project they are checked, if not they are unchecked.  They can alter the check boxes as needed, then they submit and it does all the necessary "alterations" to the permissions table.

When I first created the idea behind the check boxes, I thought about it and presented the idea, and rough sketches to the client.  He was happy about the idea, and wanted me to implement it.  I went ahead and sat down to do it, and my mind when blank, I really have no idea "how" to implement the idea.  I went ahead and started with the projects.  I have a link that says "Client Permissions".  They click on that and are taken to clientpermissions.php which is the page that holds the script for showing the check box list of names of clients.  However, I ran into a problem.  If I go ahead and pull all the data from the "clients" table, and show there names on the screen, each one with a check box beside it, that check box name will be the id number of the client to be able to identify which client it is.  Then the value is either allowed or disallowed.  The problem now comes that I can't figure out how to check the permissions table with EACH client name, to see if they have a permission record for that project. 

I will run into the same problem when I try to update all of the client lists.  I could look through it, the one's that are enabled automatically get a database record for permissions, with the information.  However the issue is when the system get's the results.  I have a list of those who they want enabled, and the one's they want disabled.  I have to somehow figure out how to set it up. I am thinking for that I could delete all project permissions related to that one project, then just re-enter the ones that are enabled, ignoring the ones that are disabled.  That will give the permissions for that project reset each time. That part I can come to a solution for.

In the end I have a current problem.  As I mentioned above, I can get the names of the clients out on the screen with check boxes.  I can also make the name the id number, and the value either allowed, or disallowed.  That is fine, and I can definitely work that out.  What can I do to check the client to see if they are enabled or disabled. I am afraid of resources for one reason. For instance. I could have

1. hit the clients table and get all the data
2. Display all there names with check boxes.
3. For each check box hit the permissions table to see if there is a record, if there is mark the x, if there isn't don't. 

Sounds pretty simple to me, but then I am worried about it making that many database calls.  If there are (for example), 50 clients.  When they load that page it's going to make a total of 51 calls on that one page (1 call to the clients table, 50 calls to the permissions table). This same issue is going to be encountered when I begin to deal with the clients, and try to allow them project permissions from that console.  I will be able to solve that problem however I solve this one, but I need some advice on solving this one.  Any advice is greatly appreciated?

View Replies !
PHP Permissions
I was wondering what php permissions is all about? Been trying to get my security more tight but don't know how or where to begin i was told about permissions but I don't really understand them... =/

View Replies !
Permissions?
I have the following problem: I want to grant different access rights
to different users on a page, identified by username/password. I want
to load the set of users/passwords from a database, from a file, or
whereever. This is more or less OK: outside users connecting via the
web can sent their username/password ($_POST variable), the script
checks it agains the users/passwords in the database, and grants
different access rights according to the username. Code:

View Replies !
No Permissions
I can't seem to get the permissions for mysql to work in phpMySQL. They used to but a change in the system happened and they stopped working. Where do I lok to reset the permissions?

View Replies !
755 Permissions
I need to use unlink,fopen functions. The problem is that these functions needs to be executed in subdirectories, which have 755 permissions (writable just for a user). I could change the perms manually, but I don't wanna do that - thare are too many of them.

I figured that I could execute that script as a user. Since php is running as "nobody" I also changed the script's owner to nobody- but didn't really changed anything.

View Replies !
Permissions With Fopen
alright I have a problem with fopen.
I have a script in a .htaccess protected directory. Now I am trying to make this script rewrite a file in the server root directory that is a public file. Now for some reason I keep getting permission denied when the script runs.
the password of the directory where the the script resides is the same as owner/pass.
Is there something I need to add to fopen such as user/pass info?
any help appreciated

View Replies !
Write Permissions
if i ftp to a site and teh structure is this:

top folder - no write permission
subfolder of top - allow write
sub sub folder of top allow write

shouldn't i be allowed to write to database if my database is in the sub sub folder?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved