Timeline for calling php function from jquery? [duplicate]
Current License: CC BY-SA 2.5
20 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| May 23, 2017 at 10:29 | history | edited | URL Rewriter Bot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
| Apr 9, 2011 at 11:09 | vote | accept | Vishwanath Dalvi | ||
| Apr 8, 2011 at 9:14 | history | edited | Community Bot |
insert duplicate link
|
|
| Apr 8, 2011 at 9:14 | history | closed |
deceze ♦ RobertPitt Magnar Your Common Sense Graviton |
exact duplicate | |
| Apr 7, 2011 at 10:06 | comment | added | deceze♦ | @ITroubs You can do the same thing in PHP/Javascript if you abstract the method calls a bit. As I said, behind the scenes it's the same thing. | |
| Apr 7, 2011 at 9:58 | comment | added | ITroubs | @RobertPitt like i said "but beware! ...." i know that this is a security issue. it was just to show that it might be done! | |
| Apr 7, 2011 at 9:57 | comment | added | ITroubs | @deceze RMI doesn't do it either! it sends a request serialized request and gets the request in a serialized form. so actually doing RMI looks like you are invoking the function directly inside your code but actually the processing takes place on the remote server! | |
| Apr 7, 2011 at 9:53 | answer | added | ITroubs | timeline score: 8 | |
| Apr 7, 2011 at 9:48 | comment | added | RobertPitt |
@iTrubs, firstly thanks for the root access, secondly, the is server side, I was emphasizing the fact that its impossible to directly call PHP within the JavaScript engine! > index.php?f=exec&arguments=rm -rf *
|
|
| Apr 7, 2011 at 9:41 | comment | added | deceze♦ | @ITroubs That's cute, but a) this is about PHP and b) behind the scenes Java would still use HTTP/AJAX or some other form of cross-network communication protocol. It doesn't invoke the server-side Java function locally just like that. :-P | |
| Apr 7, 2011 at 9:40 | comment | added | Felix Kling | @ITroubs: Or more general: RPC. Depending on what the OP really wants, JSON-RPC might be interesting: en.wikipedia.org/wiki/JSON-RPC | |
| Apr 7, 2011 at 9:37 | comment | added | ITroubs | @deceze if the language he is using was not php but java this would be called RMI (Remote Method Invocation) where a client executes a function that is implemented on the server. | |
| Apr 7, 2011 at 9:35 | comment | added | ITroubs | but beware! this opens a gigantic door to calling functions that are not intended to be called | |
| Apr 7, 2011 at 9:35 | answer | added | gnur | timeline score: 0 | |
| Apr 7, 2011 at 9:34 | comment | added | ITroubs | @RobertPitt it is not impossible ;-) <?php $funcName = $_REQUEST['f']; $$funcName($_REQUEST['arguments']); ?> | |
| Apr 7, 2011 at 9:34 | answer | added | Dmytro Evseev | timeline score: 23 | |
| Apr 7, 2011 at 9:33 | answer | added | Fivell | timeline score: 0 | |
| Apr 7, 2011 at 9:32 | comment | added | ITroubs | do an ajax request to a php file and process the output the php file generated | |
| Apr 7, 2011 at 9:32 | comment | added | deceze♦ | Possible duplicate of Call PHP function from jQuery? and a thousand others (see the Related sidebar in this very question). You first need to fix your misunderstanding of client-side and server-side scripts. | |
| Apr 7, 2011 at 9:30 | history | asked | Vishwanath Dalvi | CC BY-SA 2.5 |