Convert Javascript to PHP (program?)

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Gath
Forum Newbie
Posts: 20
Joined: Wed May 15, 2002 8:36 pm

Convert Javascript to PHP (program?)

Post 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
evilcoder
Forum Contributor
Posts: 345
Joined: Tue Dec 17, 2002 5:37 am
Location: Sydney, Australia

Post 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.
User avatar
mydimension
Moderator
Posts: 531
Joined: Tue Apr 23, 2002 6:00 pm
Location: Lowell, MA USA
Contact:

Post 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.
Gath
Forum Newbie
Posts: 20
Joined: Wed May 15, 2002 8:36 pm

Post 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... :)
Post Reply