convert PHP to javascript?

Reply

Join Date: Dec 2004
Posts: 4,191
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 485
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: convert PHP to javascript?

 
-1
  #31
Sep 10th, 2008
Java and JavaScript are two different technologies develop by different companies just with similar name and language structure
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,075
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is online now Online
Veteran Poster

Re: convert PHP to javascript?

 
0
  #32
Sep 10th, 2008
Java is a programming language that is used almost everywhere. It can be in server side web pages (eg: JSP) or in the browser (Java applet) or in desktop software, mobile phones etc.
PHP is used mainly on the server side, so when you say PHP, you most likely mean server side PHP.
JSP is a Java framework (the most popular of many I believe), used to building Java server side pages.

Here is the JSP forum on this site:
http://www.daniweb.com/forums/forum24.html

You could get a lot of help with JSP there.

JavaScript on the other hand, is very different from the two. It does not run on the server, it only runs in the browser. It is comparable to VBScript or Jscript which is available only in IE browsers. JavaScript on the other hand runs in all major browsers.

Relation to Java:

JavaScript was originally called LiveScript. It was named JavaScript in order to promote Java. This was a marketing deal between Netscape who created JavaScript and Sun who created Java. Other then that, and that they both share the same syntax derived from C, there is no relationship.

When you first posted, I think everyone was under the impression that you could not use JSP on your host, or any other server side language - since you wanted to use JavaScript (which only runs in the browser). That is why PHP on a separate server was recommended (in addition to you having invested in the PHP review script). If you were in the JSP forum, JSP on a separate server would have been recommended.

But since your host allows you to use JSP and edit it, then there is really no need for a separate server.

I think you should let go of the PHP review script you have, and just focus on a JSP solution - either getting a JSP review script or having someone code a custom solution. This is the simplest solution, and the one that will get you the best SEO results.

If you want to tackle it yourself, then the JSP forum is where to start. JSP should actually be easier then any of the JavaScript or Flash solutions mentioned - those solutions are quite "sophisticated" compared to the JSP solution.
Last edited by digital-ether; Sep 10th, 2008 at 6:24 am.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC