|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
||||
|
||||
|
chmod
Hello all. I have a phpfile which is calling a script "texthisjob". This script reads a file, copies it and needs to write another file.
This script should not be able to be called by others on the web, except if they use that certain php-file. The php-file should be accessible for all. I've heared I can set the permissions to the file with chmod. Can anybody help me with that, I don't know what permissions to set on each file. (upload.php and texthisjob). Thanks in advance.
__________________
People who get a raise because of their good work have been underpayed for quite some time. |
|
#2
|
|||
|
|||
|
Say PHP was installed as a module of Apache, upload.php just need -rw-r--r-- (644). For texthisjob, it should be -rwxr-xr-x (755).
>> needs to write another file The directory such file resides in needs to be at least drwx---rwx (707) assuming Apache runs as nobody. Then this file can be created. If this file already exists but needs to be modified/replaced, alter your textthisjob script and chmod the file to -rw-r--rw- (646) when created. I don't code PHP, so how to code upload.php is up to you to find out yourself. Check the PHP forum, calling a Perl script from PHP script has been asked and answered at least few million times, so do a search there. Your message is a bit off topic here. |
|
#3
|
||||
|
||||
|
chmod is apache/unix-related, isn't it?
I wasn't asking for php-code ![]() But thanx anyway. Last edited by WeXXL : May 9th, 2001 at 10:24 AM. |
|
#4
|
|||
|
|||
|
>> chmod is apache/unix-related, isn't it?
Not Apache-related but UNIX-related. You can request Devshed to take those quiet+useless forums like vi and emacs off and put up a UNIX-related or even Mail+DNS+FTP forums up. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > chmod |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|