Web Analytics Made Easy -
StatCounter New Method to launch a new website - CodingForum

Announcement

Collapse
No announcement yet.

New Method to launch a new website

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • New Method to launch a new website

    Hello Everybody,

    As all coders have no time I will bring it up directly.

    1- We are launching a new website at a small ceremony.
    2- The website will have initial page that has a button says "Launch Me".
    3- When the official presses the Launch Me button we need it to rename the index file with the official page for the full website we created.

    We thought about coding a batch file that will have the FTP details and commands to rename the index file with the Official page, but the problem here is that we don't know how to create such a button that will execute the .bat file on the server side. All what we need is a button or any way that will rename the index file with the official one by pressing a button.

    Any tips people?

    Thanks in-advance.

  • #2
    you can use rename() function in a script.

    Comment


    • #3
      Hello ASTP001,

      Could you give us an example, for instance the FTP details username 123 pass 123.
      How it will look like in the final result ... and is it possible to relate it to a button in DreamWeaver dreictly? please and thank you.

      Your help is Mucha-appreciated.

      Comment


      • #4
        When a script executes a command, it happens from the server side, so you don't need to enter your ftp information. You could have something like:

        PHP Code:
        <form action="thispage.php" method="post">
        <input type=button name=launch>
        </form>

        <?php

        if(isset($_POST['launch'])){
        rename("./notindex.php""./index.php");
        }

        ?>

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎