Home > What Can > What Can Php Do That Javascript Cannot

What Can Php Do That Javascript Cannot

can php build apps with async background processing? You can only upload a photo or a video. Paul_Wilkins 2015-11-10 22:55:55 UTC #8 felgall: jQuery is written in plain JavaScript. PHP is a server-side scripting language. http://bovbjerg.net/what-can/what-can-javascript-do-that-html-cannot.php

These things frustrate professional and experienced programmers, since they are simply not used to write in functional languages. People creating games or other real-time experiences, may consider themselves lucky, they are excepted. Please also read this excellent article from Chris Taylor on AngularJS and why not to use it. mahanti: Well, they're totally different, to be honest.

Even if there where database libraries written for JavaScript they would be of no use because your server cannot trust database queries done by the client. This is like using PHP to hide the details of what happens on the server. Sure, its easier to use a single language rather then having to learn both PHP and JS. After studying little , I am thinking why we need PHP?

If anyone wants to add anything else here, feel free to do so. That's where Ajax comes in, and Jquery is the language that uses Ajax to marry Javascript and PHP together with ease, allowing you to use both! For example, a PHP script can produce XML instead of HTML, and that XML could be read by an RSS reader, for instance. More questions What is JavaScript and PHP?

And you cannot test against future browser implementations of JavaScript, can you now? There are however a few JS servers, which run JavaScript code server-side. Since i cant find a website that compares stuff like this. But in case of Javascript the computation that is requried to process the javascript requests is handled by the user's own processor, plus there is another issue of having enabled javascript

sorin21us 2015-11-10 12:54:52 UTC #4 I see, I still have to learn those long name methods from JS, comparing with the short ones from jQuery :(. Other combinations are possible: Some web browsers support client-side scripting in languages other than JavaScript. (For instance, Internet Explorer allows VBScript.) But JavaScript (or, more formally, ECMA-262 ECMAScript) is the only The time now is 10:46 PM. George, UT Posts 2,769 Thanks 3 Thanked 157 Times in 155 Posts Also; you can't read, write, or delete files off the server nor the client's computer.

Currently: enjoying the early holidays :)Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide 09-01-2007,06:20 AM #10 jscheuer1 View Profile View You need to because they are that high. Hot Network Questions What is this line of counties voting for the Democratic party in the 2016 elections? The new "querySelectAll" command pretty much does the same thing now as the jQuery $('xxx') selector.

PHP, ASP etc) for that.Javascript cannot "encrypt" your HTML or prevent "image theft". Rick Trethewey Rainbo Design Reply With Quote 04-19-2013,12:32 PM #3 rnd me View Profile View Forum Posts Visit Homepage checkout pagedemos.com Join Date Jul 2008 Location urbana, il Posts 2,787 if chrisofarabia 2015-11-11 17:58:20 UTC #19 I moved the discussion over here - Zen and the Art of FizzBuzz Maintenance DanS03 2015-11-15 00:07:44 UTC #20 Ok I need to comment here. But php is bound to the server side and javascript is bound to the client side.

Browse other questions tagged php javascript html or ask your own question. Last edited by tech_support; 11-17-2007 at 06:53 AM. For example, you cannot delete forum posts client-side because then anybody would be able to delete those posts under the disguise of an administrator. That way the web browser is tricked into thinking that the website is loaded after the first request of HTML.

Advanced Search Forum Client-Side Development JavaScript Is there something javascript can do that php can't ? Firefox 18 broke my JavaScript-heavy website when no other version of FF did. That is to say, a PHP program runs on a server and generates data that is sent to a client accessing that web page.

Finally, I wanted to pick something different to all of the above and went with Batman.js, and not only because of the name.

For example, you cannot control which page appears if the user clicked on the "back" button in their browser.Javascript cannot access your database. Let's keep it that way, because hackers and security consultants are making good money on them. I just ask yahoo answers... One thing you cannot do with javascript is to connect to a SQL database on your server which is kind of common task in web development.

With Backbone, your data is represented in Models. Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? can js grab a file on the server? share|improve this answer answered Nov 28 '10 at 18:09 casablanca 50.9k478129 add a comment| up vote 3 down vote PHP is designed as server-side scripting language, JS for client-side.

Straight line equation My boss asks me to stop writing small functions and do everything in the same loop Polyglot Anagrams Cops' Thread Build me a brick wall! Contact Us Web Developer Forum Top Powered by vBulletin Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. Display a thank-you message after a user submits a form. To be honest, it depends on your application.

Donate 'em to me :) Just send me a PM. share|improve this answer answered Nov 28 '10 at 17:50 bmb 4,01512548 1 +1 Aye, a fundamental point to understand. I thought that I will escape only with jQuery :). I'd need to think about whether mine was nearer in structure to your too, but I know it's not quite as concise.

What you cannot do with JavaScript 1.