Jump to content

goofy78270

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

goofy78270's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Forgive me if this is posting in the wrong place but this is the best forum, I thought, for the topic. As I am new to the web word concept, I have looked around at numerous how to and getting started guides. While they were all helpful in their own little ways, I still have one question. When setting up a website, why are they not more like file systems? I see everyone just combine all images in a folder, all html in a folder, or maybe even all the files are just in one folder. I think this becomes hard to navigate with larger sites and I would hope that the large sites do not follow such a method. You have a root folder under which all your html content lies. Adjacent to the root, you have your various script folders, image folders, databases, and documents. I put these adjacent, because I read somewhere that html files cannot go up in levels to access other folders via code, but server side scripting could. I think this would protect files a lot more than most people currently do. Second, and more of the reason for this post, is why do developers not setup the structure in more of a directory like structure. 1. Use folders to create menus such as: 2. Name a document within the folder, the same as the folder and have that document display when the menu option is selected. 3. If there are additional documents within the folder, they are simply displayed as a menu option, based on their name. NOTE: Users can use such naming schemas as name_hidden or _name or any other schema to differentiate files or folders that should not display in a menu but could be link to, such as an admin page, 404 page, or such. Maybe I am way off or thinking about web design all wrong, but I think such a method would be much easier to develop for beginners as simply creating a folder and dropping in a web file, would be the extent of the work. The only required script would be the menu creation, which I am sure would not be that difficult to create as I have seen multiple directory scripts in php and ajax. This would also give a basic lesson in the server side script, recursive functions, variables, output statments, loops, and even objects. Again, as I am new to the web world, I am looking for opinions on such a method, specifically, downfalls and / or advantages to such a setup, sites that follow such a methodology, if any, and any other comments from the group.
  2. Thank you, I am more or less looking to convert content, not so much conversion with the menu. I will look into creating multiple pages or maybe just even offering a link to google translate.
  3. Can you point me in the direction to start? I am unsure what a CMS is.
  4. I am looking to add Spanish to a website and would like the users to be able to click a button to switch between english and Spanish. Is this something that php would be good for or should I look into another language? Would there be a benefit to doing this on the client side versus the server, hence the use of javascript versus php? I would appreciate any help in this area; samples, websites, and such. I am looking to learn, and not for someone to do all the work for me. Thank you in advance for your help.
  5. Given a directory - folder1/subfolder1, I would like to loop through all subdirectories under the given directory and return the file path relative to the given directory. Example: Given Directory FolderA FolderB SubFolderA SubFolderB SubSubFolderA File1 FolderC the file path for File1 should be FolderB/SubFolderB/SubSubFolderA/ Any ideas?
  6. So I added a file .htaccess to the root of the site with the aforementioned information and created a test.html with the information listed and no luck. Come to find out, I am using a Windows server and not an Linux so an .htaccess file will not work.
  7. when I browse through the ftp or file manager option, I have no such file. I tried looking through the various setting pages, and nothing referenced .htaccess.
  8. Thanks for the assistance, but apparently godaddy does not offer access to the .htacess file for the site. and they do not parse html files as php.
  9. Do you happen to know if godaddy is setup this way? Is there a simple test I can do to find out?
  10. You want the js for the slide show or the html for the page? Can I pm it to you?
  11. If I change all my extentions to .php but don't put php code in the pages, will that cause an issue? Could I load the php page within an iframe?
  12. I have a website that I did for my uncle and now, the requirements are going beyond my html knowledge and into the realm of server scripting. My issue is that I need to loop through all the images in a given folder and subfolders and preload them into the html so that the user can view them within a slide show. There are currently 6 subfolders with over 20 pics in each and there are more pics to come and different folders to add. I have a media page with the first picture within each category (subfolder) displayed as an eye catcher to the category. once the user clicks on the image, the slide show will start in a popup. The problem is that with js, I have to list out every image since it cannot look through a directory listing. I would like to simply call a server side script that will create an array of the images and preload them so that when the slide show is ran, the appropriate images will show. I am found numerous scripts for preloading images, written in php, but I am unsure how to implement them and keep a html extension for my pages. As the site is written entirely in html and javascript, I would like to keep the html extentions if possible. As this is my first site, I am sure that server side scripting will become a bigger role, but baby steps are what I need right now. In addition, if anyone has a good site for learning the server scripting world, I would greatly appreciate the reference.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.