This is a discussion on Loading a PHP file/code via Javascript. within the PHP Language forums, part of the PHP Programming Forums category; Simon wrote: > As we all know, JavaScript is client side and php is server side, (the php > code ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Simon wrote: > As we all know, JavaScript is client side and php is server side, (the php > code is 'allowed' to do stuff on the server that JavaScript cannot). > The problem with php is that it timeout after a while, (and the user also > has no clue as to what is going on for a long time). > I need to run a script on the server that could take a very long time. > That way the server does the work, while the client keeps it going. > Ideally I would also get a return value/string from the php script. > How could I achieve something like that? Hello Simon, I've put together a free, very simple AJAX tool that you can use to accomplish the client / server information transfer: Super AJAX Programming Seed http://www.impliedbydesign.com/super...ming-seed.html Chris S. Free Web Design Tools http://www.impliedbydesign.com/free-...e-scripts.html |