php script api - how to execute scripts

I´m not sure if i understand the mikrotik api. But there is any way to execute php or c code in RouterOS. Because i´m trying to make some telnet commands in an automatic way.

Thanks

you need additional server for php. for example, you may use Metarouter/KVM feature