Jump to content

Recommended Posts

A better explanation of the types of files modified, when the action is to be taken place and upon what circumstance may help in determining this.

 

One thing with php is that pretty much everything can imagine up is possible, but may be easier ways.

 

As a first thought, I would say just to include() the php file under some type of if statement. Or possibly an ifexists, or checking the date modified.

 

Just post the process here so everyone can get a better understanding of what exactly you would like to do.

 

Here's a better explanation of what I'm trying to do.

 

I work for a certain business that allows customers to use a sitebuilder product to create a website. Sometimes we would like to add certain things such as Google Analytics code, but unfortunately our host doesn't allow the sitebuilder to insert HTML directly. Also, if a customer edits the site outside of sitebuilder and then returns to sitebuilder it will overwrite the customization. I want to write a series of PHP scripts that will basically copy the files sitebuilder made (to the users specification), add in the desired code, and overwrite the existing file. I want this to be done after everytime a customer publishes their website with sitebuilder. I know how to create files etc. but I need to initially start the processes somehow. Remember, I cannot insert HTML or PHP to these pages, so there has to be some kind of trigger that starts this process. Otherwise I would just calls the code from within. I'm unsure of the approach to do this.

 

I know its a bit confusing scenario but I do appreciate the responses,

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.