Jump to content

ois

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by ois

  1. Mike Chmod did "take" and the script finally works with 777 permissions. Thanks for clarifying this and the quick reply. Chris
  2. Thanks for the clarification on the chmod (and the welcome messages). My current file placement is only for testing until I can sort this problem out, after that I'll really lock it down using subdirs and permissions. I suspected 755 might not be high enough but how can I chmod to 777? Both the Cpanel file manager and SmartFTP will let you _try_ to set 777 but always revert back to 755. It is fairly normal to restrict this to 755 with most shared hosting accounts so I figured this should work. Any other thoughts? Chris
  3. I'm having trouble creating and writing a file using a very simple PHP script that I have written. I need this file to store a counter value. The file may not exist when the script runs. The code runs correctly on my local PHP installation using EasyPHP but it will not create the files on the TCH server. The main problem seems to be that I cannot actually create a file using the php function fopen("myfile.txt","w"). The most basic test was to try and create the file in the same directory as the script is running and this fopen() failed. The directory/folder does not have a .htaccess file in it and the directory is chmod to 755 to allow read/writes. I am running in a subdirectory but I don't think the root has a .htaccess file. Any suggestions would be really welcome! - Chris
×
×
  • Create New...