naming conventions for linux server
Author Message
Posted : Thu, 08 January 2009 20:30:04
Subject : naming conventions for linux server
My site was moved in godaddy.com from the windows server to the linus server so that I could us php for form email - send without a "mailto" and pull up a new page once the form is submitted. I am using dreamweaver with SpryAssets, framework/mootools.js and some additional client-side javascript Now, my site, which worked perfectly on the windows server is "broken" because, according to the tech staff at godaddy, of coding issues... Can some out there please identify for me what I should look for? For example, -- do file names have to all lower case? -- Are there restrictions on what can be in a filename such as symbols, numbers, etc. -- is there some restrictions on how to call a file? Any help would be appreciated. Thank you, in advance, for your time.
blinky
Posted : Thu, 08 January 2009 20:56:32
Subject : Re: naming conventions for linux server
I from a C/C++/Java development background but here goes: 1. Linux filenames can have spaces but I prefer not use them. I generally would turn "My Documents" to myDocuments or My_Documents. 2. Linux/Unix filenames ARE case sensitive (myDocuments is not same as MyDocuments). Unlike windows where myDocuments==MyDocuments. 3. You can have virtually any character in the filename, but keep it simple (like program variable names - eg no $ , etc) At a guess what probably effecting your code is (2) above.
carolgerrie
Posted : Thu, 08 January 2009 21:49:04
Subject : naming conventions for linux server
Thank you. Another question. A vanilla file, just using

to format form fields will find the referrer file, however, the same form in a table formated with

,,
,  , font info, etc. will not. Does Linus have a problem/limitations/preferences with table and formatting codes.
proopnarine
Posted : Fri, 09 January 2009 04:14:28
Subject : naming conventions for linux server
It's Linux, not Linus. Linus is the guy who started the project. As for your question, it shouldn't be a problem. PHP scripts are technically independent of the platform on which they're running. If there are any limitations, then they've been implemented post-installation by the server folks; or Windows was violating some standard (highly likely), and you do indeed have non-standard code in there somewhere. Oh, and about spaces in filenames. Every darned platform implements them differently, so if you have files which are expected to be used on different platforms, don't use the spaces.