# Automatic PHP execution

**URL:** <https://forum.kirupa.com/t/automatic-php-execution/226091>\
**Category:** programming\
**Created:** [May 18, 2007, 1:58am UTC](https://forum.kirupa.com/t/automatic-php-execution/226091 "2007-05-18T01:58:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zellers](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zellers/32/3135_2.png) [@zellers](https://forum.kirupa.com/u/zellers)\
**Post date:** [May 18, 2007, 1:58am UTC](https://forum.kirupa.com/t/automatic-php-execution/226091/1 "2007-05-18T01:58:56Z")

</div>

Is there anyway to execute PHP automatically?

Basically, in the end I want to be able to accomplish a script that will copy an attribute from several (hundred) XML files, and put the attribute from each XML file into another file.

EXAMPLE:

```auto

<xml>
    <myXML attr="hi"/>
    <myXML fdsfds="bye"/>
</xml>

```

I want to extract the attribute ‘attr’ from over a hundred XML files, and have the attribute copied to one XML file about once a day. Anyway to automatically execute the PHP to do so, without having to call the PHP myself everyday?
