Page 1 of 1

Convert Javascript to PHP (program?)

Posted: Fri Jan 31, 2003 4:11 pm
by Gath
Hi.

I found myself in need to convert some Javascript code into PHP (calculations stuff, better in the server side, that in the page), and started wondering if there was some program, or anything, out there, that could do this for me (saving some major time :) )

I looked, but found nothing...

Thanks

Posted: Fri Jan 31, 2003 4:16 pm
by evilcoder
Not that i'm aware of, but with ay PHP knowledge you sould be able to convert it relatively easy. If you get stuck somewhere or need help starting just ask me i'll help, i'm at work for aother 8 hours.

Posted: Sat Feb 01, 2003 6:54 am
by mydimension
yeah, i don't think such a thing exists because JS is all client side and and very heavily dependant on OOP. 2 things which PHP is not. granted you can do OOP programming in PHP but nothing like what JS can do. im with evilcoder, you're probably gonna have to hand convert it.

Posted: Tue Feb 04, 2003 9:14 pm
by Gath
Ok, thanks...

It´s just that im a "lazy" coder :)

I was in no mood to convert about 500 lines of JavaScript to PHP...

But i just discovered that there are too mutch client side in there... dont know if i'll be able to take it from the page to the server...

Oh well... :)