SnippetMaster Support Forums
Return to main website
 
January 20, 2018, 08:59:47 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 20, 2018, 08:59:47 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: HELP! I can't get save to work..... on Windows web server « previous next »
Pages: [1] Print
Author Topic: HELP! I can't get save to work..... on Windows web server  (Read 5716 times)
wayno

Posts: 4


[-] HELP! I can't get save to work..... on Windows web server
« on: September 05, 2002, 05:45:46 PM »

I can log in, go to the right directory/file to edit, edit the file, even preview the file, but when I go to save the file I get the following error:

SnippetMaster v1.0 ERROR
There was an error opening d:\\\\\\\\Webfolder\\\\\\\\s\\\\\\\\a\\\\\\\\salsteel.com/snippetmaster/test1.html
Please check permissions for that directory and file, so that they have necessary read and write permissions

My files and directory are CHModed to 777

Why all the backslashes, and why forward slashes at the end? Below is my config file, any help would be greatly appreciated! And if it works out for me I would be more than willing to contribute to the cause!

Thanks in advance,
Wayne Menard
__________________________________________________________
<?php

// This is the FULL path to the directory where the SnippetMaster program files
// are located.
// NOTE: If you put SnippetMaster in your "web root" directory, the $ROOT and
//       $PATH settings will then be the same. DO NOT add a trailing slash.
   $PATH = "d:\Webfolder\s\a\salsteel.com\snippetmaster";

// This is the FULL path to the directory where your website files are
// located on your server (Your web root). DO NOT add a trailing slash.
   $ROOT = "d:\Webfolder\s\a\salsteel.com";

// Set to the full url to access the value you set for $ROOT
   $PREVIEW = "http://www.salsteel.com";

// Set to the full url to access the value you set for $PATH.
   $URL = "http://www.salsteel.com/snippetmaster";

// Specify a list of folders to ignore when browsing for SnippetMaster files.
   $IGNORE = array("stats","images","includes","cgi-bin","Templates","click","polls","forums","newsletter","location1","location2");

// What kind of file types should be visible to the users when browsing for
// images using the WYSIWYG editor?  (The extensions you specify MUST be
// for an image filetype or you will get javascript errors.)
   $VALID_IMAGE_FILE_TYPES =  array("gif","jpg","jpeg","png");

// What kind of file types should be visible to the users when browsing for
// links using the WYSIWYG editor?
   $VALID_LINK_FILE_TYPES =  array("html","htm","doc","pdf","xls","ppt","txt","jpg","gif","png");

// Set to 1 to use authentication, otherwise set to 0.
// NOTE: If  you don't need password protection, set AUTH to 0.
   $AUTH = 1;
   $USER = "xxxxxx"; Wink
   $PASS = "xxxxxx";

// Set the email address to be used for error reporting.
// NOTE: (Must be set, even if $REPORT is set to 0)
   $EMAIL = "your_email@domain.com";

// To turn off SnippetMaster errors from appearing in your email inbox,
// set to 0.
   $REPORT = 1;

// What is the maximum size of an editable file in bytes?
   $MAXSIZE = 1000000;

// Set to 1 to enabling printing of WYSIWYG debug messages, otherwise
// set to 0
   $DEBUG = 0;

// You can specify an unlimited number of upload locations for your users. To
// add more locations, just follow the variable pattern.  (Be sure to increment
// the array number for each new location.)
// PATH - The _full_ path to the destination directory. (DO NOT add a trailing
//      slash.) This directory MUST already exist and have permissions of 777.
// NAME  - The text users will see in the Upload window for this location.
// OVERWRITE - For this location, allow files that already exist to be
//             overwritten? For yes, set to 1; for no, set to 0.
// If you don't want to use at least three locations, just delete the lines you
// don't need.  (They are for example only, anyway..)
   $UPLOAD_INFO[1][PATH] = "d:\Webfolder\s\a\salsteel.com\location1";
   $UPLOAD_INFO[1][NAME] = "Upload Location #1";
   $UPLOAD_INFO[1][OVERWRITE] = 1;

// Do you want to limit the acceptable extensions of uploaded file types?
// To enable set to 1; to disable change to 0.
   $LIMIT_UPLOAD_FILE_TYPES = 1;

// If enabled, specify a list of acceptable file types for the upload function.
   $VALID_UPLOAD_FILE_TYPES =  array("gif","jpg","jpeg","png");

// Do you want to set a size limit for uploaded files?  
// To enable set to 1; to disable change to 0.
   $UPLOAD_FILE_SIZE_LIMIT = 1;

// If enabled, specify the size limit (in bytes) for uploaded files.
   $UPLOAD_FILE_MAX_SIZE = 200000;

?>
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] HELP! I can't get save to work..... on Windows web server
« Reply #1 on: September 05, 2002, 09:31:09 PM »

I think the problem is because you're using a Windows web server and the program was written for a unix server.  I don't have access to a windows server to do any testing/development, so I'm not sure if I can fix this.

Some people have used the program on Windows and reported everything works fine.. but the symptom you are describing is very likely caused because the fopen() function of php sometimes gets messed up if you pass it a windows file location without properly escaping the backslashes.

Is anyone willing to try and port the program so it works reliably on Windows web servers?
Report to moderator   Logged
Kostas

Posts: 25


WWW
[-] Re: HELP! I can't get save to work..... on Windows web serve
« Reply #2 on: September 05, 2002, 11:55:37 PM »

Quote from: wayno
I can log in, go to the right directory/file to edit, edit the file, even preview the file, but when I go to save the file I get the following error:

SnippetMaster v1.0 ERROR
There was an error opening d:\\\\\\\\Webfolder\\\\\\\\s\\\\\\\\a\\\\\\\\salsteel.com/snippetmaster/test1.html
Please check permissions for that directory and file, so that they have necessary read and write permissions

My files and directory are CHModed to 777


Are you using a Windows web server with a Unix/Linux OS  Question  Exclamation

I am using a Windows web server on a Windows OS (winNT4 SP6a, WebSitePro 3.1.13, PHP 4.2.2 ISAPI, MSIE 6) and it works with this type of settings in config file:

$PATH = "d:/Webfolder/s/a/salsteel.com/snippetmaster";
$ROOT = "d:/Webfolder/s/a/salsteel.com";
$UPLOAD_INFO[1][PATH] = "d:/Webfolder/s/a/salsteel.com/location1";

Did you try that?

HTH,
Kostas
Report to moderator   Logged
wayno

Posts: 4


[-] Still nothing.......
« Reply #3 on: September 06, 2002, 04:43:29 AM »

Well, it helpped but not exactly... all it did was clean up my error:

SnippetMaster v1.0 ERROR
There was an error opening d:/Webfolder/s/a/salsteel.com/snippetmaster/specials.htm
Please check permissions for that directory and file, so that they have necessary read and write permissions..


This is a Windows server running IIS, when I go thru my FTP prog it says that all files are R-W-E. If I go to CHMOD them it doesn't allow me to, is there another way to change/check the file/folder attributes on a windows machine? I'm using FlashFXP for my FTP client.

FlashFXP error on CHMOD try:
SITE CHMOD 666 specials.htm
500 'SITE CHMOD 666 specials.htm': command not understood

Thanks for the suggestion,
Wayno   Rolling Eyes
Report to moderator   Logged
skilgore

Posts: 18


[-] HELP! I can't get save to work..... on Windows web server
« Reply #4 on: September 06, 2002, 07:26:22 AM »

the problem with the CHMOD is that windows doesnt support CHMOD'ing.

I'm not that familiar with windows IIS permissions, anyone know how to accomplish what we want?
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 3169

SnippetMaster Author


WWW
[-] HELP! I can't get save to work..... on Windows web server
« Reply #5 on: September 06, 2002, 08:25:26 AM »

Thanks for the help guys!  I suspect you'll have to manually give read/write permission to the folders via File Explorer, or you might even have to do it through some kind of IIS interface.

I've never played around with IIS, so I'm not sure.  But the error message from your FTP client is definately showing that the folders are NOT being chmodded correctly.

Be sure to post here if you figure this out.   Very Happy
Report to moderator   Logged
wayno

Posts: 4


[-] IIS CHMod Equivellent
« Reply #6 on: September 09, 2002, 08:55:32 AM »

Anyone know how I can do this on an IIS machine???

Wayno
Report to moderator   Logged
Kostas

Posts: 25


WWW
[-] Re: IIS CHMod Equivellent
« Reply #7 on: September 09, 2002, 09:58:11 AM »

Quote from: wayno
Anyone know how I can do this on an IIS machine???


I don't use IIS, so this is just a guess:

IIS uses OS's users, so maybe look under which user IIS runs and change their rights through User Manager.

HTH,
Kostas
Report to moderator   Logged
wayno

Posts: 4


[-] HELP! I can't get save to work..... on Windows web server
« Reply #8 on: September 10, 2002, 05:16:47 AM »

I would if I could but this is a remote (hosted) site that doesn't have access to the system functions. Is there any prog osut there that can do this in the IIS environment like most FTP progs can do in the *nix environment?

Wayno
Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  General Discussion & Support  |  Topic: HELP! I can't get save to work..... on Windows web server « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!