Results 1 to 2 of 2

Thread: Open a file on the server in BINARY??? Help!

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2004
    Posts
    6

    Question Open a file on the server in BINARY??? Help!

    I am trying to build a simple javascript based webpage editor. So I am trying to find some Javascript scripts that will:

    (A) List the files at a particular location on the web server (with filtering by extension). For example: I want to display a list of ASP, HTM, HTML, files only, as a list of links.

    then

    (B) When the user clicks the link for a specific file, I want to be able to load the webpage source code and dump it into a text box for editing.

    then

    (c) be able to let the user save the modified source back to the file.

    Remember, these are files on the webserver, NOT files belonging to the user. Any ideas Javascript experts? Don't post comments please, just ideas or sample scripts. Thanks!

    Paris Hilton

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Open a file on the server in BINARY??? Help!

    As for listing the contents of the directory on the server and saving the on the server, Javascript cannot do this, it is strictly client side. You need a CGI program or server side script - I suggest PHP (Linux) or ASP.NET (Windows).
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width