Thank you in advance,

Is there a way where I can run Buildgallery.php automatically. What I mean is where I don't have to press the submit button every time.

I would like to include buildgallery.php  in another PHP document. SO when the other document loads it will update the XML and create a thumbnail automatically.

If you are still confuse I will update more.

but over all I would like to update my thumbnails and XML automatically without clicking Submit