what are the differences between php and javascript?
922430
PHP is a server-side script meaning it's all processed before the page loads.\n\nJavaScript is client-side so it can be processed as the user is looking at the page.\n\nAnyone can see your JavaScript code but because PHP is server-side only people with access to your server can see it.\n\nJavaScript is probably easier to learn but it all depends on what you're trying to do.
211711
PHP is the language to code in.\n\nhttp://sourceforge.net/projects/snipe-ads\n\nhttp://www.deltascripts.com/phpclassifieds/\n\nhttp://sourceforge.net/projects/actiondirectory (Perl)
602639
I'm not entirely sure what you mean, though I will answer your question in a completely biased matter.\n\n\nDON'T USE ASP! PhP is cooler B)\n\n\nYou can give a text box a name like jimbob then make it into a form and do this...\n\n<form method="post" action="file.php">\n<input type="text" name="jimbob" size="25">\n<input type="submit" value="Send">\n</form>\n\nThen on the file.php use this code\n\n<?php\n$message = $_REQUEST['jimbob'];\necho "$message";\n?>\n\nAHA! Look at how beautifully it works. Click on the source link and see for yourself!\n\nSee, you first define what $message is by requesting the submitted form data, or at least a piece of it. Then echo, or you can use print, the already defined $message. Pretty neat huh?
354365
To use for a website mostly it depends on what your most comfortable with. HTML is the standard web development language along with a bunch of other add ons like php, javascript, vbscript that allow you to make more dynamic web sites. In the end it just depends on what exactly you are trying to do and what you are comfortable with.
982703
I personally don't like either language.  I go with PHP on a Linux server.  However with the given choices I would have to say that Java on a Linux server is the best.
1098891
Web pages are mostly written in HTML.  If you want pages to accept data or do cool things like show picture slide shows you can use javascript.  Now if you want to create truely dynamic web pages that people can log in at, extract data, or search for things you'll want to use PHP.  To search you'll need a database to store info in which case you can use SQL, one such implementation is MySQL.  \n\nThese are all FREE!  There are pleanty of resources on the net to teach you.  So just search on their names and you will get plenty to keep you busy.\n\nThere are more, but this is a very popular group of software commonly known as LAMP.  Linux, Apache, MySQL, PHP. \n\nWhen you get all that working you can create super fancy stuff using FLASH from Adobe-Macromedia.  That one will cost ya.
805338
^_^ weeeeell lets see here.\n\nYou have two main options. One\nis to use Javascript (Look below) and\nTwo, to use PHP.\n\n\n This is an example of javascript that will prompt the\nuser for their user name and password before they can\naccess the page. Just put this in the header of your page.\n\n<script language="Javascript" type="text/javascript">\nname = prompt("User name");\npass = prompt("User Password");\n\nif(name == "joe" && pass == "shmoe"){\nwindow.location =   "www.ProtectedpageURL.com";\n}else{\nalert("Incorrect password");\nwindow.location = "www.invalidInfoPage.com"\n}\n</script>\n\nRemember, javascript can be seen in your source so have them\nclick a link to goto the page with this code, and the redirect on\ncorrect or incorrect information will keep them from ever\nbeing able to access the page and see the source where your\naccount information will be held. \n\n\nIf you have PHP enabled on your website then email me\nat void_3e01@yahoo.com and I will be more than happy to\nmake you a complete, fool proof login script.\n\n -Void
207382
The PHP docs are quite good and include examples:\n\nhttp://www.php.net/manual/en
1110490
html is usually a file that is written in just html - it may have some javascript on it but it probably will be a pretty static webpage with pictures and text. \n\nASP is a server side scripting language which has the capability of communicating with the server and processing commands, communicating with databases etc. It would normally be a 'dynamically' created webpage. \n\nFor instance the owner of the website could ask you a question using a form on a webpage, when you submit the form a response would be created depending on your answer i.e. it may send some people to another page on the website or serve up some text specific to the answer. The possibilities are endless with asp- php works one the same concept and is the scripting language I prefer.
182022
Basically, it's a typical variable condition: The variable is the name (also often called a key; keys and names are the same thing in this context), and it contains a value.\n\nFor example, in an HTML form, if you have an input box like this:\n\n<input type="text" id="foo" name="foo" width="10" maxsize="20" />\n\nAnd into that texbox, someone types "bar," then foo is the variable name, bar is its value.\n\nThe same is true when working in programming languages. For example, in PHP:\n\n$foo = "bar"; // $foo is the variable name, bar is the value\n\nAlso in PHP (and most programming languages), you can have associative arrays -- that is, arrays with named dimensions.\n\nFor example:\n\n$foo['bar'] = "foo"\n$foo['foo'] = "bar"\n$foo['foobar'] = "barfoo"\n\nIf we apply a foreach to this associative array, we can extract the name of each dimesion (the key) and the value assigned to the dimension (the value)\n\nforeach($foobar as $key => $value) {\necho "$key: $value<br />";\n}\n\nwhich would echo to the screen:\n\nbar: foo\nfoo: bar\nfoobar: barfoo
708689
*.php files are interpreted programs (or simply scripts) written in a language called PHP.  To operate your own PHP-driven Web site, you need an account with a hosting company that supports PHP.\n\nAdditional information about PHP can be found at http://www.php.net
73842
Both ASP and PHP are server side scripting languages that are used to provide dynamic webpages.\n\nASP-Active Server Pages, is a Microsoft's product. So you need IIS to run an ASP site(That means you need to have Windows at ur server end). You have to pay a lot to microsoft(for ur OS, ASP.NET and stuff).\n\nWhereas PHP-PHP Hypertext Preprocessor is an open source package. It needs just Apache server and mysql as dependencies. Both Apache and mysql are stable packages that are available for FREE for both windows and linux. So, even if u run the server on windows now, and later wish to change to linux (the vice versa also true), PHP would be ideal.\n\nMoreover, if you want to run a server, it needs to be secure. As you may be aware, Linux is far secure than Windows. Similarly, Apache is far stable than IIS and supports many languages than IIS.(refer http://webdesign.about.com/cs/webservers... )\n\nSo, PHP is gaining at a faster pace. Learning PHP is also not difficult, if u know C or PERL.\n\nRefer http://www.phpbuddy.com/sub_articles.php... for a detailed comparison.
1027692
Hi,\nIt is quite a nice question. JAVASCRIPT cannot send email within a form. Javascript is just a client side language which does not have the capabilities of normal dynamic programming languages. \n\nYou must have alternatives of using serverside programming languages. You could use JSP/ASP/PHP/ROR/.NET etc to build a form that access a dynamic page. all the above languages can be incorporated within your existing project if and only if you have to enabled / installed on the server machine.\n\nIf your using PHP, then you have the mail() function that sends email... http://www.php.net/mail/\n\nTake care, good luck on what your doing :p
280310
The code is usually divided into 2parts : client side and server side. If you use the view source option what you'll get to see is the client side scripts and some of that is also generated by the server side scripts. To get the server side scripts you'll have to ask the developers for it.\n\nHope this answers your question
96520
Javascript (no relation to Java) is a text base language used with HTML. It is used for client side manipulation. For instance, if you set up a form where the user has to fill in a name, you can create a javascript that checks to make sure they do and won't let them submit the page until they do.
108274
PHP is short for Hypertext PreProcessor.  This language is designed to run on the web server and feed its results into your browser via HTML.  In other words, to my knowledge, there is no such library at this time.  It requires a web server for the install of the modules that run it.
662628
First, PHP is "compiled." When a script is called, it's compiled down to byte code, then executed, just like Java/.NET. The difference between PHP and Java/.NET is that the byte code compilation is not stored; each time a script is called, it has to be recompiled down to byte code.\n\nHowever, solutions already exist to "compile" PHP (keeps caches of PHP byte code files for faster execution). For example, Turck MMCache is a free and open source implementation.\n\nZend, the company that owns, maintains and distributes PHP, sells a proprietary cacher, the Zend Optimizer. I'm sure I'm missing a couple of other optimizers/cachers.\n\nI have no idea why PHP didn't originally cache all of its byte code. Maybe because most people don't need it. If an company really needs PHP execution to be fast, then they can shell out the money to buy the Zend Optimizer (They're already getting PHP for free.). Or they can install MMCache. \n\nFor users who run personal websites, it's unnecessary.