takashiro1405241549 0 Report post Posted October 3, 2007 I move my website from joshost.com to drivehq.com because the death of joshost.com. But drivehq.com does not support PHP script. I want to change this php script into JavaScript. But I failed.How to write these in js as those in php, array(), $_GET, and foreach()? Share this post Link to post Share on other sites
faulty.lee 0 Report post Posted October 3, 2007 I don't think there's a direct shortcut to simply convert everything from php to js. They're made for different purpose. Php is server side while js is client side. There're things that you can do in php but can't be done at all in js. Even if you use ajax, you'll need a php side to complete the circle. Share this post Link to post Share on other sites
Sten 0 Report post Posted October 3, 2007 the real question it, why the hell would you move to a host without php?theres heaps of free host (almost all of them) that support php.i suggest Xisto but if you just want something quick then https://www.awardspace.com/i used to use it for a while but moved to Xisto. Share this post Link to post Share on other sites
iGuest 3 Report post Posted October 3, 2007 Therer probably are functions that do the same thing, but as faulty.lee said, they're used for different purposes. I'd recommend using a php-enabled host. Share this post Link to post Share on other sites
takashiro1405241549 0 Report post Posted October 3, 2007 (edited) Thanks. I think that's too hard. Ok, before I get Xisto account I'll use several HTML webpage, instead. Edited October 3, 2007 by takashiro (see edit history) Share this post Link to post Share on other sites
ernesto 0 Report post Posted March 23, 2009 Cool, I think that's not too hard. So, before I get Xisto account I'll use several ASPX webpage, right? Share this post Link to post Share on other sites