/    Sign up×
Community /Pin to ProfileBookmark

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.

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@NogDogSep 04.2011 — Simple, cost-effective way: have a system admin type watching the ceremony via a web cam or whatever, and when the button is pressed, he hits the enter button on his terminal to execute the batch file or simply a command line instruction.

No, seriously.

If you really want it to be fully automated, the button would just need to link to a PHP script that does a rename(). You might want to add some sort of user authorization to that PHP script so only someone who is properly logged in can access it. The script could then use header() to do a Location redirect to the new home page, just so you see the result immediately.
×

Success!

Help @2bec spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.13,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,
)...