|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (11 bit)
|
Ok I have searched the web and have found nothing. Can someone tell me how I would do this?
You now need to chmod the following files to these respective values ... /config.php - 644 /backend/news.xml - 666 /backend/news.txt - 666 What is chmod (All I have found is that it it Changes file mode)
__________________
Computer: 486 Ram: 8 MB CD Rom: None OS: Windows 3.1 |
|
|
|
|
|
#2 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
Hi Doobie,
What FTP client are you using? You need to change the file permissions to those settings (read, write, execute). |
|
|
|
|
|
#3 |
|
Member (12 bit)
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
|
You can do this is 2 ways: 1) By an FTP client, 2) by a telnet client (command line)
If you telnet in or such, you can do: chmod 644 config.php etc. The easier way is to use the FTP client to do this. All this says is that you must allow all users (all accounts on the web host) to have some level of permissions. As the PHP script will be running as some other user (often runs as user 'www'), you need mode 644 (everyone can read, you can write) or 666 (everyone can read and write). Last edited by Paul Victorey; 12-02-2002 at 05:30 PM. |
|
|
|
|
|
#4 |
|
Member (11 bit)
|
Ok I installed apache, php, and MySQL on my computer so I can learn how to use php. So since its on my local machine would I still have to use a FTP client or telnet in order to do this?
|
|
|
|
|
|
#5 |
|
Member (12 bit)
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
|
No, but whichever user account (are you using NT/2K/XP?) the PHP script executes under will have to have read access to the .PHP file and read/write access to the other (which is what chmod 644 and 666 mean).
|
|
|
|
|
|
#6 |
|
Member (11 bit)
|
So how would I go about doing it without FTP or Telnet?
|
|
|
|
|
|
#7 |
|
Member (12 bit)
Join Date: Mar 1999
Location: MN or WI
Posts: 3,017
|
If you're running on the FAT32 system, any user on your computer always has full access. Under NTFS you need to make sure that the files and directories have the required permissions for whichever user the PHP script executes as. You can open a folder or file's properties and go to security to get info about who can read/write a file.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|