Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 535093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:40:50+00:00 2026-05-13T09:40:50+00:00

I have a hosting (hostgator) account with a master directory and multiple subdirectories, each

  • 0

I have a hosting (hostgator) account with a master directory and multiple subdirectories, each representing a www address. I’d like to know if its possible to create an interface in php that would allow me to update a given file (say, header.php) in a specific folder (my custom wordpress theme which resides in each site) which will be the same in every site.

I currently have to do this via FTP, but its cumbersome b/c I have to open each directory and copy the file to it. So if I have 30 sites to update, its very time consuming. i’d like to just have a list of sites with a checkbox beside each of them (and a “select all” toggle) and run the update on all sites in one click)

Thanks for your input!

PS: I know there are probably chron scripts or interfaces that can do this, but I’ll be creating a scriptable (PHP) solution I can package up and send to someone and it just works and is brain-dead simple to use.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:40:50+00:00Added an answer on May 13, 2026 at 9:40 am

    Yes:

    I currently have to do this via FTP,
    but its cumbersome b/c I have to open
    each directory and copy the file to
    it. So if I have 30 sites to update,
    its very time consuming. i’d like to
    just have a list of sites with a
    checkbox beside each of them (and a
    “select all” toggle) and run the
    update on all sites in one click)

    Basically you need to script those FTP actions and provide some logic as to what path and what files. You can then style the entire thing with a simple front end, listing your sites with a checkbox to select.

    Doesn’t seem difficult, just have to get the FTP path traversal working and file cp’ing down.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a hosting account that has multiple domains pointed to the same folder.
I have a hostgator VPS hosting account. I already have a site at my
I'm a newbie on hosting blogs. I have a shared hosting account on HostGator
I have a shared hosting account with hostgator, and currently have maybe 6 or
I have two shared hosting accounts, each with a database of its own (its
I would like to install Jobberbase in my website. I have a hosting plan
I am currently with HostGator on a shared hosting plan. I have a new
I have an hosting account on Godaddy which has been redirected for last few
I have created a subdomain yesterday as www.subdomain.example.com. This has created a directory at
I'm hosting on hostgator and using fcgi for my django app, its a sharedhost

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.