views:

31

answers:

1

Hi! I'm looking for a translator of the source code written in some decent language to PHP.

Ideally, the target PHP code should be human readable, cuz I'm not the only person working on the project.

But the matter is, I would like to facilitate my personal developement process by bringing a high level language still allowing for easy modification of the 'target' PHP code.

Thank you very much!

UPDATE: Please, If you think that this is completely bad idea, or I'm better off with a macro engine/preprocessor - give me a hint :)

+1  A: 

This is an interesting problem. Suppose you are not that good at programming PHP, or the source language is not that easy to run on a webservices as PHP, or you have some legacy codebase you want to use, you could simply translate it.

However, there are no tools that convert any programming language to PHP.

I guess it is easier to program something to make the Java/Scala/Python run on the webserver than convert it to another language. Also, PHP has its limitations and it would be quite hard to convert some things into PHP.

There are some tools that compile a programming language to C, just like a C compiler first compiles to assembly. This makes it easier to make a compiler, as C and C compilers are widely supported.

Sjoerd
Great idea!.. but sorry :), only PHP programmers here and no one except me seems to know another language. BTW it's not a problem running mod_python on apache, or even Java via mod_jk I guess. Thanks for help
Bubba88
I found this project which makes it possible to run Python in PHP: http://www.csh.rit.edu/~jon/projects/pip/
Sjoerd
@Sjoerd: Hey, that's pretty cool.
willell