source directory on server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jungabunga
    New Member
    • Mar 2007
    • 15

    source directory on server

    Heya guys, i was wondering how to get javascript to put the contents of a local folder into an array, im fine from here on in. i have apache 2.2.2 and the folder is a sub-directory on the server. I am going to use the output to update links dynamically. if not, what language should i be looking at to achieve this?
    thanks..
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Welcome to The Scripts.

    Use a server-side language for this. Which one are you familiar with?

    Comment

    • jungabunga
      New Member
      • Mar 2007
      • 15

      #3
      Originally posted by acoder
      Welcome to The Scripts.

      Use a server-side language for this. Which one are you familiar with?
      a little of PHP - i thought javascript could be used in server side scripting on the odd occasion wiki
      i can get perl to list the contents of a directory, i just dont know how to call it automatically froma webpage - OR output it into a place where javascript can use it

      Comment

      • AricC
        Recognized Expert Top Contributor
        • Oct 2006
        • 1885

        #4
        Originally posted by jungabunga
        Heya guys, i was wondering how to get javascript to put the contents of a local folder into an array, im fine from here on in. i have apache 2.2.2 and the folder is a sub-directory on the server. I am going to use the output to update links dynamically. if not, what language should i be looking at to achieve this?
        thanks..
        Please do not report posts unless the post is violating the guidelines of the board.

        Comment

        • jungabunga
          New Member
          • Mar 2007
          • 15

          #5
          Originally posted by AricC
          Please do not report posts unless the post is violating the guidelines of the board.
          Sorry, if that was me I was just ahving a noob day, pure accident :(

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            Originally posted by jungabunga
            a little of PHP - i thought javascript could be used in server side scripting on the odd occasion wiki
            i can get perl to list the contents of a directory, i just dont know how to call it automatically froma webpage - OR output it into a place where javascript can use it
            Take your pick: PHP or Perl? I don't think you need Javascript for this. Use the server language to get the list of files, then generate the links.

            If you need to generate the links, say, on the click of a button, then client-side javascript/ajax would come into play.

            Comment

            • jungabunga
              New Member
              • Mar 2007
              • 15

              #7
              Originally posted by acoder
              Take your pick: PHP or Perl? I don't think you need Javascript for this. Use the server language to get the list of files, then generate the links.

              If you need to generate the links, say, on the click of a button, then client-side javascript/ajax would come into play.
              ok i fiddled with PHP, i got it to work then it stopped. i'll repost my particular issue in the PHP part of the forum. thx mate

              Comment

              Working...